This function calculates the geometric area for the polygons of a map and returns it as a dictionary.
For computational efficiency it’s recommended to store the results on the layer database using the addVariable layer function.
Example
import clusterpy
china = clusterpy.importArcData("clusterpy/data_examples/china")
china.getGeometricAreas()
Centroid calculation
This function calculates the centroids for the polygons of a map and returns it as a dictionary with the coordinates of each area.
For computational efficiency it’s recommended to store the results on the layer database using the addVariable layer function.
Example
import clusterpy
china = clusterpy.importArcData("clusterpy/data_examples/china")
china.getCentroids()
This function scales the layer width and height according to inputs proportions
| Parameters: |
|---|
Example
import clusterpy
china = clusterpy.importArcData("clusterpy/data_examples/china")
china.expand(100, 100)