Check if a polygon Graphic contains another Graphic

652
2
Jump to solution
07-05-2021 05:27 AM
FatmaAkdemir
Occasional Contributor II

I have a region item consisting of 4 corners and a polygon constructed by those corners. I want to alert the user when another moving Graphic (simple one with a marker) enters into that polygon. How can I understand that my region contains a specific Graphic?

0 Kudos
1 Solution

Accepted Solutions
FatmaAkdemir
Occasional Contributor II

GeometryEngine::contains(const Esri::ArcGISRuntime::Geometry &geometry1, const Esri::ArcGISRuntime::Geometry &geometry2)  seems to be the solution.

View solution in original post

0 Kudos
2 Replies
FatmaAkdemir
Occasional Contributor II

GeometryEngine::contains(const Esri::ArcGISRuntime::Geometry &geometry1, const Esri::ArcGISRuntime::Geometry &geometry2)  seems to be the solution.

0 Kudos
by Anonymous User
Not applicable

Hi Fatma,

 

Yes, that is the best way for now!

I would just like to say that we are working on a GeoTriggers feature which maps specifically to your use case (notifying when an area of interest is entered/exited). I can not commit to any specific release date, but you should keep an eye out for any announcements that mention GeoTriggers.

0 Kudos