Skip to content

Commit

Permalink
Deploy commit: Add cartopy to requirements (#183) 529f8e6
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace committed Aug 11, 2023
1 parent 1af6c89 commit fe36000
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 131 deletions.
250 changes: 125 additions & 125 deletions 02-spatial-data.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 04-spatial-operations.html
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ <h3 data-number="3.4.1" class="anchored" data-anchor-id="sec-spatial-subsetting"
<div class="cell" data-execution_count="54">
<div class="sourceCode cell-code" id="cb63"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb63-1"><a href="#cb63-1" aria-hidden="true" tabindex="-1"></a>src_elev.sample([(<span class="fl">0.1</span>, <span class="fl">0.1</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="54">
<pre><code>&lt;generator object sample_gen at 0x7fc457daf480&gt;</code></pre>
<pre><code>&lt;generator object sample_gen at 0x7f4330f97480&gt;</code></pre>
</div>
</div>
<p>In case we want all values at once we can apply <code>list</code>. The result is <code>16</code>:</p>
Expand Down
4 changes: 2 additions & 2 deletions 06-raster-vector.html
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ <h3 data-number="5.5.1" class="anchored" data-anchor-id="sec-rasterizing-points"
<div class="cell" data-execution_count="36">
<div class="sourceCode cell-code" id="cb51"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb51-1"><a href="#cb51-1" aria-hidden="true" tabindex="-1"></a>((g, <span class="dv">1</span>) <span class="cf">for</span> g <span class="kw">in</span> cycle_hire_osm_projected[<span class="st">'geometry'</span>].to_list())</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="36">
<pre><code>&lt;generator object &lt;genexpr&gt; at 0x7f2609bbf370&gt;</code></pre>
<pre><code>&lt;generator object &lt;genexpr&gt; at 0x7f8fd2652dc0&gt;</code></pre>
</div>
</div>
<p>Therefore, the rasterizing expression is:</p>
Expand Down Expand Up @@ -1154,7 +1154,7 @@ <h3 data-number="5.6.1" class="anchored" data-anchor-id="raster-to-polygons"><sp
<span id="cb69-4"><a href="#cb69-4" aria-hidden="true" tabindex="-1"></a>)</span>
<span id="cb69-5"><a href="#cb69-5" aria-hidden="true" tabindex="-1"></a>shapes</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="49">
<pre><code>&lt;generator object shapes at 0x7f260bcbfab0&gt;</code></pre>
<pre><code>&lt;generator object shapes at 0x7f8fd6d53ab0&gt;</code></pre>
</div>
</div>
<p>We can generate all shapes at once, into a <code>list</code> named <code>pol</code>, as follows:</p>
Expand Down
6 changes: 3 additions & 3 deletions 07-reproj.html
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ <h2 data-number="6.5" class="anchored" data-anchor-id="sec-geometry-operations-o
<div class="sourceCode cell-code" id="cb27"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb27-1"><a href="#cb27-1" aria-hidden="true" tabindex="-1"></a>lnd_layer_buff <span class="op">=</span> lnd_layer.<span class="bu">buffer</span>(<span class="dv">1</span>)</span>
<span id="cb27-2"><a href="#cb27-2" aria-hidden="true" tabindex="-1"></a>lnd_layer_buff</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>/tmp/ipykernel_370/855451079.py:1: UserWarning: Geometry is in a geographic CRS. Results from 'buffer' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
<pre><code>/tmp/ipykernel_368/855451079.py:1: UserWarning: Geometry is in a geographic CRS. Results from 'buffer' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.

lnd_layer_buff = lnd_layer.buffer(1)</code></pre>
</div>
Expand Down Expand Up @@ -644,10 +644,10 @@ <h2 data-number="6.6" class="anchored" data-anchor-id="sec-when-to-reproject"><s
<div class="cell" data-execution_count="21">
<div class="sourceCode cell-code" id="cb31"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb31-1"><a href="#cb31-1" aria-hidden="true" tabindex="-1"></a>lnd_layer.distance(lnd_layer_proj)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-stderr">
<pre><code>/tmp/ipykernel_370/2145313019.py:1: UserWarning: Geometry is in a geographic CRS. Results from 'distance' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.
<pre><code>/tmp/ipykernel_368/2145313019.py:1: UserWarning: Geometry is in a geographic CRS. Results from 'distance' are likely incorrect. Use 'GeoSeries.to_crs()' to re-project geometries to a projected CRS before this operation.

lnd_layer.distance(lnd_layer_proj)
/tmp/ipykernel_370/2145313019.py:1: UserWarning: CRS mismatch between the CRS of left geometries and the CRS of right geometries.
/tmp/ipykernel_368/2145313019.py:1: UserWarning: CRS mismatch between the CRS of left geometries and the CRS of right geometries.
Use `to_crs()` to reproject one of the input geometries to match the CRS of the other.

Left CRS: EPSG:4326
Expand Down

0 comments on commit fe36000

Please sign in to comment.