mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
31 lines
560 B
ReStructuredText
31 lines
560 B
ReStructuredText
POLYGON CENTROIDS
|
|
=================
|
|
|
|
Description
|
|
-----------
|
|
This algorithm calculates the centroids of a polygons layer.
|
|
|
|
Parameters
|
|
----------
|
|
|
|
- ``Polygons[Vector]``: polygons layer
|
|
- ``Centroids for each part[Boolean]``: YES if you want to calculate centroids for each part of the layer, NO if you want
|
|
to calculate centroids only for the single features
|
|
|
|
Outputs
|
|
-------
|
|
|
|
- ``Centroids[Vector]``: the resulting points layer
|
|
|
|
See also
|
|
---------
|
|
|
|
|
|
Console usage
|
|
-------------
|
|
|
|
|
|
::
|
|
|
|
processing.runalg('saga:polygoncentroids', polygons, method, centroids)
|