<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/cts.geospatialAttributePairReference.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>cts.geospatialAttributePairReference</api:function-name><api:suggest>cts.geospatialattributepairreference</api:suggest><api:suggest>cts</api:suggest><api:suggest>geospatialattributepairreference</api:suggest><api:function-link mode="xquery" fullname="cts:geospatial-attribute-pair-reference">/apidoc/8.0/cts:geospatial-attribute-pair-reference.xml</api:function-link><api:function mode="javascript" name="geospatialAttributePairReference" type="builtin" lib="cts" category="SearchBuiltins" subcategory="Geospatial Lexicon" hidden="false" bucket="MarkLogic Built-In Functions" prefix="cts" namespace="http://marklogic.com/cts" fullname="cts.geospatialAttributePairReference"><api:summary>
  Creates a reference to a geospatial attribute pair range index, for use as a
  parameter to cts:value-tuples. This function will throw an exception if the
  specified range index does not exist.
</api:summary><api:params><api:param name="element" type="xs:QName"><api:param-description>
    An element QName name.</api:param-description><api:param-name>element</api:param-name><api:param-type>xs.QName</api:param-type></api:param><api:param name="lat" type="xs:QName"><api:param-description>
    An attribute QName name.</api:param-description><api:param-name>lat</api:param-name><api:param-type>xs.QName</api:param-type></api:param><api:param name="long" type="xs:QName"><api:param-description>
    An attribute QName name.</api:param-description><api:param-name>long</api:param-name><api:param-type>xs.QName</api:param-type></api:param><api:param name="options" type="xs:string*" optional="true"><api:param-description>
    Options.  The default is ().
    <p xmlns="http://www.w3.org/1999/xhtml">
      Options include:</p>
      <blockquote xmlns="http://www.w3.org/1999/xhtml"><dl>
        <dt>"type=<em>type</em>"</dt>
        <dd>Use the lexicon with the type specified by <em>type</em>
        (point or long-lat-point)</dd>
        <dt>"coordinate-system=<em>coord</em>"</dt>
        <dd>Use the given coordinate system. Possible values
        are "wgs84" and "raw".</dd>
        <dt>"nullable"</dt>
        <dd>Allow null values in tuples reported from cts:value-tuples when
        using this lexicon.</dd>
        <dt>"unchecked"</dt>
        <dd>Read the scalar type and coordinate-system info
        only from the input. Do not check the definition against the
        context database.</dd>
     </dl></blockquote>
  </api:param-description><api:param-name>options</api:param-name><api:param-type>String[]</api:param-type></api:param></api:params><api:return>cts.reference</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
cts.geospatialAttributePairReference(xs.QName("pt"),
  xs.QName("lat"), xs.QName("long"));
=&gt;
cts.geospatialAttributePairReference(fn.QName("","pt"),
  fn.QName("","lat"), fn.QName("","long"),
  ["type=point","coordinate-system=wgs84"])
</pre></api:example></api:function></api:function-page>