geokml:box( $envelope as element() ) as cts:box
Create a cts:box value from a KML LatLongBox element.
Parameters | |
---|---|
envelope | A KML LatLongBox element. |
xquery version "1.0-ml"; import module namespace geokml = "http://marklogic.com/geospatial/kml" at "/MarkLogic/geospatial/kml.xqy"; declare namespace kml="http://www.opengis.net/kml/2.2"; geokml:box( <kml:LatLongBox> <kml:north>30</kml:north> <kml:south>12.5</kml:south> <kml:east>-122.24</kml:east> <kml:west>-127.24</kml:west> </kml:LatLongBox>)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.