st_layers | R Documentation |
Return properties of layers in a datasource
st_layers(dsn, options = character(0), do_count = FALSE)
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 |
list object of class sf_layers
with elements
name of the layer
list with for each layer the geometry types
number of features (if reported; see do_count
)
number of fields
list with for each layer the crs
object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.