Loading TOC...

geo.complexPolygonIntersects

geo.complexPolygonIntersects(
   $complex-polygon as cts.complexPolygon,
   $region as cts.region[],
   [$options as String[]]
) as Boolean

Summary

Returns true if the complex-polygon intersects with a region.

Parameters
$complex-polygon A geographic complex-polygon.
$region 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.
$options Options for the operation. The default is ().

Options include:

Options include:

"coordinate-system=string"
Use the given coordinate system. Valid values are:
wgs84
The WGS84 coordinate system.
raw
The raw (unmapped) coordinate system.
"units=miles"
Distance (for circles) is measured in miles.
"boundaries-included"
Points on boxes', circles', and complex-polygons' boundaries are counted as matching. This is the default.
"boundaries-excluded"
Points on boxes', circles', and complex-polygons' boundaries are not counted as matching.
"boundaries-latitude-excluded"
Points on boxes' latitude boundaries are not counted as matching.
"boundaries-longitude-excluded"
Points on boxes' longitude boundaries are not counted as matching.
"boundaries-south-excluded"
Points on the boxes' southern boundaries are not counted as matching.
"boundaries-west-excluded"
Points on the boxes' western boundaries are not counted as matching.
"boundaries-north-excluded"
Points on the boxes' northern boundaries are not counted as matching.
"boundaries-east-excluded"
Points on the boxes' eastern boundaries are not counted as matching.
"boundaries-circle-excluded"
Points on circles' boundary are not counted as matching.
"boundaries-endpoints-excluded"
Points on linestrings' boundary (the endpoints) are not counted as matching.

Example

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);

=> false

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy