[GRASS-dev] GRASS 7: v.in.ogr and v.out.ogr issues to be resolved

Markus Neteler neteler at osgeo.org
Sun May 5 05:36:43 PDT 2013


Hi,

I came across two issues which I thought to bring up here before
modifying code myself:

GRASS 7.0.svn (utm32n):/tmp > v.in.ogr 47_part.shp out=47_part snap=1e-08 --o -o
Over-riding projection check
Counting polygons for 55 features (OGR layer <47_part>)...
 100%
WARNING: Illegal vector map name <47_part>. Must start with a letter.
WARNING: Unable to create vector map <47_part>: name is not SQL compliant

---> since we cannot go on, shouldn't it be a fatal error?

WARNING: Illegal vector map name <47_part_tmp>. Must start with a letter.
WARNING: Unable to create vector map <47_part_tmp>: name is not SQL
         compliant
WARNING: Unable to add attribute link, vector map is not opened in WRITE
         mode
DBMI-SQLite driver error:
Unable to open database: (null)/(null)/(null)/sqlite/sqlite.db
unable to open database file

DBMI-SQLite driver error:
Unable to open database: (null)/(null)/(null)/sqlite/sqlite.db
unable to open database file

WARNING: Unable to open database <(null)/(null)/(null)/sqlite/sqlite.db> by
         driver <sqlite>
ERROR: Unable open database <(null)/(null)/(null)/sqlite/sqlite.db> by
       driver <sqlite>


--> .. and the rest of the cascaded errors looks scary :-)
So I would suggest to bail out in the very beginning. Is there a reason to
not do so?

--------------------

GRASS 7.0.svn (utm32n):/tmp > v.out.ogr a47_part dsn=47_part_cleaned.shp -c
WARNING: The map contains islands. With the -c flag, islands will appear as
         filled areas, not holes in the output map.
Exporting 77 areas (may take some time)...
 100%
v.out.ogr complete. 94 features written to <a47_part> (ESRI_Shapefile).

^^^^^^^^^^^^^^^^^

... advertising the wrong map (should be "47_part_cleaned.shp"). Maybe
related to the DSN complications since it is not the plain output command?

Markus


More information about the grass-dev mailing list