geogml.parseGml( gml as Node[] ) as Sequence
Construct regions from GML elements.
Parameters | |
---|---|
gml | Zero or more XML elements conforming to the GML schema. |
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]")
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.