Skip to content

Commit

Permalink
work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Arno Timmer committed Sep 6, 2024
1 parent 9165262 commit 51f01b4
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
Binary file added images/postal_codes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/postalcoades_roads.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/postalcodes_buildings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/unused_buildings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ pc_gdf.plot()
plt.show()
```

<img src="./images/roadsGDF.png" alt="Roads in Wageningen" width = "60%">
<img src="./images/postal_codes.png" alt="Roads in Wageningen" width = "60%">


```{block, type="alert alert-success"}
Expand Down Expand Up @@ -380,10 +380,10 @@ pc_layer.set_xlim(xmin, xmax)
pc_layer.set_ylim(ymin, ymax)
# Save the figure to disk
plt.savefig('./output/postalcoades_roads.png')
plt.savefig('./output/postalcodes_buildings.png')
```

<img src="./images/BuildingsAndRoads.png" alt="Buildings in Wageningen" width = "60%">
<img src="./images/postalcodes_buildings.png" alt="Buildings in Wageningen" width = "60%">

```{block, type="alert alert-success"}
> **Question 5**: How many buildings do you get? (hint: _len()_) Do you miss buildings? How can we extract missing buildings in our extent?
Expand Down Expand Up @@ -447,9 +447,10 @@ newBuildingsGDF = newBuildingsGDF.to_crs(epsg=3857)
ax = newBuildingsGDF.plot(figsize=(10, 10), alpha=0.5, edgecolor='k')
ctx.add_basemap(ax, source=ctx.providers.OpenStreetMap.Mapnik, zoom=17)
ax.set_axis_off()
plt.savefile()
```

<img src="./images/NewBuildings.png" alt="Parcels at Wageningen University Campus" width = "60%">
<img src="./images/unused_buildings.png" alt="Parcels at Wageningen University Campus" width = "60%">

(Figures shown here and in the next section may differ slightly from the ones you obtain.)

Expand Down
11 changes: 6 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ <h1 id="reading-from-webservices">Reading from webservices</h1>
pc_gdf.plot()
plt.show()</code></pre>
</div>
<p><img src="./images/roadsGDF.png" alt="Roads in Wageningen" width = "60%"></p>
<p><img src="./images/postal_codes.png" alt="Roads in Wageningen" width = "60%"></p>
<div class="row">
<div class="alert alert-success">
<blockquote>
Expand Down Expand Up @@ -1514,9 +1514,9 @@ <h1 id="reading-from-webservices">Reading from webservices</h1>
pc_layer.set_ylim(ymin, ymax)

# Save the figure to disk
plt.savefig('./output/postalcoades_roads.png')</code></pre>
plt.savefig('./output/postalcodes_buildings.png')</code></pre>
</div>
<p><img src="./images/BuildingsAndRoads.png" alt="Buildings in Wageningen" width = "60%"></p>
<p><img src="./images/postalcodes_buildings.png" alt="Buildings in Wageningen" width = "60%"></p>
<div class="row">
<div class="alert alert-success">
<blockquote>
Expand Down Expand Up @@ -1606,9 +1606,10 @@ <h1 id="selecting-data">Selecting data</h1>
# Plot with 50% transparency
ax = newBuildingsGDF.plot(figsize=(10, 10), alpha=0.5, edgecolor='k')
ctx.add_basemap(ax, source=ctx.providers.OpenStreetMap.Mapnik, zoom=17)
ax.set_axis_off()</code></pre>
ax.set_axis_off()
plt.savefile()</code></pre>
</div>
<p><img src="./images/NewBuildings.png" alt="Parcels at Wageningen University Campus" width = "60%"></p>
<p><img src="./images/unused_buildings.png" alt="Parcels at Wageningen University Campus" width = "60%"></p>
<p>(Figures shown here and in the next section may differ slightly from
the ones you obtain.)</p>
<h1 id="geometric-manipulations">Geometric manipulations</h1>
Expand Down

0 comments on commit 51f01b4

Please sign in to comment.