This function constructs a geospatial element index
specification.
Parameters
namespace
The namespace URI.
localname
The local name for the node.
coordinate-system
The coordinate system. Must be one of wgs84,
wgs84/double, etrs89,
etrs89/double, raw, raw/double.
range-value-positions
A boolean specifying whether to maintain value positions
in this index (used with co-occurrences).
point-format
The point format in the data: "point" means latitude precedes longitude (this is the default);
"long-lat-point" means longitude precedes latitude. To use the default value of
"point", simply omit this parameter. Do not specify an empty string.
invalid-values
An option to handle values that do not meet the range index type.
Must be one of: reject (default), ignore.
Example
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
at "/MarkLogic/admin.xqy";
admin:database-geospatial-element-index(
"/my/namespace",
"elementname",
"wgs84",
fn:false(),
"long-lat-point" )
(: returns the geospatial element index specification :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.