[GRASS-user] GRASS 7.0.0 Issues with Object Based Image Analysis

Jake Chila jake.chila at gmail.com
Thu May 14 11:00:12 PDT 2015


Hey all,

So I'm back to pick your brains... this time with a few questions.

GRASS 7.0.0 on Windows 7

Basically, I am trying to copy the workflow outlined by Martin here (
http://translate.google.com/translate?sl=cs&tl=en&js=n&prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fgeo.fsv.cvut.cz%2Fgwiki%2F153ZODH_%2F_15._cvi%25C4%258Den%25C3%25AD&act=url)
but I am having a couple problems.

The first issue I ran into was trying to the python code (about halfway
down the page, "for maps in MAPS"). I have changed the parameters so they
suit GRASS 7.0 but I still receive this error:

Traceback (most recent call last):
  File "C:\Users\Jacob\Desktop\Python\SEG_DB_MAN.py", line 111, in <module>
    column_prefix='%s' % bnum)
  File "C:\Program Files (x86)\GRASS GIS
7.0.0\etc\python\grass\script\core.py", line 375, in run_command
    return handle_errors(returncode, returncode, args, kwargs)
  File "C:\Program Files (x86)\GRASS GIS
7.0.0\etc\python\grass\script\core.py", line 310, in handle_errors
    returncode=returncode)
CalledModuleError: Module run None ['v.rast.stats', '-c',
'map=LE7_2001_SEG', 'column_prefix=B1', 'method=median',
'raster=LE7_ATCORR_2001_B1'] ended with error
Process ended with non-zero return code 1. See errors in the (error) output.

However, when I enter the variables in manually using the Command Console
in the GUI (using the exact same inputs), the command runs perfectly. Does
anyone know why this would happen?

This is the command line from the GUI

(Thu May 14 13:12:10 2015)

v.rast.stats -c map=LE7_2001_SEG column_prefix=B1 method=median
raster=LE7_ATCORR_2001_B1
Processing data (4298 categories)...
Updating the database ...
(Thu May 14 13:12:26 2015) Command finished (15 sec)

The second issue is trying to set up the training areas. When I open the
vector file in the map display and change the mode to digitizer it crashes
when I set the vector file I want to edit. Sometimes it doesn't crash (per
se) just goes totally unresponsive. I can move the windows around but
nothing happens when I click any of the buttons up top (specifically
Display attributes), and when I go to click back in the Layer Manager then
GRASS crashes. Does anyone have experience with this?

It should also be noted that I had the digitizer tool working normally for
about ten minutes before it crashed for the first time. I don't see any
error messages either, but maybe I am not looking in the right places?

Any ways, any advice would be welcome!

Thanks,

JDC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150514/9c6022cd/attachment.html>


More information about the grass-user mailing list