Are there any more samples out there using the many methods of the geometryEngine (esri/geometry/geometryEngine | API Reference | ArcGIS API for JavaScript 3.19 )? I have seen this blog series; GeometryEngine | ArcGIS Blog and have utilized geometryEngine for a nice select-buffer-select tool, but was wondering what else was out there anybody may have? There is a lot of methods here that look to do many handy client side analysis.
Thanks for any samples provided.
David
This blog itself covers lot of methods, like within, union, overlaps, intersect etc.
GeometryEngine part 3: Overlay analysis | ArcGIS Blog
It would be useful to understand what exactly you are looking for.
Yes, that's a good one. I was just wondering if there were more use case examples besides overlay analysis.
I am not sure if there are any examples. They are just methods and they have been documented very well.
But, If we are asking what kind of use-cases they can be used? Then, GeometryEngine can be used in lot of other cases where you want to find the relation between 2 geometries, or with the densify to increase the vertex on a geometry or clip, cut, difference and rotate methods you could modify a geometry.
I presented on this topic at Dev Summit last year (and will again this year). Here's a recording of that presentation in which Dave Bayer and I show a lot of different samples demonstrating ways you can use GeometryEngine: Home | Esri Video
Just a little background...GeometryEngine was originally designed for editing apps that required immediate feedback to the user, such as performing measurements, topology validation, etc. While many of the methods cater more to editing apps, there are probably other creative scenarios where you may find it useful. I'm always interested in seeing how others are using it in their own apps.
I made this a while ago: GitHub - WSDOT-GIS/arcgis-js-buffer: Buffer UI for ArcGIS API for JavaScript
Thanks so much! I will definitely check out the video!
Thanks! I checked out the demo, looks great. Just one question, when I select the union results option and create multiple buffers, I does not look like they are getting unioned? Just checking to make sure I'm not missing something obvious because that is a really cool feature!
It's not the most intuitive interface, but I couldn't think of anything better. You need to add more than one geometry to the "geometries" box and check the "union results" checkbox before clicking the "Buffer" button.
Ah yes, I see now. That is very cool! A great example of union functionality.
I downloaded your code from but I'm having trouble understanding how to set it up so the web site works from my end. Exactly what files would I need and what is the folder structure?
You shouldn't have to rearrange any files. The folder structure should work as-is.
If you can't get the code from the main branch working, try downloading from the gh-pages branch. That is literally where the demo is running from.
OK downloaded the ZIP from that site and have all contents in a folder:
I try to open index.html and just get a blank white page with only the "Source on GitHub" banner in the lower-left corner and
these errors in the Console.
If you’re not already, you’ll need to run a web server (e.g., IIS Express). You can’t run JavaScript files from other servers if your URL starts with file://.
Yes, I've tried that and I get an error message too. I have many web apps on two different servers. But when I try to access yours, the web page is now blank with a line stating, "The page cannot be displayed because an internal server error has occurred." I the console I get "Failed to load resource: the server responded with a status of 500 (Internal Server Error)." The resource is the server (abc.def.org). So there is definitely something up here because I have never seen this before. I have all kinds of web sites with an index.html and code in css, javascript, etc. folders and all works well. You have some other files such as .config and .sln files I am not familiar with. Could these be doing it?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.