I'm failing to convert this GML v3.2 XML and I'm not sure why:

<?xml version="1.0" encoding="UTF-8"?>
<gml:MultiGeometry xmlns:gml="http://www.opengis.net/gml" srsName="">
      <gml:Envelope srsDimension="2" srsName="EPSG:4326">
         <gml:lowerCorner>-67.4608695652174 -23.6347826086957</gml:lowerCorner>
         <gml:upperCorner>-32.0869565217391 -1.40869565217392</gml:upperCorner>

How is this supposed to be structured? I assume the envelope cannot be nested under the member tag.

1 Answer 1


When in doubt the best place to look is the GML schema (though I prefer one of the annotated sites).

So gml:geometryMember can contain a gml:AbstractGeometry which can be one of the 29 geometry types (gml:AbstractCurve, gml:AbstractGeometricAggregate, gml:AbstractGeometricPrimitive, gml:AbstractGeometry, gml:AbstractImplicitGeometry, gml:AbstractSolid, gml:AbstractSurface, gml:CompositeCurve, gml:CompositeSolid, gml:CompositeSurface, gml:Curve, gml:GeometricComplex, gml:Grid, gml:LineString, gml:MultiCurve, gml:MultiGeometry, gml:MultiPoint, gml:MultiSolid, gml:MultiSurface, gml:OrientableCurve, gml:OrientableSurface, gml:Point, gml:Polygon, gml:PolyhedralSurface, gml:RectifiedGrid, gml:Solid, gml:Surface, gml:Tin, gml:TriangulatedSurface) but not gml:Envelope.

A gml:Envelope is a gml:EnvelopeType and is not considered a geometry.

So it would appear to be invalid GML.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.