]> granicus.if.org Git - postgis/commitdiff
Fixed a bug in 4d handling
authorSandro Santilli <strk@keybit.net>
Thu, 7 Oct 2004 21:51:05 +0000 (21:51 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 7 Oct 2004 21:51:05 +0000 (21:51 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@957 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp.c

index 381a798cf9c6787beed7a9ce11b17056632feaf9..202ac93f5d1fa2a91bc339de94d42d08737ad5b0 100644 (file)
@@ -736,7 +736,7 @@ create_multiline4D_WKB (byte *wkb)
                x = realloc(x, sizeof(double)*(totpoints+npoints));
                y = realloc(y, sizeof(double)*(totpoints+npoints));
                z = realloc(z, sizeof(double)*(totpoints+npoints));
-               m = realloc(z, sizeof(double)*(totpoints+npoints));
+               m = realloc(m, sizeof(double)*(totpoints+npoints));
 
                /* wkb now points at first point */
                for (pn=0; pn<npoints; pn++)
@@ -1189,7 +1189,7 @@ create_polygon4D_WKB(byte *wkb)
                x = realloc(x, sizeof(double)*(totpoints+npoints));
                y = realloc(y, sizeof(double)*(totpoints+npoints));
                z = realloc(z, sizeof(double)*(totpoints+npoints));
-               m = realloc(z, sizeof(double)*(totpoints+npoints));
+               m = realloc(m, sizeof(double)*(totpoints+npoints));
 
                for (pn=0; pn<npoints; pn++)
                {
@@ -1648,7 +1648,7 @@ create_multipolygon4D_WKB(byte *wkb)
                        x = realloc(x, sizeof(double)*(totpoints+npoints));
                        y = realloc(y, sizeof(double)*(totpoints+npoints));
                        z = realloc(z, sizeof(double)*(totpoints+npoints));
-                       m = realloc(z, sizeof(double)*(totpoints+npoints));
+                       m = realloc(m, sizeof(double)*(totpoints+npoints));
 
                        /* wkb now points at first point */
                        for (pn=0; pn<npoints; pn++)
@@ -2970,6 +2970,9 @@ shapetypename(int num)
 }
 /**********************************************************************
  * $Log$
+ * Revision 1.62  2004/10/07 21:51:05  strk
+ * Fixed a bug in 4d handling
+ *
  * Revision 1.61  2004/10/07 17:15:28  strk
  * Fixed TYPEM handling.
  *