Skip to content

Commit

Permalink
Built site for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Quarto GHA Workflow Runner committed Sep 20, 2024
1 parent 3961ed1 commit 8ff8869
Show file tree
Hide file tree
Showing 24 changed files with 1,354 additions and 2,106 deletions.
2 changes: 1 addition & 1 deletion .nojekyll
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2054e604
a66d41f8
56 changes: 25 additions & 31 deletions chapters/01-spatial-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<meta name="description" content="An introductory resource for working with geographic data in Julia">

<title>2&nbsp; Geographic data in Julia – Geocomputation with Julia</title>
<title>1&nbsp; Geographic data in Julia – Geocomputation with Julia</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
Expand Down Expand Up @@ -66,7 +66,7 @@
<script src="../site_libs/quarto-search/quarto-search.js"></script>
<meta name="quarto:offset" content="../">
<link href="../chapters/02-attribute-operations.html" rel="next">
<link href="../chapters/preface.html" rel="prev">
<link href="../index.html" rel="prev">
<script src="../site_libs/quarto-html/quarto.js"></script>
<script src="../site_libs/quarto-html/popper.min.js"></script>
<script src="../site_libs/quarto-html/tippy.umd.min.js"></script>
Expand Down Expand Up @@ -148,7 +148,7 @@
<button type="button" class="quarto-btn-toggle btn" data-bs-toggle="collapse" role="button" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<i class="bi bi-layout-text-sidebar-reverse"></i>
</button>
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../chapters/01-spatial-data.html"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Geographic data in Julia</span></a></li></ol></nav>
<nav class="quarto-page-breadcrumbs" aria-label="breadcrumb"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="../chapters/01-spatial-data.html"><span class="chapter-number">1</span>&nbsp; <span class="chapter-title">Geographic data in Julia</span></a></li></ol></nav>
<a class="flex-grow-1" role="navigation" data-bs-toggle="collapse" data-bs-target=".quarto-sidebar-collapse-item" aria-controls="quarto-sidebar" aria-expanded="false" aria-label="Toggle sidebar navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
</a>
<button type="button" class="btn quarto-search-button" aria-label="Search" onclick="window.quartoOpenSearch();">
Expand Down Expand Up @@ -204,59 +204,53 @@
<a href="../index.html" class="sidebar-item-text sidebar-link">
<span class="menu-text">Welcome</span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../chapters/preface.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">1</span>&nbsp; <span class="chapter-title">Preface</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../chapters/01-spatial-data.html" class="sidebar-item-text sidebar-link active">
<span class="menu-text"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Geographic data in Julia</span></span></a>
<span class="menu-text"><span class="chapter-number">1</span>&nbsp; <span class="chapter-title">Geographic data in Julia</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../chapters/02-attribute-operations.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">3</span>&nbsp; <span class="chapter-title">Attribute data operations</span></span></a>
<span class="menu-text"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Attribute data operations</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../chapters/03-spatial-operations.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">4</span>&nbsp; <span class="chapter-title">Spatial data operations</span></span></a>
<span class="menu-text"><span class="chapter-number">3</span>&nbsp; <span class="chapter-title">Spatial data operations</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../chapters/04-geometry-operations.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">5</span>&nbsp; <span class="chapter-title">Geometry operations</span></span></a>
<span class="menu-text"><span class="chapter-number">4</span>&nbsp; <span class="chapter-title">Geometry operations</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../chapters/05-raster-vector.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">6</span>&nbsp; <span class="chapter-title">Raster-vector interactions</span></span></a>
<span class="menu-text"><span class="chapter-number">5</span>&nbsp; <span class="chapter-title">Raster-vector interactions</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../chapters/06-reproj.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">7</span>&nbsp; <span class="chapter-title">Reprojecting geographic data</span></span></a>
<span class="menu-text"><span class="chapter-number">6</span>&nbsp; <span class="chapter-title">Reprojecting geographic data</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../chapters/07-read-write.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">8</span>&nbsp; <span class="chapter-title">Geographic data I/O</span></span></a>
<span class="menu-text"><span class="chapter-number">7</span>&nbsp; <span class="chapter-title">Geographic data I/O</span></span></a>
</div>
</li>
<li class="sidebar-item">
<div class="sidebar-item-container">
<a href="../chapters/08-mapping.html" class="sidebar-item-text sidebar-link">
<span class="menu-text"><span class="chapter-number">9</span>&nbsp; <span class="chapter-title">Making maps with Julia</span></span></a>
<span class="menu-text"><span class="chapter-number">8</span>&nbsp; <span class="chapter-title">Making maps with Julia</span></span></a>
</div>
</li>
<li class="sidebar-item">
Expand All @@ -282,9 +276,9 @@ <h2 class="anchored">First Edition</h2>
<h2 id="toc-title">On this page</h2>

