[GRASS-user] I: problems with v.edit

Martin Landa landa.martin at gmail.com
Sun Feb 1 17:25:33 EST 2009


Ciao Chiara,

2009/1/27 chiaraercoli at tiscali.it <chiaraercoli at tiscali.it>:
>> I have a problem with v-edit.
>> I have to break a vector line
>> into two parts near a point. I gave this command:
>>
>> v.edit map=ret_125
>> layer=1 type=line tool=break thresh=$ris_edit coords=$x,$y snap=no
>>
>>
>> where " $ris_edit "  depends on the resolution of the DEM raster
> map,
>> "$x" and "$y" are the coordinates of the point.
>
> are you sure that threshold value is enough to select vector feature
> which you want to break?
>
> v.edit map=ret_125 tool=select  thresh=$ris_edit coords=$x,$y

v.out.ascii punto_minimo
861020.54634226|7317237.09688885|1

v.edit ret_125 tool=select coord=861020.54634226,7317237.09688885 thresh=15 --q
1

OK, feature selected

v.edit ret_125 tool=break coord=861020.54634226,7317237.09688885
thresh=15 snap=no type=line layer=1

OK, feature broken

Check:

v.edit ret_125 tool=select coord=861020.54634226,7317237.09688885 thresh=15 --q
1,2

So where is the problem? ;-)

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa


More information about the grass-user mailing list