Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.databaseGeospatialElementPairIndex

admin.databaseGeospatialElementPairIndex(
   parent-namespace as String?,
   parent-localname as String,
   latitude-namespace as String?,
   latitude-localname as String,
   longitude-namespace as String?,
   longitude-localname as String,
   coordinate-system as String,
   range-value-positions as Boolean,
   [invalid-values as String]
) as element(db.geospatialElementPairIndex)

Summary

This function constructs a geospatial element pair index specification.

Parameters
parent-namespace The namespace of the parent element for the attribute.
parent-localname The local name of the parent element for the attribute.
latitude-namespace The namespace for the element containing the latitude.
latitude-localname The local name for the element containing the latitude.
longitude-namespace The namespace for the element containing the longitude.
longitude-localname The local name for the element containing the longitude.
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).
invalid-values An option to handle values that do not meet the range index type. Must be one of: reject (default), ignore.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  admin.databaseGeospatialElementPairIndex("/my/namespace",
          "elementname", "/my/namespace", "lat",
          "/my/namespace", "long", "wgs84", fn.false() )

   //returns the geospatial element pair index specification 
  

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