agroakademija

Clip overlapping polygon area from an underlying polygon

Discussion created by agroakademija on May 27, 2013
Latest reply on May 27, 2013 by vinaybansal
Hello,

I have two polygons which create in code below:

polygon11849185221 = new esri.geometry.Polygon(new esri.SpatialReference({wkid: map.spatialReference})); polygon11849185221 .addRing([[490998.3934, 6118739.2932],[491048.9492, 6118690.8986],[491083.825, 6118656.3184],[491095.9428, 18650.7028]);
var symbol11849185221 = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID,
new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 2),new dojo.Color([255,255,0,0.25]));
polygonGraphic11849185221 = new esri.Graphic(polygon11849185221 , symbol11849185221 , { keeper: true });
var polyLayer11849185221 = new esri.layers.GraphicsLayer({ id: " poly11849185221 " });
map.addLayer(polyLayer11849185221 );
polyLayer11849185221 .add(polygonGraphic11849185221);

Is it posible to get comman coordinates (area coordinates) of two polygons? Thanks for your help :)

Outcomes