Thanks for the reply Martin. I thought it might have something to do with the category values. <br><br>I know it is easier said than done, but isn't there a way one can skip the category merger part? Or can I merge all the lines into a single category? My system doesn't require the use of category values.
<br><br>I would like to automate the process. At the moment I have a raster image with some lines in them. I convert these to a vector layer, clean it up a bit and output it to svg.<br><br>Regards,<br>Andre<br><br><br><br>
<div class="gmail_quote">On Nov 20, 2007 2:03 PM, Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>2007/11/20, Andre Hauptfleisch <<a href="mailto:ahaupt@gmail.com">ahaupt@gmail.com</a>>:<br><div class="Ih2E3d">> Good day,<br>><br>> I used the v.clean approach to snap some vectors to each other. This caused
<br>> a number of vectors to lie on the same line. The rmdupl option does not seem<br>> to remove these short segments.<br>><br>> Any ideas on how I can get rid of them? Or perhaps I'm just using v.clean<br>
> wrong. Here is the command:<br>><br>> v.clean input=scene01@test output=scene01_clean type=line<br>> tool=snap,rmdupl,rmsa thresh=15 --overwrite<br><br></div>rmdupl removes only *identical* features, for example
<br><br>L 2 1<br> 594233.1875 4921026.59375<br> 596956.11875847 4921515.74307787<br> 1 1<br>L 2 1<br> 596956.11875847 4921515.74307787<br> 599775.5 4922022.21875<br> 1 2<br>L 2 1<br> 594233.1875 4921026.59375
<br> 599775.5 4922022.21875<br> 1 3<br>L 2 1<br> 595793 4918172.46875<br> 603426.125 4919400.40625<br> 1 4<br>L 2 1<br> 595793 4918172.46875<br> 603426.125 4919400.40625<br> 1 5<br><br>after rmdupl
<br><br>L 2 1<br> 594233.1875 4921026.59375<br> 596956.11875847 4921515.74307787<br> 1 1<br>L 2 1<br> 596956.11875847 4921515.74307787<br> 599775.5 4922022.21875<br> 1 2<br>L 2 1<br> 594233.1875 4921026.59375
<br> 599775.5 4922022.21875<br> 1 3<br>L 2 2<br> 595793 4918172.46875<br> 603426.125 4919400.40625<br> 1 5<br> 1 4<br><br>First two lines 'lie' on the third one, but they are not identical, if
<br>you want to remove them, you need to merge them first. E.g.<br><br>v.edit dupl1 tool=merge cat=1,2<br><br>remove vertex from line<br><br>v.generalize in=dupl1 out=dupl2<br><br>and then run v.clean.<br><br>The result is
<br><br>L 2 3<br> 594233.1875 4921026.59375<br> 599775.5 4922022.21875<br> 1 1<br> 1 2<br> 1 3<br>L 2 2<br> 595793 4918172.46875<br> 603426.125 4919400.40625<br> 1 5<br> 1 4<br><br>Martin
<br><div class="Ih2E3d"><br>> Thanks!<br>><br>> --<br>> Groete,<br>> Andre Hauptfleisch<br>><br>> M: 082 5722 469<br>> F: 086 687 1106<br>> E: <a href="mailto:ahaupt@gmail.com">ahaupt@gmail.com</a>
<br></div>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">
http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>><br>><br><font color="#888888"><br><br>--<br>Martin Landa <<a href="mailto:landa.martin@gmail.com">landa.martin@gmail.com</a>> * <a href="http://gama.fsv.cvut.cz/%7Elanda" target="_blank">
http://gama.fsv.cvut.cz/~landa</a> *<br></font></blockquote></div><br><br clear="all"><br>-- <br>Groete,<br>Andre Hauptfleisch<br><br>M: 082 5722 469<br>F: 086 687 1106<br>E: <a href="mailto:ahaupt@gmail.com">ahaupt@gmail.com
</a>