<div dir="ltr"><div><br><br>On Thu, Jun 22, 2017 at 10:56 AM, Moritz Lennert <<a href="mailto:mlennert@club.worldonline.be">mlennert@club.worldonline.be</a>> wrote:<br>><br>> On 21/06/17 23:12, Markus Neteler wrote:<br>>><br>>> On Wed, Jun 21, 2017 at 10:19 PM, Markus Metz<br>>> <<a href="mailto:markus.metz.giswork@gmail.com">markus.metz.giswork@gmail.com</a>> wrote:<br>>> ...<br>>>><br>>>> v.univar can also compute statistics on the distances between vector<br>>>> geometries. There is no explanation in the manual what this should be good<br>>>> for. Markus N, you wanted this feature many years ago, do you remember why?<br>>><br>>><br>>> I found this related ticket:<br>>> <a href="https://trac.osgeo.org/grass/ticket/942">https://trac.osgeo.org/grass/ticket/942</a><br>>><br>>> Checking further, I found a personal wish email to MartinL from 2009.<br>>> AFAIR I was dealing with LiDAR point clouds of the Trentino back<br>>> then... and needed to know the average distance between points<br><br></div><div>Did you really want to average distance to all other points or rather the average distance to the nearest other point?<br></div><div><br>>> in<br>>> order to optimize raster binning (meanwhile I would probably use<br>>> <a href="http://r.in.xyz">r.in.xyz</a> and count the points falling into each raster cell, then<br>>> r.univar on the resulting map).<br>>><br>>> However, to have the possibility to compute statistics on the<br>>> distances between vector (point) geometries makes sense to me in a<br>>> GIS.<br>><br>><br>> Would this possibly be better done within v.distance ? Something like a -s flag meaning "Output summary statistics of desired information" which would take the info chosen in upload=, and possibly the -a flag and calculated summary statistics ?<br><br></div>v.distance uses the distance to the nearest feature while v.univar uses all distances to all other features. While v.distance makes sense to me, v.univar's distances to all other features do not make sense to me. <br><div><br></div><div>Markus M <br></div></div>