kml functions

The table below lists all the "kml" XQuery library functions (in this namespace: http://earth.google.com/kml/2.0).

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

To use the KML module as part of your own XQuery module, include the following line in your XQuery prolog:

import module namespace kml = "http://earth.google.com/kml/2.0" at "/MarkLogic/geospatial/kml.xqy";

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

7 functions
Function nameDescription
kml:box Create a cts:point value from a KML LatLongBox element.
kml:circle Create a cts:circle value from a radius and KML Point or Location element.
kml:geospatial-query Returns a cts:query matching points within given regions.
kml:geospatial-query-from-elements Returns a cts:query matching points within given regions.
kml:interior-polygon Create a sequence of cts:polygon values from a KML Polygon element.
kml:point Create a cts:point value from a KML Point or Location element.
kml:polygon Create a cts:polygon value from a KML polygon or a sequence of KML Point or Location elements.