[GRASS-user] qgis and grass prosseses error.

Ken Mankoff mankoff at gmail.com
Fri Sep 13 07:38:54 PDT 2019


Hi Håvard,

The first thing I would do is to try to remove non-ASCII characters and spaces from your path. Paths like this:

r.external input="C:\Gis\øving 8\klippet transformert.tif"

And the å in your name may be causing problems.

  -k.

On 2019-09-13 at 07:33 -07, havard solheim <havard_a at hotmail.com> wrote...
> Hello im student named Håvard taking a gis class in Norway. I keep
> getting the same error when trying to use grass in qgis and my
> teatcher told me to ask here since he had no Clue.
>
> Under is the log from trying to do a V.rast.stats in qgis. The program
> Version are also here im not sure what to post either in this mail
> since i am really New to this.
>
>
>
> QGIS version: 3.8.1-Zanzibar
>
> QGIS code revision: dcd95cc648
>
> Qt version: 5.11.2
>
> GDAL version: 2.4.1
>
> GEOS version: 3.7.2-CAPI-1.11.0 b55d2125
>
> PROJ version: Rel. 5.2.0, September 15th, 2018
>
> Processing algorithm…
>
> Algorithm 'v.rast.stats' starting…
>
> Input parameters:
>
> { 'GRASS_MIN_AREA_PARAMETER' : 0.0001, 'GRASS_OUTPUT_TYPE_PARAMETER' : 0, 'GRASS_REGION_CELLSIZE_PARAMETER' : 0, 'GRASS_REGION_PARAMETER' : None, 'GRASS_SNAP_TOLERANCE_PARAMETER' : -1, 'GRASS_VECTOR_DSCO' : '', 'GRASS_VECTOR_EXPORT_NOCAT' : False, 'GRASS_VECTOR_LCO' : '', 'column_prefix' : 'hogst', 'map' : 'C:/Gis/øving 8/hedmark_kommuner.gpkg|layername=output', 'method' : [0,1,2,3,4,5,6,7,8,9,10,11,12], 'output' : 'TEMPORARY_OUTPUT', 'percentile' : 90, 'raster' : 'C:/Gis/øving 8/klippet transformert.tif' }
>
>
>
> g.proj -c proj4="+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
>
> v.in.ogr min_area=0.0001 snap=-1.0 input="C:\Gis\øving 8\hedmark_kommuner.gpkg" layer="output" output="vector_5d7ba884cdc462" --overwrite -o
>
> r.external input="C:\Gis\øving 8\klippet transformert.tif" band=1 output="rast_5d7ba884cde683" --overwrite -o
>
> g.region n=6957956.983371275 s=6633986.983371275 e=717076.6256832004 w=529936.6256832004 res=30.0
>
> v.rast.stats -c map=vector_5d7ba884cdc462 raster=rast_5d7ba884cde683 column_prefix="hogst" method="number,minimum,maximum,range,average,stddev,variance,coeff_var,sum,first_quartile,median,third_quartile,percentile" percentile=90 --overwrite
>
> v.out.ogr type="auto" input="vector_5d7ba884cdc462" output="C:/Users/Håvard/AppData/Local/Temp/processing_7868b90be3504757845921771ddee21e/aee2bf1504c74baaa7b62cf0308f635e/output.gpkg" format="GPKG" --overwrite
>
> Cleaning up temporary files...
>
> Starting GRASS GIS...
>
> WARNING: Concurrent mapset locking is not supported on Windows
>
> Executing <C:\Users\Håvard\AppData\Local\Temp\processing_7868b90be3504757845921771ddee21e\grassdata\grass_batch_job.cmd> ...
>
> C:\Users\H†vard\Documents>chcp 1252 1>NUL
>
> C:\Users\Håvard\Documents>g.proj -c proj4="+proj=utm +zone=32 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
>
> Default region was updated to the new projection, but if you have multiple mapsets `g.region -d` should be run in each to update the region from the default
>
> Projection information updated
>
> C:\Users\Håvard\Documents>v.in.ogr min_area=0.0001 snap=-1.0 input="C:\Gis\øving 8\hedmark_kommuner.gpkg" layer="output" output="vector_5d7ba884cdc462" --overwrite -o
>
> Over-riding projection check
>
> Check if OGR layer <output> contains polygons...
>
> 0..4..9..13..18..22..27..31..36..40..45..50..54..59..63..68..72..77..81..86..90..95..100
>
> Creating attribute table for layer <output>...
>
> WARNING: Unable to open database <C:\Users\Håvard\AppData\Local\Temp\processing_7868b90be3504757845921771ddee21e\grassdata\temp_location\PERMANENT\sqlite\sqlite.db> by driver <sqlite>
>
> ERROR: Unable to open database <C:\Users\Håvard\AppData\Local\Temp\processing_7868b90be3504757845921771ddee21e\grassdata\temp_location\PERMANENT\sqlite\sqlite.db> by driver <sqlite>
>
> C:\Users\Håvard\Documents>r.external input="C:\Gis\øving 8\klippet transformert.tif" band=1 output="rast_5d7ba884cde683" --overwrite -o
>
> Over-riding projection check
>
> Reading band 1 of 1...
>
> Link to raster map <rast_5d7ba884cde683> created.
>
> C:\Users\Håvard\Documents>g.region n=6957956.983371275 s=6633986.983371275 e=717076.6256832004 w=529936.6256832004 res=30.0
>
> C:\Users\Håvard\Documents>v.rast.stats -c map=vector_5d7ba884cdc462 raster=rast_5d7ba884cde683 column_prefix="hogst" method="number,minimum,maximum,range,average,stddev,variance,coeff_var,sum,first_quartile,median,third_quartile,percentile" percentile=90 --overwrite
>
> WARNING: Coor file of vector map <vector_5d7ba884cdc462 at PERMANENT> is larger than it should be (18 bytes excess)
>
> WARNING: Coor file of vector map <vector_5d7ba884cdc462 at PERMANENT> is larger than it should be (18 bytes excess)
>
> Topology not available for vector map <vector_5d7ba884cdc462 at PERMANENT>. Registering primitives...
>
> WARNING: Unable to open vector map <vector_5d7ba884cdc462 at PERMANENT> on level 2. Try to rebuild vector topology with v.build.
>
> ERROR: Unable to open vector map <vector_5d7ba884cdc462>
>
> ERROR: An error occurred while converting vector to raster
>
> WARNING: No data base element files found
>
> Execution of <C:\Users\Håvard\AppData\Local\Temp\processing_7868b90be3504757845921771ddee21e\grassdata\grass_batch_job.cmd> finished.
>
> Cleaning up temporary files...
>
> Press any key to continue . . .
>
> Cleaning up temporary files...
>
> Starting GRASS GIS...
>
> WARNING: Concurrent mapset locking is not supported on Windows
>
> Executing <C:\Users\Håvard\AppData\Local\Temp\processing_7868b90be3504757845921771ddee21e\grassdata\grass_batch_job.cmd> ...
>
> C:\Users\H†vard\Documents>chcp 1252 1>NUL
>
> C:\Users\Håvard\Documents>v.out.ogr type="auto" input="vector_5d7ba884cdc462" output="C:/Users/HÃ¥vard/AppData/Local/Temp/processing_7868b90be3504757845921771ddee21e/aee2bf1504c74baaa7b62cf0308f635e/output.gpkg" format="GPKG" --overwrite
>
> WARNING: Unable to open vector map <vector_5d7ba884cdc462 at PERMANENT> on level 2. Try to rebuild vector topology with v.build.
>
> ERROR: Unable to open vector map <vector_5d7ba884cdc462>
>
> C:\Users\Håvard\Documents>exit
>
> Execution of <C:\Users\Håvard\AppData\Local\Temp\processing_7868b90be3504757845921771ddee21e\grassdata\grass_batch_job.cmd> finished.
>
> Cleaning up temporary files...
>
> Press any key to continue . . .
>
> Execution completed in 5.68 seconds
>
> Results:
>
> {'output': <QgsProcessingOutputLayerDefinition {'sink':TEMPORARY_OUTPUT, 'createOptions': {'fileEncoding': 'System'}}>}
>
>
>
> Loading resulting layers
> The following layers were not correctly generated.<ul><li>C:/Users/Håvard/AppData/Local/Temp/processing_7868b90be3504757845921771ddee21e/aee2bf1504c74baaa7b62cf0308f635e/output.gpkg</li></ul>You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user



More information about the grass-user mailing list