<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">So when you have identified in your
      lines map which lines are closed or not (with the coordinates
      equality), you can compute the length of all the lines and remove
      the closed ones which are under the threshold you want with
      v.extract. You can have two columns in your line map, one which
      identify if the line is closed or not and one whith the length.
      And you can used the v.extract command with where="coltag="closed"
      AND collength<xxx"<br>
      <br>
      Mick<br>
      <br>
      <br>
      Le 06/11/2013 17:23, BLANDENIER Lucien a écrit :<br>
    </div>
    <blockquote
      cite="mid:84F1DDBD03D55944AA4E63A2FE5EADE5530AB66A@MAIL-MBX-05.UNINE.CH"
      type="cite">
      <pre wrap="">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

regards


________________________________
De : Rabotin Michael [<a class="moz-txt-link-abbreviated" href="mailto:rabotin@supagro.inra.fr">rabotin@supagro.inra.fr</a>]
Envoyé : mercredi 6 novembre 2013 16:54
À : <a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
Cc : BLANDENIER Lucien
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

Michael


Le 06/11/2013 16:25, <a class="moz-txt-link-abbreviated" href="mailto:grass-user-request@lists.osgeo.org">grass-user-request@lists.osgeo.org</a><a class="moz-txt-link-rfc2396E" href="mailto:grass-user-request@lists.osgeo.org"><mailto:grass-user-request@lists.osgeo.org></a> a écrit :

Date: Wed, 6 Nov 2013 12:59:29 +0000
From: BLANDENIER Lucien <a class="moz-txt-link-rfc2396E" href="mailto:lucien.blandenier@unine.ch"><lucien.blandenier@unine.ch></a><a class="moz-txt-link-rfc2396E" href="mailto:lucien.blandenier@unine.ch"><mailto:lucien.blandenier@unine.ch></a>
To: <a class="moz-txt-link-rfc2396E" href="mailto:grass-user@lists.osgeo.org">"grass-user@lists.osgeo.org"</a><a class="moz-txt-link-rfc2396E" href="mailto:grass-user@lists.osgeo.org"><mailto:grass-user@lists.osgeo.org></a> <a class="moz-txt-link-rfc2396E" href="mailto:grass-user@lists.osgeo.org"><grass-user@lists.osgeo.org></a><a class="moz-txt-link-rfc2396E" href="mailto:grass-user@lists.osgeo.org"><mailto:grass-user@lists.osgeo.org></a>
Subject: [GRASS-user] How to remove small closed lines
Message-ID:
        <a class="moz-txt-link-rfc2396E" href="mailto:84F1DDBD03D55944AA4E63A2FE5EADE5530AB5EB@MAIL-MBX-05.UNINE.CH"><84F1DDBD03D55944AA4E63A2FE5EADE5530AB5EB@MAIL-MBX-05.UNINE.CH></a><a class="moz-txt-link-rfc2396E" href="mailto:84F1DDBD03D55944AA4E63A2FE5EADE5530AB5EB@MAIL-MBX-05.UNINE.CH"><mailto:84F1DDBD03D55944AA4E63A2FE5EADE5530AB5EB@MAIL-MBX-05.UNINE.CH></a>
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


--
[INRA]<a class="moz-txt-link-rfc2396E" href="http://www.inra.fr"><http://www.inra.fr></a>

Michael Rabotin
Ingénieur d'Etude SIG / GIS Engineer
<a class="moz-txt-link-abbreviated" href="mailto:michael.rabotin@supagro.inra.fr">michael.rabotin@supagro.inra.fr</a><a class="moz-txt-link-rfc2396E" href="mailto:#"><mailto:#></a>
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
<a class="moz-txt-link-abbreviated" href="http://www.inra.fr">www.inra.fr</a><a class="moz-txt-link-rfc2396E" href="http://www.inra.fr"><http://www.inra.fr></a> <a class="moz-txt-link-abbreviated" href="http://www.openfluid-project.org">www.openfluid-project.org</a><a class="moz-txt-link-rfc2396E" href="http://www.openfluid-project.org"><http://www.openfluid-project.org></a>


