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

Martin Landa landa.martin at gmail.com
Wed Mar 28 09:58:58 EDT 2007


Hi Jarek,

I converted ASCII data into binary format (vector map 'linie') [1].

I tried to merge all available lines (threshold=0):

g.copy vect=linie,linie1 ; v.edit linie1 tool=merge cat=1-99999
Copy vector <linie at temp> to current mapset as <linie1>
WARNING: The vector 'linie1' already exists and will be overwritten.
[11] of [11] features selected
Editing: [3] lines merged

Result [2] seems OK.

Trying to merge only lines with category 21 and 22

g.copy vect=linie,linie1;v.edit linie1 tool=merge cat=21,22
Copy vector <linie at temp> to current mapset as <linie1>
WARNING: The vector 'linie1' already exists and will be overwritten.
[2] of [11] features selected
Editing: [0] lines merged

No lines merged because the selected lines have not any joint node.
Increasing threshold these lines are merged:

g.copy vect=linie,linie1 ; v.edit linie1 tool=merge cat=21,22 thre=2000

Result [3] seems OK.

Would be possible to give me more detailed information?

Thanks, Martin

[1] http://gama.fsv.cvut.cz/~landa/temp/grass/v-edit-merge/linie_cat.png
[2] http://gama.fsv.cvut.cz/~landa/temp/grass/v-edit-merge/linie_merge1_cat.png
[3] http://gama.fsv.cvut.cz/~landa/temp/grass/v-edit-merge/linie_merge2_cat.png


2007/3/28, Jarosław Jasiewicz <jarekj at amu.edu.pl>:
>
> >
> > Because I cannot tell you why the lines are not merged (or fix a bug).
> > Without any testing data I can do nothing. v.out.ascii format=standard
> > exports a vector map into GRASS ASCII-vector format. Then I can import
> > it, reproduce a strange behaviour of module and fix it.
> >
> thanks, here are linie.txt with exported data. It is simple testing file.
> I also can send the binary vector file (zipped directory) if you wish
> regards
> Jarek
>
> ORGANIZATION:
> DIGIT DATE:
> DIGIT NAME:
> MAP NAME:
> MAP DATE:
> MAP SCALE:    1
> OTHER INFO:
> ZONE:         0
> MAP THRESH:   0.000000
> VERTI:
> L  6 1
>  381864.87117803 385450.44349761
>  383136.04125283 383805.39987141
>  383435.14009396 382459.45508633
>  384033.33777622 380664.86203956
>  384481.98603791 379618.01609561
>  384781.08487904 378720.71957222
>  1     26
> L  5 1
>  353226.15713997 374907.20934783
>  354721.65134561 374832.43463755
>  359507.23280367 374383.78637585
>  363245.96831778 375654.95645065
>  364965.78665427 376327.92884319
>  1     27
> L  6 1
>  366760.37970104 375355.85760952
>  366909.9291216 374682.88521698
>  367657.67622442 373336.9404319
>  372293.70826192 372888.29217021
>  373490.10362643 373187.39101134
>  374536.94957038 373187.39101134
>  1     28
> L  6 1
>  371471.18644881 391432.42032019
>  372817.13123389 390983.77205849
>  373415.32891615 390834.22263793
>  375808.11964518 391507.19503047
>  379023.43218731 392479.26626414
>  379771.17929013 398087.3695353
>  1     23
> L  5 1
>  343804.54364441 391208.09618934
>  347618.05386881 392329.71684357
>  348963.99865388 390983.77205849
>  351805.43764461 390535.1237968
>  360479.30403734 390684.67321737
>  1     21
> L  6 1
>  362049.57295326 383880.17458169
>  366685.60499076 382758.55392746
>  368181.0991964 382609.00450689
>  372218.93355163 384852.24581536
>  373863.97717784 384702.69639479
>  376256.76790687 383805.39987141
>  1     25
> L  5 1
>  362273.89708411 390908.99734821
>  363171.19360749 391058.54676878
>  364068.49013088 390460.34908652
>  366760.37970104 390834.22263793
>  371471.18644881 391432.42032019
>  1     22
> L  5 1
>  346346.88379401 383132.42747887
>  352179.31119602 384104.49871254
>  354347.7777942 382758.55392746
>  357862.18917746 382609.00450689
>  359058.58454198 383655.85045084
>  1     24
> L  4 1
>  343580.21951357 399134.21547925
>  346197.33437344 399807.18787179
>  349636.97104642 398162.14424558
>  351356.78938291 399283.76489981
>  1     18
> L  7 1
>  368554.97274781 398835.11663812
>  373564.87833671 399881.96258207
>  375509.02080405 399508.08903066
>  376929.74029941 398461.24308671
>  378500.00921534 398685.56721756
>  379397.30573872 398461.24308671
>  379771.17929013 398087.3695353
>  1     20
> L  6 1
>  353899.12953251 399134.21547925
>  359208.13396254 396442.32590909
>  362498.22121495 397713.49598389
>  364816.2372337 399508.08903066
>  367433.35209358 398536.01779699
>  367508.12680386 397638.72127361
>  1     19
>
>


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




More information about the grass-user mailing list