geogml:parse-gml( $gml as element()* ) as cts:region*
Construct regions from GML elements.
Parameters | |
---|---|
gml | Zero or more XML elements conforming to the GML schema. |
xquery version "1.0-ml"; import module namespace geogml = "http://marklogic.com/geospatial/gml" at "/MarkLogic/geospatial/gml.xqy"; declare namespace gml="http://www.opengis.net/gml/3.2"; geogml:parse-gml( <gml:Envelope> <gml:lowerCorner>12.5 -127.24</gml:lowerCorner> <gml:upperCorner>30 -122.24</gml:upperCorner> </gml:Envelope>) ==> A cts:box corresponding to the input GML.