Read vector shape data with optional extent filter.

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()`

Value

sf object, see `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.

Examples