
admin:database-geospatial-path-index( $pathexpr as xs:string, $coordinate-system as xs:string, $range-value-positions as xs:boolean, $point-format as xs:string, $invalid-values as xs:string ) as element(db:geospatial-path-index)
This function constructs a geospatial path index specification. For usage details, see Geospatial Path Point Queries and Indexes in the Search Developer's Guide.
xquery version "1.0-ml";
import module namespace admin = "http://marklogic.com/xdmp/admin"
      at "/MarkLogic/admin.xqy";
admin:database-geospatial-path-index(
  "/aaa:a/aaa:b",
  "wgs84",
  fn:false(),
  "long-lat-point",
  "reject" )
=>
<geospatial-path-index xmlns="http://marklogic.com/xdmp/database">
  <path-expression>/aaa:a/aaa:b</path-expression>
  <coordinate-system>wgs84</coordinate-system>
  <point-format>long-lat-point</point-format>
  <range-value-positions>false</range-value-positions>
  <invalid-values>reject</invalid-values>
</geospatial-path-index>