Loading TOC...


   path-expression as String,
   [options as String[]],
   [map as Object]
) as cts.reference


Creates a reference to a geospatial path range index, for use as a parameter to cts.valueTuples. This function will throw an exception if the specified range index does not exist.

path-expression A path expression.
options Options. The default is ().

Options include:

Use the lexicon with the type specified by type (point or long-lat-point)
Use the given coordinate system. Valid values are:
The WGS84 coordinate system.
The WGS84 coordinate system at double precision.
The ETRS89 coordinate system.
The ETRS89 coordinate system at double precision.
The raw (unmapped) coordinate system.
The raw coordinate system at double precision.
Use the coordinate system at the given precision. Allowed values: float and double.
Allow null values in tuples reported from cts.valueTuples when using this lexicon.
Read the scalar type and coordinate-system info only from the input. Do not check the definition against the context database.
map A map of namespace bindings. The keys should be namespace prefixes and the values should be namespace URIs. These namespace bindings will be added to the in-scope namespace bindings in the interpretation of the path.

Usage Notes

The value of the precision option takes precedence over that implied by the governing coordinate system name, including the value of the coordinate-system option. For example, if the governing coordinate system is "wgs84/double" and the precision option is "float", then the reference uses single precision. An exception is thrown if an index with the specified precision does not exist.

See Also



=> cts.geospatialPathReference("//item/point",

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.