
The Geo module provides support for geospatial queries using GML, KML, GeoRSS/Simple, Metacarta or GeoJSON Geospatial markup.
To use this module in your Server-Side JavaScript code, include a
require statement similar to following line in your code:
var geo = require('/MarkLogic/geospatial/geospatial');
The library namespace prefix geo is not predefined
in the server.
| Function name | Description |
|---|---|
| geo.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. |
| geo.circle | Create a cts.box value from a radius and a node representing a point in one of the supported markup vocabularies, such as KML, GML, or GeoJSON. |
| geo.complexPolygon | Create a cts.complexPolygon value from a node representing a complex polygon in one of the supported markup vocabularies, such as KML, GML, or GeoJSON. |
| geo.geospatialQuery | Returns a query matching points within given regions. |
| geo.geospatialQueryFromElements | Returns a query matching points within given regions. |
| geo.geospatialQueryFromNodes | Returns a query matching points within given regions. |
| geo.interiorPolygon | Create a sequence of cts.polygon values from a polygon node in one of the supported markup vocabularies, such as KML or GML. |
| geo.linestring | Create a cts.linestring value from a node representing a linestring in one of the supported markup vocabularies, such as GML or KML. |
| geo.linestringConcat | Construct a linestring by concatenating the vertices of the input linestrings, in order. |
| geo.linestringReverse | Construct a linestring with the vertices in reverse order. |
| geo.parse | Convert nodes in one or more of the supported geospatial representations into cts.region values. |
| geo.point | Create a cts.point value from a node representing a point in one of the supported markup vocabularies, such as KML or GML. |
| geo.polygon | Create a cts.polygon value from a sequence of point nodes in one of the supported markup vocabularies, such as KML or GML. |
| geo.polygonToLinestring | Construct a linestring from the vertices of a polygon, or construct a sequence of linestrings from the outer and inner polygons of a complex polygon. |