[GRASS-dev] How to calculate mean coordinates from big point datasets?

Hamish hamish_b at yahoo.com
Tue Sep 17 16:04:38 PDT 2013


Markus Neteler wrote:

> I came across this question:
> 
> http://gis.stackexchange.com/questions/71734/how-to-calculate-mean-coordinates-from-big-point-datasets

so wants to find the average coordinate?

> and wondered if this approach would be the fasted:
> 
> # http://grass.osgeo.org/sampledata/north_carolina/points.las
> v.in.lidar input=points.las output=lidarpoints -o
> ...
> Number of points: 1287775
> ...
> 
> Now I would use
> v.univar -d lidarpoints type=point
> 
> (still calculating here...)
> 
> Is it the best way?


see also the v.points.cog addons script:
   http://grasswiki.osgeo.org/wiki/AddOns/GRASS_6#v.points.cog

although I haven't tried it for anything as big as lidar data.


Hamish



More information about the grass-dev mailing list