[GRASS-dev] Issue with v.external.out and GPKG

Markus Neteler neteler at osgeo.org
Thu Sep 13 07:10:21 PDT 2018


Hi,

I am a bit at a loss with v.external.out and GPKG:

grass76 ~/grassdata/nc_spm_08_grass7/user1/

outdir=/tmp/rast2vect/

mkdir -p $outdir
v.external.out output=$outdir format=GPKG
g.region raster=landclass96 -p
r.to.vect input=landclass96 output=landclass96 type=area column=landuse
Extracting areas...
 100%
Writing areas...
 100%
Registering primitives...
Building areas...
 100%
Attaching islands...
 100%
Attaching centroids...
 100%
Warning 1: The '' extension is not allowed by the GPKG specification,
which may cause compatibility problems
ERROR 1: A file system object called '/home/mneteler/rast2vect/' already exists.
WARNING: Unable to create OGR data source '/home/mneteler/rast2vect/'
WARNING: Unable to create vector map <landclass96>
r.to.vect complete.

v.external.out -p
dsn: /home/mneteler/rast2vect/
format: GPKG

# cease connection
v.external.out -r

This Warning 1 likely comes from GDAL/OGR since no file extension is
provided. But how to use that properly?

r.to.vect input=landclass96 output=landclass96.gpkg type=area column=landuse
WARNING: Illegal vector map name <landclass96.gpkg>. Character '.' not
         allowed.
ERROR: Unable to create vector map: <landclass96.gpkg> is not SQL compliant
WARNING: Invalid vector map name <>

Maybe v.external.out lacks an extension= parameter? Or any other trick?

thanks
Markus


More information about the grass-dev mailing list