[gdal-dev] ogr2ogr truncating data?

Iván Sánchez Ortega ivan at sanchezortega.es
Tue Jul 20 12:13:20 EDT 2010


El día Tuesday 20 July 2010 17:23:26, Kris Arnold dijo:
> I'm trying to use ogr2ogr to convert a KML file to a shapefile.  Mostly
> it works.  But the description data from the kml file is getting
> truncated in the shapefile.  It looks like it is creating the attribute
> as a text field with only 80 characters.  Any way around this?

Be advised, shapefiles by design can hold text fields of only up to 254 bytes. 
Even if you create the shapefile with the desired fields and then 
do "ogr2ogr -append -update", you just can't put more than 254 bytes of text 
in a field of a shapefile.

-- 
Iván Sánchez Ortega <ivan at sanchezortega.es>

Un ordenador no es una televisión ni un microondas: es una herramienta 
compleja.


More information about the gdal-dev mailing list