cts.geospatialRegionPathReference( path-expression as String, [options as String[]], [namespaces as Object], [geohash-precision as Number?], [units as String?], [invalid-values as String?] ) as cts.reference
Create a reference to a geospatial region path index, for use as a parameter to cts.geospatialRegionQuery and other query operations on geospatial region indexes. This function throws an exception if the specified region path index does not exist.
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.
cts.geospatialRegionPathReference('//item/region') => A region path index reference of the following form: cts.geospatialRegionPathReference("//item/region",["coordinate-system=wgs84"])
cts.geospatialRegionPathReference( '//item/region', ['coordinate-system=wgs84','precision=double']) => A region path index reference of the following form: cts.geospatialRegionPathReference( "//item/region",["coordinate-system=wgs84/double"])
cts.geospatialRegionPathReference( '//item/region', ['coordinate-system=wgs84','precision=double'], null, 4, 'miles', 'reject') => A region path index reference of the following form: cts.geospatialRegionPathReference( "//item/region",["coordinate-system=wgs84/double"],["geohash-precision=4"],["units=miles"],["invalid-values=0"])
cts.geospatialRegionPathReference( '//kml:LinearRing/kml:coordinates', [], {kml: 'http://www.opengis.net/kml/2.2'}) => A region path index reference of the following form: cts.geospatialRegionPathReference( "//kml:LinearRing/kml:coordinates", ["coordinate-system=wgs84"], {kml:"http://www.opengis.net/kml/2.2"})
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.