</pre>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <title>Signature electronique</title>
      <!-- tableau général -->
      <table border="0" cellpadding="0" cellspacing="0" width="auto">
        <tbody>
          <tr>
            <td><a href="http://www.inra.fr"><img
                  src="cid:part1.03080800.01050909@supagro.inra.fr"
                  alt="INRA" longdesc="http://www.inra.fr" height="60"
                  border="0" width="147"></a></td>
          </tr>
          <tr>
            <td style="padding-left:77px">
              <!-- tableau identité -->
              <table style="border-top:#999 solid 1px;
                border-bottom:#999 solid 1px;" border="0"
                cellpadding="0" cellspacing="0" width="auto">
                <tbody>
                  <tr>
                    <td height="10"> </td>
                  </tr>
                  <tr>
                    <td align="left" valign="top"><font color="#8bac21"
                        face="Arial, Helvetica, sans-serif" size="2"><strong>Michael
                          Rabotin</strong></font></td>
                  </tr>
                  <tr>
                    <td align="left" valign="top"><font color="#000000"
                        face="Arial, Helvetica, sans-serif" size="1"><strong>Ingénieur
                          d'Etude SIG / GIS Engineer</strong></font></td>
                  </tr>
                  <tr>
                    <td height="30" align="left" valign="middle"><font
                        color="#8bac21" face="Arial, Helvetica,
                        sans-serif" size="2"><a href="mailto:#"
                          style="color:#8bac21; text-decoration:none;">michael.rabotin@supagro.inra.fr</a></font></td>
                  </tr>
                  <tr>
                    <td align="left" valign="top"><font color="#8bac21"
                        face="Arial, Helvetica, sans-serif" size="1"><strong>UMR
                          LISAH - Centre de Montpellier</strong></font></td>
                  </tr>
                  <tr>
                    <td align="left" valign="top"><font color="#000000"
                        face="Arial, Helvetica, sans-serif" size="1">Tèl.
                        : +33 (0)4 99 61 23 85</font></td>
                  </tr>
                  <tr>
                    <td align="left" valign="top"><font color="#000000"
                        face="Arial, Helvetica, sans-serif" size="1">Mobile
                        : +33 (0)6 76 45 46 83</font></td>
                  </tr>
                  <tr>
                    <td height="25" align="left" valign="top"><font
                        color="#000000" face="Arial, Helvetica,
                        sans-serif" size="1">Fax : +33 (0)4 67 63 26 14</font></td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
          <tr>
            <td style="padding-left:77px;">
              <!-- tableau adresse -->
              <table border="0" cellpadding="0" cellspacing="0"
                width="auto">
                <tbody>
                  <tr>
                    <td height="20" align="left" valign="bottom"><font
                        color="#000000" face="Arial, Helvetica,
                        sans-serif" size="1">Bat 24 - 2 place Pierre
                        Viala</font></td>
                  </tr>
                  <tr>
                    <td align="left" valign="bottom"><font
                        color="#000000" face="Arial, Helvetica,
                        sans-serif" size="1">34060 Montpellier cedex 2</font></td>
                  </tr>
                  <tr>
                    <td align="left" valign="bottom"><font
                        color="#000000" face="Arial, Helvetica,
                        sans-serif" size="1">France</font></td>
                  </tr>
                  <tr>
                    <td align="left" valign="bottom"><font
                        color="#8bac21" face="Arial, Helvetica,
                        sans-serif" size="1"><a
                          href="http://www.inra.fr"
                          style="color:#8bac21; text-decoration:none;">www.inra.fr</a></font></td>
                    <td align="left" valign="bottom"><font
                        color="#8bac21" face="Arial, Helvetica,
                        sans-serif" size="1"><a
                          href="http://www.openfluid-project.org"
                          style="color:#8bac21; text-decoration:none;">www.openfluid-project.org</a></font></td>
                  </tr>
                </tbody>
              </table>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>