st_read_meta {duckdbfs} | R Documentation |
read spatial metadata
Description
At this time, reads a subset of spatial metadata.
This is similar to what is reported by ogrinfo -json
Usage
st_read_meta(
path,
layer = 1L,
tblname = basename(tools::file_path_sans_ext(path)),
conn = cached_connection(),
...
)
Arguments
path |
URL or path to spatial data file |
layer |
layer number to read metadata for, defaults to first layer. |
tblname |
metadata will be stored as a view with this name, by default this is based on the name of the file. |
conn |
A connection to a database. |
... |
optional additional arguments passed to |
Value
A lazy dplyr::tbl
object containing core spatial metadata such
as projection information.
Examples
st_read_meta("https://github.com/duckdb/duckdb_spatial/raw/main/test/data/amsterdam_roads.fgb")
[Package duckdbfs version 0.0.4 Index]