[GRASS-user] i.segment and i.segment.stats errors

Moritz Lennert mlennert at club.worldonline.be
Wed Oct 10 01:45:09 PDT 2018


On 09/10/18 17:19, Jamille Haarloo wrote:
> first lines of test.csv
> 
> cat|area|perimeter|compact_square|compact_circle|fd
> 1|11876.000000|1398.000000|0.311808|3.618821|1.543932
> 2|635805.000000|57572.000000|0.055400|20.367814|1.640512
> 3|25898.000000|3322.000000|0.193773|5.823198|1.595825
> 4|7767.000000|1702.000000|0.207122|5.447885|1.661054
> 5|13605.000000|2200.000000|0.212074|5.320696|1.617158
> 6|442366.000000|44230.000000|0.060150|18.759495|1.645730
> 

So everything looks alright.

However:

On 08/10/18 20:40, Jamille Haarloo wrote:
 > i.segment.stats -n map=SegmW24IDM4DV4 at LUP1
 > rasters=W2 at LUP1,W4 at LUP1,DV2 at LUP1,DV4 at LUP1,IDM2 at LUP1,IDM4 at LUP1
 > 
raster_statistics=mean,stddev,variance,coeff_var,first_quart,median,third_quart,perc_90 

 > area_measures=compact_circle csvfile=X:\Projecten\Land-use Planning
 > Marowijne\GIS en RS\Werkfolder\GRASS &
 > R\grass_cmd_output-i.segment.statsSegmWV24IDM4DV4_5okt2018.txt
 > vectormap=VSegmWV24IDM4DV4 processes=4

I'm not sure how well the script can handle a file path with spaces and 
'&' in it. Maybe this causes some error ?

 > Calculating geometry statistics...
 > Traceback (most recent call last):
 >    File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
 > pts/i.segment.stats.py <http://i.segment.stats.py>", line 370, in 
<module>
 >      main()
 >    File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
 > pts/i.segment.stats.py <http://i.segment.stats.py>", line 219, in main
 >      quiet=True)
 >    File "C:\Program Files\GRASS GIS
 > 7.6.svn\etc\python\grass\script\core.py", line 423, in
 > run_command
 >      return handle_errors(returncode, returncode, args,
 > kwargs)
 >    File "C:\Program Files\GRASS GIS
 > 7.6.svn\etc\python\grass\script\core.py", line 334, in
 > handle_errors
 >      returncode=returncode)
 > grass.exceptions.CalledModuleError: Module run None
 > ['r.object.geometry', '--o', '--q', 'output=Z:\\GRASS_GIS\\C
 > ottica_LUP\\LUP1\\.tmp/unknown\\10956.0',
 > 'input=SegmW24IDM4DV4 at LUP1'] ended with error
 > Process ended with non-zero return code -1073741515. See
 > errors in the (error) output.

The error message does not tell us what went wrong with 
r.object.geometry. Have you tried running i.segment.stats since 
reinstalling r.object.geometry ?

Moritz


More information about the grass-user mailing list