qgis_polygoncentroids: Polygon centroids

Description Usage Arguments Value Examples

Description

This algorithm creates a new point layer, with points representing the centroid of polygons of an input layer.

The attributes associated to each point in the output layer are the same ones associated to the original polygon.

Usage

1
qgis_polygoncentroids(input, output)

Arguments

input

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

output

<chr> Destination of output file

Value

simple feature, geojson, or shapefile

Examples

1
2
3
4
5
qgis_polygoncentroids(census_tracts,
                      'C://Documents/Spatial/centroid.geojson')

qgis_polygoncentroids('C://Documents/Spatial/census_tracts.geojson',
                      'C://Documents/Spatial/centroid.geojson')

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