Lists the layers (OGC API Features collections) offered by a dataset.
Arguments
- dataset
A dataset id from
pdok_list_datasets()(e.g."cbs/gebiedsindelingen"), or a raw OGC API base URL.- queryables
If
TRUE, also retrieve the fields each layer allows a server-sidefilteron (seepdok_list_queryables()), added as a list-columnqueryables. This costs one extra request per layer, so it is off by default.
Value
A tibble with one row per layer and the columns
dataset (the dataset id, echoing the input so each row works directly
with pdok_read()), layer (the layer identifier), title,
description, start_date and end_date (the temporal extent the layer
covers, as Dates; end_date is NA when the layer is ongoing), crs (a
list-column of available EPSG codes), storage_crs (the EPSG code the data
is stored in), and bbox (a list-column of named numeric extents
c(xmin, ymin, xmax, ymax) in CRS84). With queryables = TRUE, a
list-column queryables (a character vector of filterable field names
per layer) follows description.
See also
pdok_search_layers() to filter this list,
pdok_list_datasets() for the datasets, pdok_list_queryables() for
the queryables of one layer with their types.
Examples
# \donttest{
pdok_list_layers("cbs/gebiedsindelingen")
#> # A tibble: 63 × 9
#> dataset layer title description start_date end_date crs storage_crs bbox
#> <chr> <chr> <chr> <chr> <date> <date> <list> <int> <list>
#> 1 cbs/ge… arbe… Arbe… Een indeli… 2016-01-01 NA <int> 28992 <dbl>
#> 2 cbs/ge… arbe… Arbe… arbeidsmar… 2016-01-01 NA <int> 28992 <dbl>
#> 3 cbs/ge… arro… Arro… De arrondi… 2016-01-01 NA <int> 28992 <dbl>
#> 4 cbs/ge… arro… Arro… arrondisse… 2016-01-01 NA <int> 28992 <dbl>
#> 5 cbs/ge… buur… Buur… Onderdeel … 2016-01-01 NA <int> 28992 <dbl>
#> 6 cbs/ge… buur… Buur… buurt_labe… 2016-01-01 NA <int> 28992 <dbl>
#> 7 cbs/ge… buur… Buur… buurtnietg… 2016-01-01 NA <int> 28992 <dbl>
#> 8 cbs/ge… coro… Coro… De COROP-g… 2016-01-01 NA <int> 28992 <dbl>
#> 9 cbs/ge… coro… Coro… coropgebie… 2016-01-01 NA <int> 28992 <dbl>
#> 10 cbs/ge… coro… Coro… De COROP-p… 2016-01-01 NA <int> 28992 <dbl>
#> # ℹ 53 more rows
# Which fields can each layer be filtered on?
layers <- pdok_list_layers("cbs/gebiedsindelingen", queryables = TRUE)
layers[, c("layer", "queryables")]
#> # A tibble: 63 × 2
#> layer queryables
#> <chr> <list>
#> 1 arbeidsmarktregio_gegeneraliseerd <chr [2]>
#> 2 arbeidsmarktregio_labelpoint <chr [2]>
#> 3 arrondissementsgebied_gegeneraliseerd <chr [2]>
#> 4 arrondissementsgebied_labelpoint <chr [2]>
#> 5 buurt_gegeneraliseerd <chr [2]>
#> 6 buurt_labelpoint <chr [2]>
#> 7 buurt_niet_gegeneraliseerd <chr [2]>
#> 8 coropgebied_gegeneraliseerd <chr [2]>
#> 9 coropgebied_labelpoint <chr [2]>
#> 10 coropplusgebied_gegeneraliseerd <chr [2]>
#> # ℹ 53 more rows
# }
