Loading TOC...

MarkLogic Server 11.0 Product Documentation
geo functions (GEO)

The Geo module provides support for geospatial queries using GML, KML, GeoRSS/Simple, Metacarta or GeoJSON Geospatial markup.

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

import module namespace geo = "http://marklogic.com/geospatial" at "/MarkLogic/geospatial/geospatial.xqy";

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

14 functions
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:circle value from a radius and a node representing a point in one of the supported markup vocabularies, such as KML, GML, or GeoJSON.
geo:complex-polygon Create a cts:complex-polygon value from a node representing a complex polygon in one of the supported markup vocabularies, such as KML, GML, or GeoJSON.
geo:geospatial-query Returns a query matching points within given regions.
geo:geospatial-query-from-elements Returns a query matching points within given regions.
geo:geospatial-query-from-nodes Returns a query matching points within given regions.
geo:interior-polygon 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:linestring-concat Construct a linestring by concatenating the vertices of the input linestrings, in order.
geo:linestring-reverse 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:polygon-to-linestring 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.