[postgis-users] Invalid shapefile

strk at refractions.net strk at refractions.net
Tue Apr 18 06:05:06 PDT 2006

On Mon, Apr 03, 2006 at 06:18:29PM +0200, Frank Koormann wrote:
> * strk at refractions.net <strk at refractions.net> [060403 17:57]:
> > Could you file a bug report here please ?
> > http://postgis.refractions.net/bugs/
> > 
> So comment: The dbase format specification reserves 1 byte
> for the field width per attribute. That results in 2^8 -1 = 255
> characters at max. So varchar(256) can't work. Maybe data should 
> be cut (and pgsql2shp raises a warning). 

Mmm... I tried varchar(256) and it seems to be working fine.
shp2pgsql is able to extract all information in the shapefile
w/out any truncation. This is because Shapelib allows it.
So, how should we handle this ? Patching Shapelib or Postgis ?


More information about the postgis-users mailing list