[Gdal-dev] Error code in TIGER 2004 --> ESRI shape file conversion
Frank Warmerdam
fwarmerdam at gmail.com
Tue Feb 8 12:41:25 EST 2005
On Tue, 8 Feb 2005 09:45:49 -0500, Doug_Newcomb at fws.gov
<Doug_Newcomb at fws.gov> wrote:
> Hi Folks,
> Ran
> ogr2ogr -f "ESRI Shapefile" tgr37001rt2b.shp TGR37001.RT2
>
> with FWtools 0.95 on a windows 2000 on a 2004 TIGER file downloaded from
> the Census . Seemed to create the shape file ok, but gave the following
> error message:
>
> ERROR 6: Can't create fields of type IntegerList on shapefile layers.
>
> The same message occurs when running on linux with GDAL 1.2.4 and on
> WindowsXP with data for Georgia.
>
> I thought shape files could only do Integer, Float, or String fields.
> Does the IntegerList need to be converted to a String field for shape file
> conversion? ( If that would be a valid generalization, showing my ignorance
> of the TIGER format). Just wanted to check the list to see if there was
> something blindingly obvious that I was not doing before I entered it on
> Bugzilla.
Doug,
This is not a bug, it is a limitation of shapefile format. The normal
way of dealing with this is to use the -skipfailures option for ogr2ogr.
This will allow ogr2ogr to continue though you will be losing the
integerlist field(s). I don't think they are anything to critical.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list