[GRASSLIST:7385] shapefile import problems

s99171059 at tuks.co.za s99171059 at tuks.co.za
Thu Jun 30 06:08:53 EDT 2005


Dear reader

I tried to import a shapefile using v.in.ogr.  Error:

*******************************************************

v.in.ogr 
dsn=/mnt/windows/werk/nuwe_projek/shape_CDs_ens/shape_files/cd3/2622/2622a 
output=GrassVector6 min_area=0.0001 snap=-1 
ERROR 1: Record count in .shp header is -12, which seems
unreasonable.  Assuming header is corrupt.
ERROR 1: Record count in .shp header is -12, which seems
unreasonable.  Assuming header is corrupt.
ERROR 1: Record count in .shp header is -12, which seems
unreasonable.  Assuming header is corrupt.
ERROR 1: Record count in .shp header is -12, which seems
unreasonable.  Assuming header is corrupt.
ERROR 1: Record count in .shp header is -12, which seems
unreasonable.  Assuming header is corrupt.
ERROR 1: Record count in .shp header is -12, which seems
unreasonable.  Assuming header is corrupt.
PROJ_INFO file not found for location Gauteng
PROJ_UNITS file not found for location Gauteng
Projection of input dataset and current location appear to match.
Proceeding with import...
Layer: 2622AB_INLAND_WATER_AREA_ALLFEATTYPES
DBMI-DBF driver error:
Column 'SOURCE_PRO' already exists (duplicate name)
Cannot create table.
Error in db_execute_immediate()


Cannot create table: create table GrassVector6_1 (cat integer, GDO_GID 
integer, TAG varchar ( 50 ), FEAT_TYPE varchar ( 100 ), GEOM_TYPE varchar ( 
10 ), MAPSHEET varchar ( 20 ), ROW_STATUS varchar ( 1 ), LOCK_DATE integer, 
SELECTION_ varchar ( 27 ), VERSION_NU double precision, VERSION_DA integer, 
VERSION_ST varchar ( 1 ), MODIFIED_B varchar ( 15 ), RETIRED_DA integer, 
ORIGINAL_G double precision, CREATE_DAT integer, DATA_SOURC varchar ( 50 ), 
EST_REVISI integer, SOURCE_VER integer, SOURCE_PRO integer, SOURCE_PRO 
integer, SOURCE_CON varchar ( 100 ), CAPTURE_IN integer, DESCRIPTIO varchar ( 
100 ))

Any ideas?

Kobus




More information about the grass-user mailing list