Re: [postgis-users] shp2pgsql fails on malformed integer attribute

2010-08-14 Thread Aman Verma
Hi, I understand why would you be reluctant to do automatic correction. However, the shapelib library, which shp2pgsql directly uses, does do automatic correction. I agree: any mistake in the dbf should be reported. However, I believe that, at the very least, a switch should be supported that

[postgis-users] shp2pgsql fails on malformed integer attribute

2010-08-14 Thread Andrea Peri
> aman.verma at mcgill.ca wrote.. >If you use shp2pgsql to upload a shapefile with an attribute table that has a malformed integer >(like a letter), shp2pgsql will not correct it, and the upload will fail. >Normally, I would view this as 'expected behaviour' (garbage in, garbage out). However, I