[postgis-devel] shp2pgsql generates faulty MultiLinestring wkb
Jonne Savolainen
jonne.savolainen at karttakone.fi
Thu Mar 3 10:25:57 PST 2005
Hi,
shp2pgsql has a small but harmful bug in InsertLinestring:
--- shp2pgsql.c~ 2005-02-01 00:15:22.000000000 +0200
+++ shp2pgsql.c 2005-03-03 19:41:15.000000000 +0200
@@ -841,7 +841,7 @@
else ve = obj->panPartStart[pi+1];
vs = obj->panPartStart[pi];
- print_wkb_int(obj->nVertices);
+ print_wkb_int(ve-vs);
for ( vi=vs; vi<ve; vi++)
{
print_wkb_double(obj->padfX[vi]);
This is in 1.0RC3. I hope the fix gets in time before the release.
Regards,
Jonne
More information about the postgis-devel
mailing list