[postgis-users] bad formed wkt from shp2pgsql

Jose C. Martinez-Llario jomarlla at cgf.upv.es
Mon Sep 27 05:50:26 PDT 2010


  Hi PostGIS users,
When I use the command shp2pgsql with the options -w and -s 23030 (for 
example) then I get a bad formed WKT (the SRID chain is repeated twice)

shp2pgsql -w -s 23030 rios.shp rios
Result:
...
INSERT INTO "rios" ("trio",the_geom) VALUES 
('2',GeomFromText('SRID=23030;MULTILINESTRING(SRID=23030;(4172 4629,4164 
4601,4141 4578))', 23030));
...


Im using:
POSTGIS="1.5.1" GEOS="3.2.0-CAPI-1.6.0" PROJ="Rel. 4.7.1, 23 September 
2009" LIBXML="2.7.7" USE_STATS

In previous versions it didnt happend to me.

dont know..maybe this is already fixed in the 1.5.2 version.
Best,
Jose




More information about the postgis-users mailing list