AnsweredAssumed Answered

geometryEngine.geodesicBuffer for polygon

Question asked by lkoumis on Sep 4, 2018
Latest reply on Sep 4, 2018 by lkoumis

I used the gE to buffer a polygon but it seems that it ovelaps the whole polygon instead of only the buffer area. Measurement of the buffer area verifies that the area of the polygon itself is included in the buffer area calculation. How the buffer graphic can include only the buffer outside the polygon? I also tried the geometryEngine.difference to substract the polygon from the buffer polygon but I get spatialreference errors. Ideas?



 var polySym = new SimpleFillSymbol(SimpleFillSymbol.STYLE_DIAGONAL_CROSS,
                new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT,
                new Color([255,0,0]), 2),new Color([255,255,0,0.25]));

              var buffer = geometryEngine.geodesicBuffer(intersect_geom, thebufferdistance, "miles");
    // added to see if difference could result to the buffer area
     //     var newbuffer = geometryEngine.difference(buffer.geometry,intersect_area)
var buffergraphic = new esri.Graphic(buffer, polySym);

all(bufferfeatures).then(function (results) {