qgis_clip: QGIS Clip

Description Usage Arguments Value Examples

Description

This algorithm clips a vector layer using the polygons of an additional polygons layer. Only the parts of the features in the input layer that falls within the polygons of the clipping layer will be added to the resulting layer.

Usage

1
qgis_clip(input, overlay, output)

Arguments

input

<chr> or simple feature object Target layer. Use either a file destination or simple feature dataframe

overlay

<chr> or object Object you will use to clip the target layer. Use either a file destination or simple feature dataframe

output

<chr> file destination. .geojson or .shp

Value

simple feature, geojson, or shapefile

Examples

1
2
3
4
5
6
7
qgis_clip(input = US_Roads,
          overlay = Maryland,
          output = 'C://Documents/Spatial/maryland_roads.shp')

qgis_clip(input = 'C://Documents/Spatial/US_Roads.shp',
          overlay = 'C://Documents/Spatial/Maryland.shp',
          output = 'C://Documents/Spatial/maryland_roads.shp')

smitty1788/mercatoR documentation built on May 14, 2019, 3:03 p.m.