
MarkLogic 10 Product Documentation
admin:database-geospatial-element-pair-indexadmin:database-geospatial-element-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-pair-index)
Summary
		  This function constructs a geospatial element pair index
		  specification.
	  
	  
	  
	
	  
	    | Parameters | 
	  
	
	  
	    | parent-namespace | 
	    
		    The namespace of the parent element for the attribute.
	     | 
	  
	  
	    | parent-localname | 
	    
		    The local name of the parent element for the attribute.
	     | 
	  
	  
	    | latitude-namespace | 
	    
		    The namespace for the element containing the latitude.
	     | 
	  
	  
	    | latitude-localname | 
	    
		    The local name for the element containing the latitude.
	     | 
	  
	  
	    | longitude-namespace | 
	    
		    The namespace for the element containing the longitude.
	     | 
	  
	  
	    | longitude-localname | 
	    
		    The local name for the element containing the longitude.
	     | 
	  
	  
	    | coordinate-system | 
	    
         The coordinate system.  Must be one of wgs84,
         wgs84/double, etrs89,
         etrs89/double, raw, raw/double.
       | 
	  
	  
	    | range-value-positions | 
	    
	      A boolean specifying whether to maintain value positions
	      in this index (used with co-occurrences).
       | 
	  
	  
	    | invalid-values | 
	    
        An option to handle values that do not meet the range index type.
        Must be one of: reject (default), ignore.
       | 
	  
	
Example
  xquery version "1.0-ml";
  import module namespace admin = "http://marklogic.com/xdmp/admin"
		  at "/MarkLogic/admin.xqy";
  admin:database-geospatial-element-pair-index("/my/namespace",
          "elementname", "/my/namespace", "lat",
          "/my/namespace", "long", "wgs84", fn:false() )
  (: returns the geospatial element pair index specification :)
  
    Copyright © 2025 MarkLogic Corporation. MARKLOGIC is a
    registered trademark of MarkLogic Corporation.