 geo functions (Geospatial Operations)

Use the following geospatial built-in functions to perform operations on geospatial values, such as region containment or intersection, and conversion between MarkLogic geospatial primitive values and standard formats such as WKT.

41 functions
Function name Description
geo:approx-center Return a point approximating the center of the given region.
geo:arc-intersection Returns the point at the intersection of two arcs.
geo:bearing Returns the true bearing in radians of the path from the first point to the second.
geo:bounding-boxes Returns a sequence of boxes that bound the given region.
geo:box-intersects Returns true if the box intersects with a region.
geo:circle-intersects Returns true if the circle intersects with a region.
geo:circle-polygon Construct a polygon approximating a circle.
geo:complex-polygon-contains Returns true if the complex-polygon contains a region.
geo:complex-polygon-intersects Returns true if the complex-polygon intersects with a region.
geo:coordinate-system-canonical Get the canonical name for the coordinate system.
geo:count-distinct-vertices Return a count of the distinct number of vertices in a region, taking tolerance into account.
geo:count-vertices This function returns a count of the number of vertices in a region.
geo:default-coordinate-system Get the canonical name for the coordinate system currently in effect.
geo:destination Returns the point at the given distance (in units) along the given bearing (in radians) from the starting point.
geo:distance Returns the distance (in units) between two points.
geo:distance-convert This function converts a distance from one unit of measure to another.
geo:ellipse-polygon Construct a polygon approximating an ellipse.
geo:geohash-decode Given a geohash string, return the bounding box for that hash.
geo:geohash-decode-point Given a geohash string, return the point for that hash.
geo:geohash-encode Compute a set of covering geohashes for the given region, to the given level of precision.
geo:geohash-neighbors Given a geohash string, return hashes for the neighbors.
geo:geohash-precision-dimensions Given a geohash string, return the height and width for the given precision.
geo:geohash-subhashes Given a geohash string, return the 32 subhashes.
geo:interior-point This function returns a point that is guaranteed to be inside the bounds of the given region.
geo:parse-wkb Returns a sequence of geospatial regions parsed from Well-Known Binary format.
geo:parse-wkt Returns a sequence of geospatial regions parsed from Well-Known Text format.
geo:polygon-contains Returns true if the polygon contains a region.
geo:polygon-intersects Returns true if the polygon intersects with a region.
geo:region-affine-transform Perform an affine transformation on a geospatial region.
geo:region-approximate This function returns a simplified approximation of the region, using the Douglas-Peucker algorithm.
geo:region-clean This function fixes various problems with the region or raises an error if it is not repairable.
geo:region-contains Returns true if one region contains the other region.
geo:region-de9im Calculates the Dimensionally Extended nine-Intersection Matrix (DE-9IM) of two geospatial regions.
geo:region-intersects Returns true if the target region intersects with a region.
geo:region-relate Compares geospatial regions based on a specified relationship.