[postgis-users] psql -d mydb -f file.sql error

strk at refractions.net strk at refractions.net
Thu Dec 16 01:20:16 PST 2004


On Thu, Dec 16, 2004 at 07:40:10AM +0300, Kenny Chamber wrote:
> I tried to dump data into a new table with shp2pgsql function but when i
> try psql -f (the_new_file.sql), it gives this error:
> ERROR:  couldnt parse objects in GEOMETRY
> abort etc, etc,
> Source data is a  shape file from arcview  of Italian faults; there are
> about 1000 segments and shuld be in UTM zone 32
> Previously I've been able to upload postgis.sql and spatial_ref_sys and
> test it creating a  new gtest table as the docs example.
> The shp2pgsql  function returned a file faults.sql that seems ok!

There have been many bug fixed in shp2pgsql.
Try the version included in the 0.9.1 distribution.

--strk;



More information about the postgis-users mailing list