[postgis-devel] GML and boxes

strk strk at keybit.net
Sun Mar 7 13:01:18 PST 2010


On Sun, Mar 07, 2010 at 09:36:35PM +0100, Olivier Courtin wrote:

> For SVG the box was interestring because it returns SVG extent
> computation.
> 
> 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>

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

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.

--strk;

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list