Select to view content in your preferred language

How to determine whether one graphic lies inside another graphic

634
1
08-09-2011 04:17 PM
MuralidharMoka
Emerging Contributor
Hi,

We have a programs which genrates a pivot (Circular field) when I click inside a polygon(not retangular field). The user specifies the center of the pivot by first click and radius by 2nd click.
A buffer is generated.


I should throw a message when pivot covers the whole polygon. Overlap is fine.
If I have both the graphic instances with me. Is there a way to determine if the polygon lies inside the pivot graphic.

can I determine this just with graphics like one graphic intersecting with another, some thing like that.
0 Kudos
1 Reply
TerryGiles
Frequent Contributor
try using a Geometry Service and it's RelationAsync method.  You can pass in the geometries from the polygon and pivot graphics and GeometryRelation  =  esriGeometryRelationIn.

Here's a sample from ESRI using points inside polygons but same logic - http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Relation
0 Kudos