DESCRIPTION

v.centerpoint calculates center points for point clouds, lines and areas. Center points can be centers of gravity (coordinates' mean) or geometric medians (points of minimum distance, which is more robust in case of outliers.

For points, center points are calculated considering all points. For lines and areas, center points are calculated for each line or area separately.

If no output vector is given, center points are printed to stdout in ASCII point format:

<easting>|<northing>|<height>|<cat>
The category values are If an output vector is given, categories of the respective lines and areas are transferred from the selected layer to layer 1. Layer 2 holds the same category values as for output to stdout.

Point centers

Line centers

Area centers

EXAMPLE

Calculate center of gravity for the LiDAR point cloud 'elev_lid_bepts' in the North Carolina sample dataset:
v.centerpoint input=elev_lid_bepts output=elev_lid_bepts_mean
v.centerpoint in=urbanarea out=urbanarea_median acenter=median

SEE ALSO

v.centroid

AUTHOR

Markus Metz

Last changed: $Date$