<ul>
<li><a href="#introduction" id="toc-introduction" class="nav-link" data-scroll-target="#introduction"><span class="header-section-number">2.1</span> Introduction</a>
<li><a href="#introduction" id="toc-introduction" class="nav-link" data-scroll-target="#introduction"><span class="header-section-number">1.1</span> Introduction</a>
<ul>
<li><a href="#sec-raster-from-scratch" id="toc-sec-raster-from-scratch" class="nav-link" data-scroll-target="#sec-raster-from-scratch"><span class="header-section-number">2.1.1</span> Raster from scratch</a></li>
<li><a href="#sec-raster-from-scratch" id="toc-sec-raster-from-scratch" class="nav-link" data-scroll-target="#sec-raster-from-scratch"><span class="header-section-number">1.1.1</span> Raster from scratch</a></li>
</ul></li>
</ul>
<div class="toc-actions"><ul><li><a href="https://github.com/geocompx/geocompjl/edit/main/chapters/01-spatial-data.qmd" class="toc-action"><i class="bi bi-github"></i>Edit this page</a></li></ul></div></nav>
Expand All @@ -294,7 +288,7 @@ <h2 id="toc-title">On this page</h2>

<header id="title-block-header" class="quarto-title-block default">
<div class="quarto-title">
<h1 class="title"><span id="sec-spatial-class" class="quarto-section-identifier"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Geographic data in Julia</span></span></h1>
<h1 class="title"><span id="sec-spatial-class" class="quarto-section-identifier"><span class="chapter-number">1</span>&nbsp; <span class="chapter-title">Geographic data in Julia</span></span></h1>
</div>

