gdal_clip_ogrsf: Get OGR Clip

View source: R/gdal.R

gdal_clip_ogrsfR Documentation

Get OGR Clip

Description

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.

Usage

gdal_clip_ogrsf(sf, infile, outfile, layers)

Arguments

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.

Note

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/"'.


joshualerickson/resourceviz documentation built on Jan. 10, 2024, 4:57 p.m.