<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    This is a late reply, but you might still find it useful. <br>
    <br>
    You can get rid of single (or multiple) isolated pixels  by cleaning
    the raster with the following commands:<br>
    <br>
    r. reclass.area<br>
    r.neighbors (with the selection option - appears only in version 7).<br>
    <br>
    The idea is to reclassify your raster using the area of a single or
    multiple isolated pixels ( eg. estimate what is the area of a single
    pixel in ha and use it to reclassify your raster), producing a map
    that will exclude the pixels selected below this area threshold. You
    will end up with a raster with nulls in place of the rejected
    pixels.<br>
    <br>
    Then you can use the r.neighbors to replace these nulls (and only
    these, if you use the selection option) with the mode (if it is an
    integer/categorical raster otherwise use the appropriate statistic)
    of the pixels values in the specified neighborhood. This is done by
    using the raster resulted from the r. reclass.area in the selection
    option and the original raster in the input.  You will end up with a
    much more "clean" raster to convert  to vector.<br>
    <br>
    best regards,<br>
    sotiris<br>
    <br>
    <br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 06/16/2014 02:47 PM, Thomas Adams
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAGxgkWjJ58dvX2QiJp0-45qhyqbowgFNcnrtdVEiVZdzsrHsuQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">All:
        <div><br>
        </div>
        <div>I have used r.lake to simulate flood inundation in an urban
          area -- the raster looks great! What I want to do (and have
          done) is to use r.to.vect, export the vector as a KML (which
          works), bring the simulated flood inundation map KMLs into
          GoogleEarth and create some animations from the simulated
          inundation, including showing rising flood levels inundating
          the city streets in 3D.</div>
        <div><br>
        </div>
        <div>I can basically do all this, except that the r.to.vect
          conversion creates a gazillion boxes that are the size of the
          raster pixels -- I don't want all the tiny boxes. What I want,
          is just a single (albeit, complex) polygon showing the flooded
          areas. v.dissolve will remove the boundaries of adjacent boxes
          if their cat or attributes are the same -- is this the way to
          go, namely, make all the cats or attribute values the same and
          then use v.dissolve?</div>
        <div><br>
        </div>
        <div>Or, is there is there a better way to do what I'm
          attempting to do? That is, is it best to keep the individual
          small vector boxes for reasons I'm not considering?</div>
        <div><br>
        </div>
        <div>Thank you,</div>
        <div>Tom<br clear="all">
          <div><br>
          </div>
          -- <br>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a></pre>
    </blockquote>
    <br>
  </body>
</html>