geo:box( $box as node() ) as cts:box
Create a cts:box value from a node representing a box in one of the supported markup vocabularies, such as KML, GML, or GeoJSON.
Parameters | |
---|---|
box | A node representing a box. |
xquery version "1.0-ml"; import module namespace geo = "http://marklogic.com/geospatial" at "/MarkLogic/geospatial/geospatial.xqy"; declare namespace kml= "http://earth.google.com/kml/2.0"; geo: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.