1

I am developing an application that has the feature layer in developers arcgis and I am having confusion how to get the intersection of the two data like my GPS and my polygon layer like I am entering in that current polygon layer like geofencing in android GIS.

enter image description here

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
James Tubiano
  • 231
  • 3
  • 17

1 Answers1

1

For reference this is how i solve the problem in android gis:

  Geometry myGeom = GeometryEngine.buffer(featureLayer.getGeometry(),0);

  Point myLocation = locationDisplay.getMapLocation();

  boolean isIntersects = GeometryEngine.intersects(myGeom,myLocation);

Where myGeom is the geometry 2 parameters of geometry and distance and boolean intersects with parameter of 2 geometry but it also accepts points to check if the polygonLayer is intersecting with my current location.

James Tubiano
  • 231
  • 3
  • 17