
admin:database-geospatial-element-attribute-pair-index( $parent-namespace as xs:string?, $parent-localname as xs:string, $latitude-namespace as xs:string?, $latitude-localname as xs:string, $longitude-namespace as xs:string?, $longitude-localname as xs:string, $coordinate-system as xs:string, $range-value-positions as xs:boolean, [$invalid-values as xs:string] ) as element(db:geospatial-element-attribute-pair-index)
This function constructs a geospatial element attribute pair index specification.
  xquery version "1.0-ml";
  import module namespace admin = "http://marklogic.com/xdmp/admin"
		  at "/MarkLogic/admin.xqy";
  admin:database-geospatial-element-attribute-pair-index("/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.