[GRASS-user] i.segment and i.segment.stats errors
Jamille Haarloo
j.r.haarloo at gmail.com
Thu Oct 11 10:42:11 PDT 2018
Markus, that's great! I will install the latest version and retry. I will
report next Monday.
Thanks Moritz. The spaces and '&' in paths of output files did not give
problems before, but I retried without the spaces and '&' just in case.
i.segment.stats -n --overwrite 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=Z:\grass_cmd_output-i.segment.statsSegmWV24IDM4DV4_11okt2018.txt
vectormap=VSegmWV24IDM4DV4 processes=4
Calculating geometry statistics...
Calculating statistics for raster maps...
Calculating neighborhood statistics...
Traceback (most recent call last):
File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
pts/i.segment.stats.py", line 370, in <module>
main()
File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
pts/i.segment.stats.py", line 282, in main
quiet=True).splitlines()])
File "C:\Program Files\GRASS GIS
7.6.svn\etc\python\grass\script\core.py", line 478, in
read_command
return handle_errors(returncode, stdout, 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.neighborhoodmatrix', '--q', '-d',
'input=SegmW24IDM4DV4 at LUP1'] ended with error
Process ended with non-zero return code -1073741515. See
errors in the (error) output.
(Thu Oct 11 13:30:10 2018) Command finished (15 min 56 sec)
Hopefully it works on Monday!
On Wed, Oct 10, 2018 at 5:46 AM Moritz Lennert <mlennert at club.worldonline.be>
wrote:
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20181011/9af9ea92/attachment.html>
More information about the grass-user
mailing list