[postgis-commits] svn - r3242 - branches/1.3/lwgeom
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Tue Nov 4 05:58:55 PST 2008
Author: mcayland
Date: 2008-11-04 05:58:55 -0800 (Tue, 04 Nov 2008)
New Revision: 3242
Modified:
branches/1.3/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 CIRCULARSTR
ING. 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: branches/1.3/lwgeom/lwgeom_gml.c
===================================================================
--- branches/1.3/lwgeom/lwgeom_gml.c 2008-11-04 13:58:34 UTC (rev 3241)
+++ branches/1.3/lwgeom/lwgeom_gml.c 2008-11-04 13:58:55 UTC (rev 3242)
@@ -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