[postgis-commits] svn - r3241 - trunk/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Tue Nov 4 05:58:34 PST 2008
Author: mcayland
Date: 2008-11-04 05:58:34 -0800 (Tue, 04 Nov 2008)
New Revision: 3241
Modified:
trunk/lwgeom/lwgeom_gml.c
Log:
Fix for GBT#65: ST_AsGML kills the backend when fed a CIRCULAR STRING. The default code attempts to inspect any unknown geometry which fails on CIRCULARSTRING. A longer term fix may be to fix CIRCULARSTRING so that it can be inspected, however the fix here is to throw an ERROR for unknown types just as the other As_*() functions do.
Modified: trunk/lwgeom/lwgeom_gml.c
===================================================================
--- trunk/lwgeom/lwgeom_gml.c 2008-11-04 13:43:15 UTC (rev 3240)
+++ trunk/lwgeom/lwgeom_gml.c 2008-11-04 13:58:34 UTC (rev 3241)
@@ -150,9 +150,15 @@
poly = lwpoly_deserialize(geom);
return asgml2_poly(poly, srs);
- default:
+ case MULTIPOINTTYPE:
+ case MULTILINETYPE:
+ case MULTIPOLYGONTYPE:
inspected = lwgeom_inspect(geom);
return asgml2_inspected(inspected, srs);
+
+ default:
+ lwerror("geometry_to_gml2: '%s' geometry type not supported", lwgeom_typename(type));
+ return NULL;
}
}
More information about the postgis-commits
mailing list