[GRASS-user] problem with v.edit tool=merge

Jarek Jasiewicz jarekj at amu.edu.pl
Thu Mar 29 04:30:37 EDT 2007


>
> I disabled threshold for merging lines.
>
> Martin
>
>> Jarek
>>
>
>
Martin!

Look on line 259 in merge.c: (it is copy form newest cvs version)

....
 /* find the minimal distance between first or last point of both lines */
    mindistidx = 0;
    for (i = 0; i < 4; i++)
    if (distances[i] < distances[mindistidx])
        mindistidx = i;

    G_debug (3, "merge line ? mindist: %g, thresh: %g",
         distances[mindistidx], thresh);
   
look here: >>>>>>   if (distances[mindistidx] > thresh) {
    return 0;
    }

.....


maybe here is the problem
that part of code differs slighty from the part of code in snap.c where 
is no test if distance is lesser than treshold

Jarek




More information about the grass-user mailing list