[postgis-commits] svn - r3252 - branches/1.3/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Wed Nov 5 03:03:24 PST 2008
Author: mcayland
Date: 2008-11-05 03:03:23 -0800 (Wed, 05 Nov 2008)
New Revision: 3252
Modified:
branches/1.3/lwgeom/lwgeom.c
Log:
Fix for GBT#68 - ST_Shift_Longitude doesn't work with MULTIPOINT. Looks like this was just a simple mistake in the code. I've also improved the error message to return the proper type name instead of just a number.
Modified: branches/1.3/lwgeom/lwgeom.c
===================================================================
--- branches/1.3/lwgeom/lwgeom.c 2008-11-05 01:56:42 UTC (rev 3251)
+++ branches/1.3/lwgeom/lwgeom.c 2008-11-05 11:03:23 UTC (rev 3252)
@@ -711,6 +711,7 @@
for (i=0; i<poly->nrings; i++)
ptarray_longitude_shift(poly->rings[i]);
return;
+ case MULTIPOINTTYPE:
case MULTILINETYPE:
case MULTIPOLYGONTYPE:
case COLLECTIONTYPE:
@@ -719,8 +720,8 @@
lwgeom_longitude_shift(coll->geoms[i]);
return;
default:
- lwerror("%s:%d: unknown geom type: %d",
+ lwerror("%s:%d: unsupported geom type: %s",
__FILE__, __LINE__,
- TYPE_GETTYPE(lwgeom->type));
+ lwgeom_typename(TYPE_GETTYPE(lwgeom->type)));
}
}
More information about the postgis-commits
mailing list