[Gvsig_english] Point2Point Comparison

Simon Cropper (Botanicus Australia Pty Ltd) scropper at botanicusaustralia.com.au
Wed Dec 2 09:48:48 CET 2009


Jorge,

Any idea how I might calculate the euclidean distance using the field 
calculator?

The calculator can only interact with one file at a time, how would you 
manage two tables?

Cheers Simon

Simon Cropper
Botanicus Australia Pty Ltd
PO Box 160, Sunshine, Victoria 3020.
P: 9311 5822. M: 041 830 3437.
mailto: scropper at botanicusaustralia.com.au 
<mailto:scropper at botanicusaustralia.com.au>
web: www.botanicusaustralia.com.au <http://www.botanicusaustralia.com.au>



Jorge Gaspar Sanz Salinas wrote:
> On 01/12/09 23:01, Simon Cropper (Botanicus Australia Pty Ltd) wrote:
>   
>> Hi Guys,
>>
>> Is anyone aware of a utility where you can compare two point layers and
>> get back a table of distances and bearing between each point. I know
>> Sextante can have a file look at itself, so it is possible to merge a
>> file and run this routine but I find that this creates a cumbersome
>> matrix that needs to be disassembled.
>>
>> A file with the following fields would be desirable ID_FILE1, ID_FILE2,
>> DISTANCE and BEARING, with one record representing one comparison.
>>     
>
> Simon,
>
> If you have common IDs for the layers, you can do that with a little bit 
> of work on the field calculator, extrancting coordinates and calculating 
> the euclidean distance (if it's sensible)
>
> For a more automated way: Sextante development or some scripting.
>
> Nice use case, indeed.
>
> Cheers
> Jorge
> _______________________________________________
> Gvsig_internacional mailing list
> Gvsig_internacional at listserv.gva.es
> http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional
>
>
>   


More information about the Gvsig_internacional mailing list