[GRASS-user] How to remove small closed lines

BLANDENIER Lucien lucien.blandenier at unine.ch
Wed Nov 6 08:23:07 PST 2013

In fact I need to remove some of the closed line according to their length.

Normally v.clean is able to remove small line with a threshold but it is not working for closed lines... I was wondering if there is an easy way to do this. Or maybe is there a possibility to cut the "closed" lines


De : Rabotin Michael [rabotin at supagro.inra.fr]
Envoyé : mercredi 6 novembre 2013 16:54
À : grass-user at lists.osgeo.org
Objet : Re: [GRASS-user] How to remove small closed lines

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


Le 06/11/2013 16:25, grass-user-request at lists.osgeo.org<mailto: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><mailto:lucien.blandenier at unine.ch>
To: "grass-user at lists.osgeo.org"<mailto:grass-user at lists.osgeo.org> <grass-user at lists.osgeo.org><mailto:grass-user at lists.osgeo.org>
Subject: [GRASS-user] How to remove small closed lines
        <84F1DDBD03D55944AA4E63A2FE5EADE5530AB5EB at MAIL-MBX-05.UNINE.CH><mailto:84F1DDBD03D55944AA4E63A2FE5EADE5530AB5EB at MAIL-MBX-05.UNINE.CH>
Content-Type: text/plain; charset="iso-8859-1"


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.




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
www.inra.fr<http://www.inra.fr> www.openfluid-project.org<http://www.openfluid-project.org>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo-INRA2012.gif
Type: image/gif
Size: 2560 bytes
Desc: http://www.inra.fr/.gif
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20131106/6b7f6ca8/attachment.gif>

More information about the grass-user mailing list