Loading TOC...

geokml functions (KML)

The KML module provides support for geospatial queries using KML markup.

To use the KML module in your Server-Side JavaScript code, include a require statement similar to the following in your code:

const kml = require('/MarkLogic/geospatial/kml.xqy');

The library namespace prefix kml is not predefined in the server.

11 functions
Function name Description
geokml.box Create a cts:box value from a KML LatLongBox element.
geokml.circle Create a cts:circle value from a radius and KML Point or Location element.
geokml.complexPolygon Create a cts:complex-polygon value from a KML Polygon element.
geokml.geospatialQuery Returns a cts:query matching points within given regions.
geokml.geospatialQueryFromElements Returns a cts:query matching points within given regions.
geokml.interiorPolygon Create a sequence of cts:polygon values from a KML Polygon element.
geokml.linestring Create a cts:linestring value from a KML LineString element.
geokml.parseKml Construct regions from KML elements.
geokml.point Create a cts:point value from a KML Point or Location element.
geokml.polygon Create a cts:polygon value from a KML polygon or a sequence of KML Point or Location elements.
geokml.toKml Construct KML elements from cts:region values.