Table of Contents

Search

  1. Preface
  2. RulePoint
  3. RulePoint Concepts
  4. Using RulePoint
  5. RulePoint Objects
  6. Working with Topics
  7. Working with Connections
  8. Working with Sources
  9. Working with Responders
  10. Working with Responses
  11. Working with Watchlists
  12. Working with Analytics
  13. DRQL
  14. Working with Rules
  15. Working with Alerts
  16. Setting Access Controls
  17. Troubleshooting RulePoint Issues
  18. Connecting to an Ultra Messaging Application
  19. Creating an Ultra Messaging JMS Source

User Guide

User Guide

geointersect

geointersect

The geointersect analytic validates whether two geo polygons intersect.
The criteria for creating a polygon and its coordinates is the same as for the geoinbound() analytic.

Syntax

geointersect(count of coordinates in 1st polygon,count of coordinates of 2nd polygon,1st polygon coordinates,2nd polygon coordinates)
The following table describes the required and optional arguments:
Argument
Required
Optional
Description
count of coordinates in 1st polygon
Required
The count of all the geo points of the first polygon. If the polygon points are accessed from a watchlist, the value for the count of the coordinates is 0.
count of coordinates in 2nd polygon
Required
The count of all the geo points of the second polygon. If the polygon points are accessed from a watchlist, the value for the count of the coordinates is 0.
1st polygon coordinates
Required
All the geo points of the first polygon.
2nd polygon coordinates
Required
All the geo points of the second polygon.
The following table provides the datatype for the parameters you can pass:
Parameter Input Options
Datatype
Event property
Real number
Watchlist values
Real number
Example
when 1 polygon p1 ,1 polygon p2 with geointersect(p1.count,p2.count,p1.x1,p1.y1,p1.x2,p1.y2,p1.x3,p1.y3, p2.x1,p2.y1,p2.x2,p2.y2,p2.x3,p2.y3) as result then response with body=”${result}”
The following table describes the result for the event property value that you pass:
Event Property Value
Description
Result
p1.count : 6
p2.count: 6
p1.x1=50,p1.y1=50,p1.x2=0,p1.y2=0,p1.x3=100,p1.y3=0
p2.x1=20,p2.y1=20,p2.x2=0,p2.y2=0,p2.x3=50,p2.y3=0
Verifies whether the two polygons are intersecting.
true

0 COMMENTS

We’d like to hear from you!