]> granicus.if.org Git - postgis/commitdiff
#2090, gserialized_read_gbox_p sets Z dimension instead of M dimension for two-point...
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 13 Nov 2012 22:48:31 +0000 (22:48 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 13 Nov 2012 22:48:31 +0000 (22:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10667 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/g_serialized.c

index 58224cb689fb36e06c4d88cd22a20ef16fd28e8b..13b6c8c533a32e2121caf6c768b5732bae63bf26 100644 (file)
@@ -230,8 +230,8 @@ int gserialized_read_gbox_p(const GSERIALIZED *g, GBOX *gbox)
                        {
                                /* Advance to M */
                                i++;
-                               gbox->zmin = FP_MIN(dptr[i], dptr[i+ndims]);
-                               gbox->zmax = FP_MAX(dptr[i], dptr[i+ndims]);
+                               gbox->mmin = FP_MIN(dptr[i], dptr[i+ndims]);
+                               gbox->mmax = FP_MAX(dptr[i], dptr[i+ndims]);
                        }
                        gbox_float_round(gbox);
                        return LW_SUCCESS;