[postgis-devel] Issue 65 in postgis: ST_AsGML kills the backend when fed a CIRCULAR STRING
Courtin Olivier
olivier.courtin at camptocamp.com
Wed Nov 5 02:38:27 PST 2008
On Nov 4, 2008, at 3:05 PM, codesite-noreply at google.com wrote:
> Issue 65: ST_AsGML kills the backend when fed a CIRCULAR STRING
> http://code.google.com/p/postgis/issues/detail?id=65
>
> Comment #1 by mark.cav... at siriusit.co.uk:
> Okay - I've applied a fix for this to 1.3 SVN and trunk. It looks
> like the ST_AsGML()
> function was trying to inspect geometries by default, rather than
> throwing an error
> on unknown types like the other ST_As*() functions. Since there is
> no support for
> types other than the basic OGC types, I've made ST_AsGML() do the
> same.
Well that fix, remove GeometryCollection support from ST_AsGML:
postgis_reg=# SELECT
ST_AsGML(geometryfromtext('GEOMETRYCOLLECTION(POINT(1 1))'));
ERROR: geometry_to_gml2: 'GeometryCollection' geometry type not
supported
--
Olivier
More information about the postgis-devel
mailing list