
admin.databaseGeospatialElementIndex( namespace as String?, localname as String, coordinate-system as String, range-value-positions as Boolean, [point-format as String], [invalid-values as String] ) as element(db.geospatialElementIndex)
This function constructs a geospatial element index specification.
  
  const admin = require('/MarkLogic/admin.xqy');
  admin.databaseGeospatialElementIndex(
           "/my/namespace",
           "elementname",
	   "wgs84",
	   fn.false(),
	   "longLatPoint" )
   //returns the geospatial element index specification 
  
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.