1

In my ArcGIS Javascript 3.12 application I am drawing a freehand polygon, clicking a "Save" button and adding the polygon to my feature layer. This works correctly except when the polygon crosses itself (Image 1).

When the polygon crosses itself and save is clicked, the success function runs and everything appears to be working. When I open the attribute table in ArcMap to look at the polygon it has "empty" spatial values (Image 2).

Does anyone have any ideas?

I can provide code samples if needed.

Image 1

Image 1

Image 2

enter image description here

3

up until yesterday you would have had to invoke a web request to a geometry service to validate the topological correctness of your feature before passing the edit, but as of 3.13 you can now use the local geometry engine and call simplify()

  • Thanks John, it will be interesting to explore the new geometry engine in 3.13. – Jeremy Hamm Mar 9 '15 at 15:44
  • I tried using the simplify() method from the geometryEngine and was thrown an error. What are the requirements for the geometry object passed in this method? – Jeremy Hamm Mar 9 '15 at 21:23
  • not sure. i can't reproduce what you're reporting: dl.dropboxusercontent.com/u/59331579/js/simplify.html – John Gravois Mar 11 '15 at 4:31
  • Yeah I think it was another issue on ym end, thanks – Jeremy Hamm Mar 11 '15 at 14:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.