geogml.box( box as Node ) as cts.box
Create a cts:box
value from a GML Envelope element.
Parameters | |
---|---|
box | An GML Envelope element. |
const geogml = require("/MarkLogic/geospatial/gml"); geogml.box( 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 );
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.