admin.databaseGeospatialElementAttributePairIndex( 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.geospatialElementAttributePairIndex)
This function constructs a geospatial element attribute pair index specification.
const admin = require('/MarkLogic/admin.xqy'); admin.databaseGeospatialElementAttributePairIndex("/my/namespace", "elementname", "/my/namespace", "lat", "/my/namespace", "long", "wgs84", fn.false() ) //returns the geospatial element attribute pair index specification
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.