[GRASS-user] Distance edge to edge between ALL the patches of a map

Hi!

I try to calculate all the distances edge to edge between all the polygons (in a vector map) or patches (in a raster version of the same map) of a dataset. I cannot use v.distance because it just provides the distance to the nearest element, and the same applies to r.le.dist for the patches. Anyone knows a way to do this?

It is a large dataset of +6000 patches/polygons, and the goal of this calculation is to prepare an input for a connectivity analysis in Conefor Sensinode.
For example if there would be just four patches the output should look like this

Patch_A Patch_B Distance(m)
1 2 6141.19
1 3 17192.37
1 4 18426.00
2 3 18768.68
2 4 123.76
3 4 1245.87

Thank you

Javier Godar

On 17/06/12 15:11, Javier Godar wrote:

Hi!

I try to calculate all the distances edge to edge between all the
polygons (in a vector map) or patches (in a raster version of the same
map) of a dataset. I cannot use v.distance because it just provides the
distance to the nearest element,

Using the -a flag, v.distance calculates the distances between all features. However, it does not allow to calculate the distance between edges of polygons, only between centroids or points and edges.

v.net.visibility might be an option. Or r.distance ?

Moritz