Description Usage Arguments Value Examples
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.
1 | qgis_polygoncentroids(input, output)
|
input |
<chr> or simple feature object Target layer. Use either a file destination or simple feature dataframe |
output |
<chr> Destination of output file |
simple feature, geojson, or shapefile
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.