[GRASS-user] How to remove small closed lines

Rabotin Michael rabotin at supagro.inra.fr
Wed Nov 6 07:54:04 PST 2013


Hi, maybe you can identify your closed lines  with v.to.db command and 
the coordinate of the start point and the end point

v.to.db map=mylines option=end type=line col=coordEnd
v.to.db map=mylines option=start type=line col=coordStart


and tests if the coordinates of the startNode and the EndNode are 
equals, the line is closed and you can tag your lines .
And use after the v.extract command to extract only the lines which are 
not closed.

Hope it can be helpful

Michael


Le 06/11/2013 16:25, grass-user-request at lists.osgeo.org a écrit :
> Date: Wed, 6 Nov 2013 12:59:29 +0000
> From: BLANDENIER Lucien<lucien.blandenier at unine.ch>
> To:"grass-user at lists.osgeo.org"  <grass-user at lists.osgeo.org>
> Subject: [GRASS-user] How to remove small closed lines
> Message-ID:
> 	<84F1DDBD03D55944AA4E63A2FE5EADE5530AB5EB at MAIL-MBX-05.UNINE.CH>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I would like to know how to remove automatically small circles (closed lines, not area). I've tried with v.clean and v.generalize but I just get to remove line which are not closed.
>
>
> Regards
>
>
> Lucien


-- 
Signature electronique
INRA <http://www.inra.fr>
*Michael Rabotin*
*Ingénieur d'Etude SIG / GIS Engineer*
michael.rabotin at supagro.inra.fr <mailto:#>
*UMR LISAH - Centre de Montpellier*
Tèl. : +33 (0)4 99 61 23 85
Mobile : +33 (0)6 76 45 46 83
Fax : +33 (0)4 67 63 26 14

Bat 24 - 2 place Pierre Viala
34060 Montpellier cedex 2
France
www.inra.fr <http://www.inra.fr> 	www.openfluid-project.org 
<http://www.openfluid-project.org>

-------------- section suivante --------------
Une pi?ce jointe HTML a ?t? nettoy?e...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20131106/c37ebd85/attachment.html>
-------------- section suivante --------------
Une pi?ce jointe autre que texte a ?t? nettoy?e...
Nom: logo-INRA2012.gif
Type: image/gif
Taille: 2560 octets
Desc: http://www.inra.fr/
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20131106/c37ebd85/attachment.gif>


More information about the grass-user mailing list