Loading TOC...

MarkLogic 10 Product Documentation
geogml functions (GML)

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

To use the GML module in your Server-Side JavaScript code, include a require statement similar to following line in your code:

const geogml = require('/MarkLogic/geospatial/gml.xqy');

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

11 functions
Function name Description
geogml.box Create a cts:box value from a GML Envelope element.
geogml.circle Create a cts:circle value from a radius and GML Point element.
geogml.complexPolygon Create a cts:complex-polygon value from a GML Polygon element.
geogml.geospatialQuery Returns a cts:query matching points within given regions.
geogml.geospatialQueryFromElements Returns a cts:query matching points within given regions.
geogml.interiorPolygon Create a sequence of cts:polygon values from a GML Polygon element.
geogml.linestring Create a cts:linestring value from a GML LineString element.
geogml.parseGml Construct regions from GML elements.
geogml.point Create a cts:point value from a GML Point element.
geogml.polygon Create a cts.polygon value from a sequence of GML Point elements or a GML Polygon element.
geogml.toGml Construct GML elements from cts:region values.