nominatim_polygon <- nominatimlite::geo_lite_sf(address = "Brielle", points_only = FALSE)
@@ -501,7 +501,7 @@ The Bounding Box ⬛
The Bounding Box 🔳
+The Bounding Box
A Problem with download? Try:
assign("has_internet_via_proxy", TRUE, environment(curl::has_internet))
@@ -735,11 +735,11 @@ Mapping urbanisation in Brielle
⏰ Challenge
+Challenge
Import an interactive basemap layer under the buildings with Leaflet
20:00
⏰ Challenge
⏰ To submit your work in Zoom:
+To submit your work in Zoom:
⏰ One solution
+One solution
Objectives:
the ‘sf’ package 📦
+the ‘sf’ package
Contains traditional GIS functions: change the coordinate system, join layers, intersect or fuse polygons, create buffers and centroids, etc.
@@ -820,20 +820,20 @@
the ‘sf’ package 📦
the ‘sf’ cheatsheet 🗾
+the ‘sf’ cheatsheet
the ‘sf’ cheatsheet 🗾
+the ‘sf’ cheatsheet
Conservation in Brielle, NL 🏭
+Conservation in Brielle, NL
Let’s focus on old buildings and imagine we’re in charge of their conservation. We want to know how much of the city would be affected by a non-construction zone of 100m around pre-1800 buildings.
Let’s select them and see where they are.
Conservation in Brielle, NL 🏫
+Conservation in Brielle, NL
Conservation in Brielle, NL 🏨
+Conservation in Brielle, NL
buildings$start_date <- as.numeric(as.character(buildings$start_date))
@@ -966,13 +966,14 @@ Centroids
Centroids
-sf::sf_use_s2(FALSE) # s2 works with geographic projections, so to calculate centroids in projected CRS units (meters), we need to disable it.
-centroids_old <- st_centroid(old_buildings) %>%
- st_transform(.,crs=28992)
-
-ggplot() +
- geom_sf(data = single_old_buffer, aes(fill=ID)) +
- geom_sf(data = centroids_old)
+sf::sf_use_s2(FALSE) # s2 works with geographic projections, so to calculate centroids in projected CRS units (meters), we need to disable it
+
+centroids_old <- st_centroid(old_buildings) %>%
+ st_transform(.,crs=28992)
+
+ggplot() +
+ geom_sf(data = single_old_buffer, aes(fill=ID)) +
+ geom_sf(data = centroids_old)
@@ -1031,12 +1032,12 @@ Final Output
⏰Challenge: Conservation rules have changed!
+Challenge: Conservation rules have changed!
The historical threshold now applies to all pre-WWII buildings, but the distance to these building is reduced to 10m.
Can you map the number of all buildings per 10m fused buffer?
10:00
Problem
⏰ Challenge: visualise the density of old buildings
+Challenge: visualise the density of old buildings
10:00
What’s next?
🦜 A few words of caution
+A few words of caution
We have taught you to think, type, try, test, read the documentation. This is not only the old fashion way, but the foundation.
When you encounter a bug, a challenge, a question that we have not covered, you could always make use of:
-
@@ -1170,12 +1171,12 @@
🦜 A few words of caution
🦜 A few words of caution
+A few words of caution
Be careful to keep it as a help, tool and support whose quality you can still assess.
They can provide fixes that you do not understand, answers that don’t make sense, and even wrong answers! So build yourself some foundations before you get into them.
🐰The end… wait!
+The end… wait!
Any questions?
Call for helpers!
This strengthens the community… and it can bring you GS Credits.
🐰The end… for real!
+The end… for real!
Geospatial Data Carpentry for Urbanism
diff --git a/instructors/4-gis-slides_files/figure-pdf/area-1.pdf b/instructors/4-gis-slides_files/figure-pdf/area-1.pdf new file mode 100644 index 00000000..c0e56cff Binary files /dev/null and b/instructors/4-gis-slides_files/figure-pdf/area-1.pdf differ diff --git a/instructors/4-gis-slides_files/figure-pdf/centroids-1.pdf b/instructors/4-gis-slides_files/figure-pdf/centroids-1.pdf new file mode 100644 index 00000000..442de485 Binary files /dev/null and b/instructors/4-gis-slides_files/figure-pdf/centroids-1.pdf differ diff --git a/instructors/4-gis-slides_files/figure-pdf/intersection_viz-1.pdf b/instructors/4-gis-slides_files/figure-pdf/intersection_viz-1.pdf new file mode 100644 index 00000000..ee69f5bb Binary files /dev/null and b/instructors/4-gis-slides_files/figure-pdf/intersection_viz-1.pdf differ diff --git a/instructors/4-gis-slides_files/figure-pdf/map-age-1.pdf b/instructors/4-gis-slides_files/figure-pdf/map-age-1.pdf new file mode 100644 index 00000000..6c967fb0 Binary files /dev/null and b/instructors/4-gis-slides_files/figure-pdf/map-age-1.pdf differ diff --git a/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-3-1.pdf b/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-3-1.pdf new file mode 100644 index 00000000..5163bcfe Binary files /dev/null and b/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-3-1.pdf differ diff --git a/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-4-1.pdf b/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-4-1.pdf new file mode 100644 index 00000000..216a7a65 Binary files /dev/null and b/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-4-1.pdf differ diff --git a/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-6-1.pdf b/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-6-1.pdf new file mode 100644 index 00000000..3524f0b9 Binary files /dev/null and b/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-6-1.pdf differ diff --git a/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-7-1.pdf b/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-7-1.pdf new file mode 100644 index 00000000..6156b2ad Binary files /dev/null and b/instructors/4-gis-slides_files/figure-pdf/unnamed-chunk-7-1.pdf differ diff --git a/instructors/4-gis-slides_files/figure-pdf/visu-1800-1.pdf b/instructors/4-gis-slides_files/figure-pdf/visu-1800-1.pdf new file mode 100644 index 00000000..1da1e6eb Binary files /dev/null and b/instructors/4-gis-slides_files/figure-pdf/visu-1800-1.pdf differ diff --git a/instructors/4-gis-slides_files/figure-revealjs/area-1.png b/instructors/4-gis-slides_files/figure-revealjs/area-1.png index 5ea1c0f3..c9c181ee 100644 Binary files a/instructors/4-gis-slides_files/figure-revealjs/area-1.png and b/instructors/4-gis-slides_files/figure-revealjs/area-1.png differ diff --git a/instructors/4-gis-slides_files/figure-revealjs/intersection_viz-1.png b/instructors/4-gis-slides_files/figure-revealjs/intersection_viz-1.png index 9c6dedcd..4ee99cd3 100644 Binary files a/instructors/4-gis-slides_files/figure-revealjs/intersection_viz-1.png and b/instructors/4-gis-slides_files/figure-revealjs/intersection_viz-1.png differ diff --git a/instructors/4-gis-slides_files/figure-revealjs/map-age-1.png b/instructors/4-gis-slides_files/figure-revealjs/map-age-1.png index 2caf47f0..cbf211c9 100644 Binary files a/instructors/4-gis-slides_files/figure-revealjs/map-age-1.png and b/instructors/4-gis-slides_files/figure-revealjs/map-age-1.png differ diff --git a/instructors/4-gis-slides_files/figure-revealjs/unnamed-chunk-7-1.png b/instructors/4-gis-slides_files/figure-revealjs/unnamed-chunk-7-1.png index 9af80ac9..8cca929a 100644 Binary files a/instructors/4-gis-slides_files/figure-revealjs/unnamed-chunk-7-1.png and b/instructors/4-gis-slides_files/figure-revealjs/unnamed-chunk-7-1.png differ diff --git a/instructors/4-gis-slides_files/figure-revealjs/visu-1800-1.png b/instructors/4-gis-slides_files/figure-revealjs/visu-1800-1.png index 25fa2010..319b6175 100644 Binary files a/instructors/4-gis-slides_files/figure-revealjs/visu-1800-1.png and b/instructors/4-gis-slides_files/figure-revealjs/visu-1800-1.png differ diff --git a/instructors/rsconnect/documents/4-gis-slides.qmd/rpubs.com/rpubs/Document.dcf b/instructors/rsconnect/documents/4-gis-slides.qmd/rpubs.com/rpubs/Document.dcf new file mode 100644 index 00000000..312127a8 --- /dev/null +++ b/instructors/rsconnect/documents/4-gis-slides.qmd/rpubs.com/rpubs/Document.dcf @@ -0,0 +1,10 @@ +name: Document +title: +username: +account: rpubs +server: rpubs.com +hostUrl: rpubs.com +appId: https://api.rpubs.com/api/v1/document/1151773/4942577f801d4258ac5fd9c557d01420 +bundleId: https://api.rpubs.com/api/v1/document/1151773/4942577f801d4258ac5fd9c557d01420 +url: http://rpubs.com/publish/claim/1151773/a5db08c6cde24c1a99b385cfbd65b394 +version: 1