[GRASS-dev] removing small multiple polygons created by r.stream.basin + r.to.vect

Markus Neteler neteler at osgeo.org
Mon Apr 9 09:47:28 EDT 2012

On Mon, Apr 9, 2012 at 3:39 PM, Margherita Di Leo
<dileomargherita at gmail.com> wrote:
> Hi,
> when I delineate a basin using r.stream.basins, and convert the raster map
> of the basin into vector (r.to.vect), I sometimes get multiple polygons:
> i.e. one bigger and a couple of one cell polygons. (you can reproduce the
> behavior in NC sample dataset using easting=643677.87 northing=222800.246).
> Since i need to remove the small polygons in a script, I would like to know
> whether I can use:
>         grass.run_command('v.extract', list = 1,

Wouldn't it be better to remove them with v.clean and rmarea to avoid holes?


More information about the grass-dev mailing list