v.extract: allow direct transformation of centroids to points
|Reported by:||mlennert||Owned by:|
A recurrent task is to extract centroids from polygons and to use them as points in further analysis. Currently, one has to do this in two steps:
v.extract in=polygonmap out=centroidmap type=centroid v.type in=centroidmap out=pointmap type=centroid,point
As this is IMHO such a basic operation, it would be great if v.extract could directly create a point layer. This could be implemented in different ways (in my order of preference):
1) If map contains polygons, but no points and type=point is given, then extract the centroids as points, if type=centroid extract as centroids.
2) If type=centroid is given, extract as points by default, but allow to extract as centroids by use of a flag
3) If type=centroid is given, extract as centroids by default, but allow to extract as points by use of a flag
A problem obviously might occur if a map contains a mix of polygons and points...
Change History (4)
comment:1 by , 10 years ago
|Summary:||v.extract: allow direct transformation of centroids to polygons → v.extract: allow direct transformation of centroids to points|