<!--
Expand Down Expand Up @@ -340,8 +334,8 @@ <h1 class="title"><span id="sec-spatial-class" class="quarto-section-identifier"
<pre><code>"output"</code></pre>
</div>
</div>
<section id="introduction" class="level2" data-number="2.1">
<h2 data-number="2.1" class="anchored" data-anchor-id="introduction"><span class="header-section-number">2.1</span> Introduction</h2>
<section id="introduction" class="level2" data-number="1.1">
<h2 data-number="1.1" class="anchored" data-anchor-id="introduction"><span class="header-section-number">1.1</span> Introduction</h2>
<div id="6" class="cell" data-execution_count="1">
<div class="sourceCode cell-code" id="cb4"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="im">using</span> <span class="bu">GeoDataFrames</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>df <span class="op">=</span> GeoDataFrames.<span class="fu">read</span>(<span class="st">"data/world.gpkg"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
Expand Down Expand Up @@ -495,8 +489,8 @@ <h2 data-number="2.1" class="anchored" data-anchor-id="introduction"><span class
</div>
</div>
</div>
<section id="sec-raster-from-scratch" class="level3" data-number="2.1.1">
<h3 data-number="2.1.1" class="anchored" data-anchor-id="sec-raster-from-scratch"><span class="header-section-number">2.1.1</span> Raster from scratch</h3>
<section id="sec-raster-from-scratch" class="level3" data-number="1.1.1">
<h3 data-number="1.1.1" class="anchored" data-anchor-id="sec-raster-from-scratch"><span class="header-section-number">1.1.1</span> Raster from scratch</h3>
<p>In this section, we are going to demonstrate the creation of rasters from scratch. We will construct two small rasters, <code>elev</code> and <code>grain</code>, which we will use in examples later in the book. Unlike creating a vector layer (see <span class="quarto-unresolved-ref">?sec-vector-layer-from-scratch</span>), creating a raster from scratch is rarely needed in practice because aligning a raster with the proper spatial extent is challenging to do programmatically (“georeferencing” tools in GIS software are a better fit for the job). Nevertheless, the examples will be helpful to become more familiar with the <strong>Rasters.jl</strong> data structures.</p>
<div id="10" class="cell" data-execution_count="1">
<div class="sourceCode cell-code" id="cb6"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a><span class="im">using</span> <span class="bu">Rasters</span></span>
Expand Down Expand Up @@ -584,7 +578,7 @@ <h3 data-number="2.1.1" class="anchored" data-anchor-id="sec-raster-from-scratch
1.0 0x06 0x0c 0x12 0x18 0x1e 0x24</code></pre>
</div>
</div>
<p>The raster can now be plotted in its coordinate system, passing the array <code>elev</code> along with the transformation matrix <code>new_transform</code> to <code>rasterio.plot.show</code> (<a href="#fig-rasterio-plot-elev" class="quarto-xref">Figure&nbsp;<span>2.1</span></a>).</p>
<p>The raster can now be plotted in its coordinate system, passing the array <code>elev</code> along with the transformation matrix <code>new_transform</code> to <code>rasterio.plot.show</code> (<a href="#fig-rasterio-plot-elev" class="quarto-xref">Figure&nbsp;<span>1.1</span></a>).</p>
<div id="cell-fig-rasterio-plot-elev" class="cell" data-execution_count="1">
<div class="sourceCode cell-code" id="cb16"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb16-1"><a href="#cb16-1" aria-hidden="true" tabindex="-1"></a><span class="fu">plot</span>(elev_raster)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="1">
Expand All @@ -594,13 +588,13 @@ <h3 data-number="2.1.1" class="anchored" data-anchor-id="sec-raster-from-scratch
<img src="01-spatial-data_files/figure-html/fig-rasterio-plot-elev-output-1.svg" class="img-fluid figure-img">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-rasterio-plot-elev-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2.1: Plot of the <code>elev</code> raster, a minimal example of a continuous raster, created from scratch
Figure&nbsp;1.1: Plot of the <code>elev</code> raster, a minimal example of a continuous raster, created from scratch
</figcaption>
</figure>
</div>
</div>
</div>
<p>The <code>grain</code> raster can be plotted the same way, as we are going to use the same transformation matrix for it as well (<a href="#fig-rasterio-plot-grain" class="quarto-xref">Figure&nbsp;<span>2.2</span></a>).</p>
<p>The <code>grain</code> raster can be plotted the same way, as we are going to use the same transformation matrix for it as well (<a href="#fig-rasterio-plot-grain" class="quarto-xref">Figure&nbsp;<span>1.2</span></a>).</p>
<div id="cell-fig-rasterio-plot-grain" class="cell" data-execution_count="1">
<div class="sourceCode cell-code" id="cb17"><pre class="sourceCode julia code-with-copy"><code class="sourceCode julia"><span id="cb17-1"><a href="#cb17-1" aria-hidden="true" tabindex="-1"></a><span class="fu">plot</span>(<span class="fu">Raster</span>(grain, (new_x, new_y); crs <span class="op">=</span> GFT.<span class="fu">EPSG</span>(<span class="fl">4326</span>)))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="1">
Expand All @@ -610,7 +604,7 @@ <h3 data-number="2.1.1" class="anchored" data-anchor-id="sec-raster-from-scratch
<img src="01-spatial-data_files/figure-html/fig-rasterio-plot-grain-output-1.svg" class="img-fluid figure-img">
</div>
<figcaption class="quarto-float-caption-bottom quarto-float-caption quarto-float-fig" id="fig-rasterio-plot-grain-caption-0ceaefa1-69ba-4598-a22c-09a6ac19f8ca">
Figure&nbsp;2.2: Plot of the <code>grain</code> raster, a minimal example of a categorical raster, created from scratch
Figure&nbsp;1.2: Plot of the <code>grain</code> raster, a minimal example of a categorical raster, created from scratch
</figcaption>
</figure>
</div>
Expand Down Expand Up @@ -1071,13 +1065,13 @@ <h3 data-number="2.1.1" class="anchored" data-anchor-id="sec-raster-from-scratch
</script>
<nav class="page-navigation">
<div class="nav-page nav-page-previous">
<a href="../chapters/preface.html" class="pagination-link" aria-label="Preface">
<i class="bi bi-arrow-left-short"></i> <span class="nav-page-text"><span class="chapter-number">1</span>&nbsp; <span class="chapter-title">Preface</span></span>
<a href="../index.html" class="pagination-link" aria-label="Welcome">
<i class="bi bi-arrow-left-short"></i> <span class="nav-page-text">Welcome</span>
</a>
</div>
<div class="nav-page nav-page-next">
<a href="../chapters/02-attribute-operations.html" class="pagination-link" aria-label="Attribute data operations">
<span class="nav-page-text"><span class="chapter-number">3</span>&nbsp; <span class="chapter-title">Attribute data operations</span></span> <i class="bi bi-arrow-right-short"></i>
<span class="nav-page-text"><span class="chapter-number">2</span>&nbsp; <span class="chapter-title">Attribute data operations</span></span> <i class="bi bi-arrow-right-short"></i>
</a>
</div>
</nav>
Expand Down
Loading

0 comments on commit 8ff8869

Please sign in to comment.