]> granicus.if.org Git - postgis/commitdiff
Bug fixed in multipoint4D creation
authorSandro Santilli <strk@keybit.net>
Sun, 17 Oct 2004 12:15:10 +0000 (12:15 +0000)
committerSandro Santilli <strk@keybit.net>
Sun, 17 Oct 2004 12:15:10 +0000 (12:15 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1020 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp.c

index 54dfebf4fe37ae00802d11c02a3aec64906ee9d8..70f55586605b5f45cde9e35ecd2f76dd61dba814 100644 (file)
@@ -1057,6 +1057,8 @@ create_multipoint4D_WKB(byte *wkb)
 
        for (pn=0; pn<npoints; pn++)
        {
+               skipbyte(&wkb); // byteOrder
+               skipint(&wkb);  // wkbType
                x[pn]=popdouble(&wkb);
                y[pn]=popdouble(&wkb);
                z[pn]=popdouble(&wkb);
@@ -1140,6 +1142,7 @@ create_multipoint2D_WKB(byte *wkb)
                skipint(&wkb);  // wkbType
                x[pn]=popdouble(&wkb);
                y[pn]=popdouble(&wkb);
+
        }
 
        obj = SHPCreateSimpleObject(outshptype,npoints,x,y,NULL);
@@ -3083,6 +3086,9 @@ create_usrquerytable()
 
 /**********************************************************************
  * $Log$
+ * Revision 1.66  2004/10/17 12:15:10  strk
+ * Bug fixed in multipoint4D creation
+ *
  * Revision 1.65  2004/10/15 08:26:03  strk
  * Fixed handling of mixed dimensioned geometries in source table.
  *