<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/geo.complexPolygonIntersects.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>geo.complexPolygonIntersects</api:function-name><api:suggest>geo.complexpolygonintersects</api:suggest><api:suggest>geo</api:suggest><api:suggest>complexpolygonintersects</api:suggest><api:function-link mode="xquery" fullname="geo:complex-polygon-intersects">/apidoc/8.0/geo:complex-polygon-intersects.xml</api:function-link><api:function mode="javascript" name="complexPolygonIntersects" type="builtin" lib="geo" category="SearchBuiltins" subcategory="Geospatial Operations" hidden="false" bucket="MarkLogic Built-In Functions" prefix="geo" namespace="http://marklogic.com/geospatial" fullname="geo.complexPolygonIntersects"><api:summary>
  Returns true if the complex-polygon intersects with a region.
</api:summary><api:params><api:param name="complex-polygon" type="cts:complex-polygon"><api:param-description>
  A geographic complex-polygon.
  </api:param-description><api:param-name>complex-polygon</api:param-name><api:param-type>cts.complexPolygon</api:param-type></api:param><api:param name="region" type="cts:region*"><api:param-description>
    One or more geographic regions (boxes, circles, complex-polygons, or 
    points).
    Where multiple regions are specified, return true if any region intersects
    the target complex-polygon.
  </api:param-description><api:param-name>region</api:param-name><api:param-type>cts.region[]</api:param-type></api:param><api:param name="options" type="xs:string*" optional="true"><api:param-description>
  Options for the operation. The default is ().
  <p xmlns="http://www.w3.org/1999/xhtml">Options include:</p>
    <p xmlns="http://www.w3.org/1999/xhtml">Options include:</p>
      <blockquote xmlns="http://www.w3.org/1999/xhtml">
        <dl>
        <dt>"coordinate-system=wgs84"</dt>
        <dd>Use the WGS84 coordinate system.</dd>
        <dt>"units=miles"</dt>
        <dd>Distance (for circles) is measured in miles.</dd>
        <dt>"boundaries-included"</dt>
        <dd>Points on boxes', circles', and complex-polygons' boundaries are
        counted as matching.  This is the default.</dd>
        <dt>"boundaries-excluded"</dt>
        <dd>Points on boxes', circles', and complex-polygons' boundaries are 
    not counted as matching.</dd>
        <dt>"boundaries-latitude-excluded"</dt>
        <dd>Points on boxes' latitude boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-longitude-excluded"</dt>
        <dd>Points on boxes' longitude boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-south-excluded"</dt>
        <dd>Points on the boxes' southern boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-west-excluded"</dt>
        <dd>Points on the boxes' western boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-north-excluded"</dt>
        <dd>Points on the boxes' northern boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-east-excluded"</dt>
        <dd>Points on the boxes' eastern boundaries are not counted as 
    matching.</dd>
        <dt>"boundaries-circle-excluded"</dt>
        <dd>Points on circles' boundary are not counted as matching.</dd>
        <dt>"boundaries-endpoints-excluded"</dt>
        <dd>Points on linestrings' boundary (the endpoints) are not counted as matching.</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>Boolean</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
var cp = cts.complexPolygon(
  cts.polygon("0,0 10,0 10,10 0,10 0,0"),
  cts.polygon("5,0 7,0 7,5 5,5 5,0"));
var reg = cts.box(51.48, -3.188889, 55.953056, 0.0)
geo.complexPolygonIntersects(cp, reg);
=&gt;
false
</pre></api:example></api:function></api:function-page>