[postgis-devel] GML and boxes

Olivier Courtin olivier.courtin at oslandia.com
Sun Mar 7 13:17:44 PST 2010


On Mar 7, 2010, at 10:01 PM, strk wrote:


>> For GML what do you expect ?
>
> An GML 3 Envelope, like this:
>
> <gml:Envelope srsName="urn:ogc:def:crs:EPSG:3003" srsDimension="2">
> <gml:lowerCorner>1619809.00 4806923.00</gml:lowerCorner>
> <gml:upperCorner>1726740.00 4902589.00</gml:upperCorner>
> </gml:Envelope>

Ok and  in GML 2.1.2 it's Box

> A problem with this is the SRS, which is missing from box types.

ST_SetSRID could be used in userland.
Current GML export function just omit srsName if SRID=-1

> Maybe it could be an ST_asGMLEnvelope() counterpart to the ST_asGML()
> or a new bit on the options bitfield of the existing ST_asGML(),
> say an 'envelopeOnly' flag.

I like a bit more the envelopeOnly flag

You create the related enhance ticket ?

--
Olivier



More information about the postgis-devel mailing list