[GRASS-dev] [GRASS-SVN] r66774 - grass-addons/grass7/imagery/i.segment.stats
Vaclav Petras
wenzeslaus at gmail.com
Mon Nov 9 06:45:36 PST 2015
On Mon, Nov 9, 2015 at 8:52 AM, <svn_grass at osgeo.org> wrote:
> Author: mlennert
> Date: 2015-11-09 05:52:29 -0800 (Mon, 09 Nov 2015)
> New Revision: 66774
>
> Modified:
> grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
> Log:
> clumped map is a raster, not a vector
>
>
> Modified: grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
> ===================================================================
> --- grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
> 2015-11-09 12:06:44 UTC (rev 66773)
> +++ grass-addons/grass7/imagery/i.segment.stats/i.segment.stats.py
> 2015-11-09 13:52:29 UTC (rev 66774)
> @@ -82,8 +82,8 @@
> if grass.find_file(temporary_vect, element='vector')['name']:
> grass.run_command('g.remove', flags='f', type_='vector',
> name=temporary_vect, quiet=True)
> - if grass.find_file(temporary_clumped_rast, element='vector')['name']:
> - grass.run_command('g.remove', flags='f', type_='vector',
> + if grass.find_file(temporary_clumped_rast, element='raster')['name']:
> + grass.run_command('g.remove', flags='f', type_='raster',
>
I'm pretty sure that find_file wants cell for rasters (regardless of type).
Does this work for you?
https://trac.osgeo.org/grass/changeset/66774
https://grass.osgeo.org/grass71/manuals/libpython/_modules/script/core.html#find_file
> name=temporary_clumped_rast, quiet=True)
> if insert_sql:
> os.remove(insert_sql)
>
> _______________________________________________
> grass-commit mailing list
> grass-commit at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-commit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20151109/09d89d75/attachment.html>
More information about the grass-dev
mailing list