bcgov / bcdata

An R package for searching & retrieving data from the B.C. Data Catalogue
https://bcgov.github.io/bcdata
Apache License 2.0
82 stars 12 forks source link

Some BCGW names in the record are not the same as the wfs object name #129

Closed ateucher closed 4 years ago

ateucher commented 5 years ago

The BCGW name in this record is WHSE_ADMIN_BOUNDARIES.ADM_NR_DISTRICTS_SP, however that doesn't work with bcdc_get_data (bcdc_get_data("WHSE_ADMIN_BOUNDARIES.ADM_NR_DISTRICTS_SP") fails). The wfs layer name is WHSE_ADMIN_BOUNDARIES.ADM_NR_DISTRICTS_SPG

library(bcdata)
#> 
#> Attaching package: 'bcdata'
#> The following object is masked from 'package:stats':
#> 
#>     filter

bcdc_get_data("natural-resource-nr-district") %>% 
  show_query()
#> <url>
#> <body>
#>    SERVICE: WFS
#>    VERSION: 2.0.0
#>    REQUEST: GetFeature
#>    outputFormat: application/json
#>    typeNames: WHSE_ADMIN_BOUNDARIES.ADM_NR_DISTRICTS_SPG
#>    SRSNAME: EPSG:3005
#> 
#> <full query url>
#> https://openmaps.gov.bc.ca/geo/pub/wfs?SERVICE=WFS&VERSION=2.0.0&REQUEST=GetFeature&outputFormat=application%2Fjson&typeNames=WHSE_ADMIN_BOUNDARIES.ADM_NR_DISTRICTS_SPG&SRSNAME=EPSG%3A3005

Created on 2019-11-06 by the reprex package (v0.3.0)

ateucher commented 5 years ago

https://catalogue.data.gov.bc.ca/dataset/natural-resource-nr-district#additional-information shows that the WMS serves up a generalized view, while downloading it through the Distribution Service will give the full detailed layer... this could cause unintended consequences to users if they are expecting the full detailed layer for analysis.

@webgismd can you shed any light on this? Are there other records where the features served up by the WMS are generalized/simplified from the warehouse object?