[Gvsig_english] nearest distance between points in polygons

Antonio Falciano afalciano at yahoo.it
Mon May 30 15:18:37 CEST 2011


Il 30/05/2011 13.59, Augustin, Jobst (ZI) ha scritto:
>
> Dear all,
>
> I have three layers, one layer with polygons (urban quarters) and two 
> point layers: a) location of drugstore and b) centroid of the 
> polygons. I’d like to know the nearest distance between a) and b) _for 
> each polygon_. Spatial join work’s very well, but did not consider the 
> polygons (I get the distance of the next point in any polygon). I 
> tried to union and intersect the polygon layer with the point layers, 
> but the result was the same. What can I do?
>
> Does anybody know how to do it?
>

Hi Augustin,
you could merge the two point layers (after creating an attribute field 
in order to distinguish them) and then apply the "Distance matrix" tool 
available in SEXTANTE. The output will be a table with distances from 
every point to each other ones, so you have to discard distances between 
points coming from the same starting point layer. That's all. Hope this 
helps!

Regards,
Antonio

-- 
Antonio Falciano
http://www.linkedin.com/in/antoniofalciano



More information about the Gvsig_internacional mailing list