AnsweredAssumed Answered

Why do I need GeometryService.simplify( New Circle(... ?

Question asked by abjones on Aug 11, 2016
Latest reply on Aug 17, 2016 by rscheitlin

Is it customary to require GeometryService.simplify() when using New Circle ?  Why would geometry of New Circle require "correcting" ?

I have an array of features returned from executeQuery.  In a loop I test an attribute and then either push the original geometry into an array or push a New Circle() into that array.  When done I invoke GeometryService.union(array)

and add that to my graphics layer.  The result looks odd as though some circles are cut out of some original polygons or original polygons are cut out of circles.  With desperation, I tried

geometryArray.push(

     GeometryService.simplify(

          New Circle(features[i].geometry.getExtent().getCenter,{"radius":150,"numberOfPoints":8})

))

and then GeometryService.union returned results I had originally expected.

Outcomes