read_ext {basf} | R Documentation |
Read GDAL vector data
Description
Read vector shape data with optional extent filter.
Usage
read_ext(x, ext = NULL, ...)
Arguments
x |
used as 'sf::st_read()“ dsn argument |
ext |
optional extent (as per raster package) |
... |
arguments passed to 'sf::st_read()' |
Details
The extent coordinates must be in the same projection as the source, or the result could be wrong.
Uses the 'sf' package to pass the extent down to GDAL's ExecuteSQL as WKT, use anything with an extent that the 'raster' package understands.
Value
sf object, see 'sf::st_read()'
Examples
## Not run:
\donttest{
# read_ext("myshapefile", raster::extent(100, 120, -40, -30))
}
## End(Not run)
[Package basf version 0.2.0 Index]