Loading TOC...

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]")
  

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy