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)
This function constructs a geospatial element pair index specification.
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: Get the most useful answers to questions from the MarkLogic community, or ask your own question.