MarkLogic Server 11.0 Product Documentation
geogml.parseGml

geogml.parseGml(
   gml as Node[]
) as Sequence

Summary

Construct regions from GML elements.

Parameters
gml Zero or more XML elements conforming to the GML schema.

Example

const geogml = require("/MarkLogic/geospatial/gml");  

xdmp.describe(fn.head(
  geogml.parseGml(
    fn.head(xdmp.unquote(  
      "<gml:Envelope xmlns:gml='http://www.opengis.net/gml/3.2'>" +  
        "<gml:lowerCorner>12.5 -127.24</gml:lowerCorner>" +  
        "<gml:upperCorner>30 -122.24</gml:upperCorner>" +  
     "</gml:Envelope>"
    )).root
)));

// a box with the given coordinates:
//   cts.box("[12.5, -127.24, 30, -122.24]")
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy