diff --git a/vignettes/bcdata.Rmd b/vignettes/bcdata.Rmd index 2ec06fbd..151da4d2 100644 --- a/vignettes/bcdata.Rmd +++ b/vignettes/bcdata.Rmd @@ -133,7 +133,7 @@ You can see all valid values for the catalogue search facets using `bcdata::bcdc ## Valid values for search facet 'license_id' bcdc_search_facets(facet = "license_id") #> facet count display_name -#> 1 license_id 68 Statistics Canada Open Licence +#> 1 license_id 80 Statistics Canada Open Licence #> 2 license_id 1 Queen's Printer Licence - British Columbia #> 3 license_id 12 Open Government Licence – TransLink #> 4 license_id 12 Open Government Licence – Municipality of North Cowichan @@ -144,7 +144,7 @@ bcdc_search_facets(facet = "license_id") #> 9 license_id 3 Open Government Licence - BC Assessment #> 10 license_id 2 Open Data Commons - Public Domain Dedication and Licence #> 11 license_id 16 Elections BC Open Data Licence -#> 12 license_id 1282 Access Only +#> 12 license_id 1291 Access Only #> name #> 1 21 #> 2 25 diff --git a/vignettes/bcdata.Rmd.orig b/vignettes/bcdata.Rmd.orig index 60fa6770..3b75e572 100644 --- a/vignettes/bcdata.Rmd.orig +++ b/vignettes/bcdata.Rmd.orig @@ -33,7 +33,7 @@ knitr::opts_chunk$set( fig.width = 7, fig.height = 4, dev = "CairoPNG", - dpi = 300 + dpi = 400 ) options(crayon.enabled = FALSE) diff --git a/vignettes/efficiently-query-spatial-data-in-the-bc-data-catalogue.Rmd b/vignettes/efficiently-query-spatial-data-in-the-bc-data-catalogue.Rmd index 2590e13c..864d2134 100644 --- a/vignettes/efficiently-query-spatial-data-in-the-bc-data-catalogue.Rmd +++ b/vignettes/efficiently-query-spatial-data-in-the-bc-data-catalogue.Rmd @@ -1,6 +1,6 @@ --- title: "Querying Spatial Data with bcdata" -date: "2020-05-28" +date: "2020-06-02" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Querying Spatial Data with bcdata} @@ -248,9 +248,9 @@ bcdc_query_geodata("6a2fea1b-0cc4-4fc2-8017-eaf755d516da") %>% #> ● At most six rows of the record are printed here #> ──────────────────────────────────────────────────────────────────────────────── #> Simple feature collection with 6 features and 19 fields -#> geometry type: MULTIPOLYGON +#> geometry type: POLYGON #> dimension: XY -#> bbox: xmin: 1227676 ymin: 455032.1 xmax: 1234629 ymax: 467135.4 +#> bbox: xmin: 1227676 ymin: 461435.1 xmax: 1238850 ymax: 468825.5 #> CRS: 3005 #> # A tibble: 6 x 20 #> id LOCAL_REG_GREEN… PARK_NAME PARK_TYPE PARK_PRIMARY_USE REGIONAL_DISTRI… @@ -259,13 +259,13 @@ bcdc_query_geodata("6a2fea1b-0cc4-4fc2-8017-eaf755d516da") %>% #> 2 WHSE… 21 Bear Cre… Local Park Metro Vancouver #> 3 WHSE… 22 Beaver C… Local Park Metro Vancouver #> 4 WHSE… 23 Bel-Air … Local Park Metro Vancouver -#> 5 WHSE… 30 Blumsen … Local Park Metro Vancouver -#> 6 WHSE… 31 Bob Rutl… Local Park Metro Vancouver +#> 5 WHSE… 37 Freedom … Local Park Metro Vancouver +#> 6 WHSE… 46 Barnston… Local Park Metro Vancouver #> # … with 14 more variables: MUNICIPALITY , CIVIC_NUMBER , #> # CIVIC_NUMBER_SUFFIX , STREET_NAME , LATITUDE , #> # LONGITUDE , WHEN_UPDATED , WEBSITE_URL , #> # LICENCE_COMMENTS , FEATURE_AREA_SQM , FEATURE_LENGTH_M , -#> # OBJECTID , SE_ANNO_CAD_DATA , geometry +#> # OBJECTID , SE_ANNO_CAD_DATA , geometry ``` Here we see that this greatly reduces the number of features that we are dealing with (and correspondingly the amount of data that needs to be transferred over the web). Remember also that we still have not actually requested the full data set. This is just still a preview. Also this query still includes all municipal parks in BC while we only want the ones in the three school districts - the polygons defined by the `districts` object. To find that subset of parks we can make use of the built-in geometric operators which allow us to perform spatial operations remotely fine tuning our query even further. Here using the `INTERSECTS` function is appropriate and since this is a last tuning step, we can call `collect` and assign a name to this object. These requests can sometimes take quite a long: diff --git a/vignettes/efficiently-query-spatial-data-in-the-bc-data-catalogue.Rmd.orig b/vignettes/efficiently-query-spatial-data-in-the-bc-data-catalogue.Rmd.orig index aca982b8..7ad60ff5 100644 --- a/vignettes/efficiently-query-spatial-data-in-the-bc-data-catalogue.Rmd.orig +++ b/vignettes/efficiently-query-spatial-data-in-the-bc-data-catalogue.Rmd.orig @@ -33,7 +33,7 @@ knitr::opts_chunk$set( fig.width = 7, fig.height = 4, dev = "CairoPNG", - dpi = 300 + dpi = 400 ) options(crayon.enabled = FALSE) diff --git a/vignettes/explore-silviculture-data-using-bcdata.Rmd b/vignettes/explore-silviculture-data-using-bcdata.Rmd index 3c86096e..e4422098 100644 --- a/vignettes/explore-silviculture-data-using-bcdata.Rmd +++ b/vignettes/explore-silviculture-data-using-bcdata.Rmd @@ -1,6 +1,6 @@ --- title: "Exploring Silviculture Data with bcdata" -date: "2020-05-28" +date: "2020-06-02" output: rmarkdown::html_vignette vignette: > %\VignetteIndexEntry{Exploring Silviculture Data with bcdata} @@ -97,7 +97,7 @@ We see that this is a [Web Service-enabled](https://www2.gov.bc.ca/gov/content?i # Query the data using the permanent ID of the record to guard against name changes bcdc_query_geodata("258bb088-4113-47b1-b568-ce20bd64e3e3") #> Querying 'results-forest-cover-silviculture' record -#> ● Using collect() on this object will return 871550 features and 159 fields +#> ● Using collect() on this object will return 872209 features and 159 fields #> ● At most six rows of the record are printed here #> ──────────────────────────────────────────────────────────────────────────────── #> Simple feature collection with 6 features and 159 fields diff --git a/vignettes/explore-silviculture-data-using-bcdata.Rmd.orig b/vignettes/explore-silviculture-data-using-bcdata.Rmd.orig index a44d72fb..df14684f 100644 --- a/vignettes/explore-silviculture-data-using-bcdata.Rmd.orig +++ b/vignettes/explore-silviculture-data-using-bcdata.Rmd.orig @@ -33,7 +33,7 @@ knitr::opts_chunk$set( fig.width = 7, fig.height = 4, dev = "CairoPNG", - dpi = 300 + dpi = 400 ) library(knitr) diff --git a/vignettes/vignette-fig-air_zones-1.png b/vignettes/vignette-fig-air_zones-1.png index cc9b32ad..4278f883 100644 Binary files a/vignettes/vignette-fig-air_zones-1.png and b/vignettes/vignette-fig-air_zones-1.png differ diff --git a/vignettes/vignette-fig-bbox-1.png b/vignettes/vignette-fig-bbox-1.png index 337b9e91..0e9a96a3 100644 Binary files a/vignettes/vignette-fig-bbox-1.png and b/vignettes/vignette-fig-bbox-1.png differ diff --git a/vignettes/vignette-fig-district_parks-1.png b/vignettes/vignette-fig-district_parks-1.png index 51077606..d1893918 100644 Binary files a/vignettes/vignette-fig-district_parks-1.png and b/vignettes/vignette-fig-district_parks-1.png differ diff --git a/vignettes/vignette-fig-districts-1.png b/vignettes/vignette-fig-districts-1.png index 8e577ffc..3d9463ef 100644 Binary files a/vignettes/vignette-fig-districts-1.png and b/vignettes/vignette-fig-districts-1.png differ diff --git a/vignettes/vignette-fig-dp_join-1.png b/vignettes/vignette-fig-dp_join-1.png index eb7fee79..b8d83835 100644 Binary files a/vignettes/vignette-fig-dp_join-1.png and b/vignettes/vignette-fig-dp_join-1.png differ diff --git a/vignettes/vignette-fig-map-larch-plantations-dpg-1.png b/vignettes/vignette-fig-map-larch-plantations-dpg-1.png index 933a686e..b36be998 100644 Binary files a/vignettes/vignette-fig-map-larch-plantations-dpg-1.png and b/vignettes/vignette-fig-map-larch-plantations-dpg-1.png differ diff --git a/vignettes/vignette-fig-plot-dpg-1.png b/vignettes/vignette-fig-plot-dpg-1.png index 72f80188..2d521513 100644 Binary files a/vignettes/vignette-fig-plot-dpg-1.png and b/vignettes/vignette-fig-plot-dpg-1.png differ diff --git a/vignettes/vignette-fig-regional_districts-1.png b/vignettes/vignette-fig-regional_districts-1.png index dfeb6e0c..3615c41a 100644 Binary files a/vignettes/vignette-fig-regional_districts-1.png and b/vignettes/vignette-fig-regional_districts-1.png differ diff --git a/vignettes/vignette-fig-unnamed-chunk-1-1.png b/vignettes/vignette-fig-unnamed-chunk-1-1.png index b34f8939..121b0d40 100644 Binary files a/vignettes/vignette-fig-unnamed-chunk-1-1.png and b/vignettes/vignette-fig-unnamed-chunk-1-1.png differ diff --git a/vignettes/vignette-fig-unnamed-chunk-3-1.png b/vignettes/vignette-fig-unnamed-chunk-3-1.png index e22cd553..b06d723a 100644 Binary files a/vignettes/vignette-fig-unnamed-chunk-3-1.png and b/vignettes/vignette-fig-unnamed-chunk-3-1.png differ