
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. |
const geo = require('/MarkLogic/geospatial/geospatial');
geo.box(
{ type: 'Feature',
bbox: [-180.0, -90.0, 180.0, 90.0],
geometry: {
type: 'Polygon',
coordinates: [[
[-180.0, 10.0], [20.0, 90.0], [180.0, -5.0], [-30.0, -90.0]
]]
}}
)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.