gdal_clip_ogrsf | R Documentation |
Get OGR (OpenGIS Simple Features Reference Implementation) Simple Features Library to clip simple features with GDAL. Provide an sf object and clip large simple feature (infile). The clip will be based on the bounding box of the sf object.
gdal_clip_ogrsf(sf, infile, outfile, layers)
sf |
An sf object. |
infile |
A file path to the simple feature to clip. |
outfile |
A file path to write the clip to. |
layers |
A character vector. In case you are using a GPKG or gdb you can add the layers here. |
Sometimes you will need to double quote your path if there are spaces or unique characters that CLI needs quoted, e.g. '"C:/josh erickson/some file path/"'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.