[postgis-users] Invalid shapefile

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


I filed a bug on shapelib tracker:
http://bugzilla.maptools.org/show_bug.cgi?id=1434

Frank mentioned shapelib is using a non standard feature
to support wider fields. This means that any application
using shapelib will be able to read the shapefiles created
by the dumper. I'm not sure I want to disable this feature.
What about a command line switch ? To let users decide ?

--strk;

On Tue, Apr 18, 2006 at 03:05:06PM +0200, strk at refractions.net wrote:
> 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 ?
> 
> --strk;



More information about the postgis-users mailing list