st_layers {sf} | R Documentation |
Return properties of layers in a datasource
Description
Return properties of layers in a datasource
Usage
st_layers(dsn, options = character(0), do_count = FALSE)
Arguments
dsn |
data source name (interpretation varies by driver - for some drivers, |
options |
character; driver dependent dataset open options, multiple options supported. |
do_count |
logical; if TRUE, count the features by reading them, even if their count is not reported by the driver |
Value
list object of class sf_layers
with elements
- name
name of the layer
- geomtype
list with for each layer the geometry types
- features
number of features (if reported; see
do_count
)- fields
number of fields
- crs
list with for each layer the
crs
object
[Package sf version 1.0-16 Index]