**-b**- Do not build topology
- Advantageous when handling a large number of points
**--overwrite**- Allow output files to overwrite existing files
**--help**- Print usage summary
**--verbose**- Verbose module output
**--quiet**- Quiet module output
**--ui**- Force launching GUI dialog

**input**=*name***[required]**- Name of input vector map
- Or data source for direct OGR access
**output**=*name*- Name for output vector map
**type**=*string[,**string*,...]- Input feature type
- Options:
*point, line, area* - Default:
*point,line,area* **layer**=*string*- Layer number or name
- Vector features can have category values in different layers. This number determines which layer to use. When used with direct OGR access this is the layer name.
- Default:
*1* **cats**=*range*- Category values
- Example: 1,3,7-9,13
**where**=*sql_query*- WHERE conditions of SQL statement without 'where' keyword
- Example: income < 1000 and population >= 10000
**pcenter**=*string[,**string*,...]- point center
- Options:
*mean, median, pmedian* - Default:
*mean* **mean**: Center of gravity**median**: Geometric median (point of minimum distance)**pmedian**: Point closest to geometric median**lcenter**=*string[,**string*,...]- line center
- Options:
*mid, mean, median* - Default:
*mid* **mid**: Line mid point**mean**: Center of gravity**median**: Geometric median (point of minimum distance) using line segments**acenter**=*string[,**string*,...]- area center
- Options:
*mean, median, bmedian* - Default:
*mean* **mean**: Center of gravity**median**: Geometric median (point of minimum distance) using area sizes**bmedian**: Geometric median (point of minimum distance) using boundary segments

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>

**1**- mean of points**2**- median of points**3**- point closest to median of points**4**- mid point of each line**5**- mean of each line**6**- median of each line**7**- mean of each area**8**- median of each area using area triangulation**9**- median of each area using boundaries

**mean**- center of gravity, mean of all point coordinates**median**- geometric median, minimum distance to all points**pmedian**- point closest to the geometric median

**mid**- the mid point of each line, lies exactly on the line**mean**- center of gravity, mean of all line segments, might not lie on the line**median**- geometric median, minimum distance to all line segments, might not lie on the line

**mean**- center of gravity, calculated using area triangulation**median**- geometric median, minimum distance to area triangulation, might not lie inside the area**bmedian**- geometric median, minimum distance to boundary segments, might not lie inside the area

v.centerpoint input=elev_lid_bepts output=elev_lid_bepts_mean

v.centerpoint in=urbanarea out=urbanarea_median acenter=median

*Last changed: $Date: 2014-02-03 09:22:15 +0100 (Mon, 03 Feb 2014) $*

Available at: v.centerpoint source code (history)

Main index | Vector index | Topics index | Keywords index | Graphical index | Full index

© 2003-2018 GRASS Development Team, GRASS GIS 7.4.2svn Reference Manual