Loading TOC...

mcgm functions (MCGM)

The MCGM module provides support for geospatial queries using MetaCarta geospatial markup.

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

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

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

5 functions
Function name Description
mcgm:circle Create a cts:circle value from a radius and MCGM Dot element.
mcgm:geospatial-query Returns a cts:query matching points within given regions.
mcgm:geospatial-query-from-elements Returns a cts:query matching points within given regions.
mcgm:point Create a cts:point value from a MCGM Dot element.
mcgm:polygon Construct a cts:polygon value from a sequence of MCGM Dot elements.