Dynamically drawing polygon to select/highlight points and sum up a value against each point
Hi,
I don't really know where to start or if what I'm trying to do is achievable. I'm hoping someone can point me in the right direction. What I have are points with a date and booking count against them. The user will filter the points to a certain date. Once this is done, they need to draw a polygon around some of the points and then get a sum of the booking count against all those points. Based on what that sum is, they may try to add new points or remove points until they get their preferred booking count (load balancing).
Is this possible to get a sum of value dynamically happening based on a user selection/highlight?
Can they on the fly add/remove points from the selection/highlight and get new booking sums with each change?
I don't want to have to step them though a form each time they want to add/remove points and get a new sum. They want to be able to do it interactively on the map directly.
Once they have their desired sum, they will then export the addresses for each point and the count to a report. Not sure how I will do this part but I'm hoping this is where the new GX5 Reporting comes in :)
Any advice, tips etc would be greatly appreciated!
Belinda
-
Hi Belinda,
I think this is the way I'd approach doing this:
- Have a DisplayForm with a geometry picker, an item picker (multi-select), and a text form element
- On the geometry picker change event, use the user geometry and the filter expression together on a Query Layer activity. Get form element items from the resulting features. Use those form element items to update the item picker.
- Put a change event on the Item Picker. In that subworkflow, calculate the sum of the values from the selected items and use that to update the text element in the form
If they want to redo their geometry, they can do that and the item picker list will update. If they want to easily remove 1 or 2 points without having to redo the geometry, they can fine tune that from the item picker. But if they're going to be selecting say 50 features at a time instead of say 10, then the item picker might not be the easiest to work with, and we'd try a different approach.
Each of these subworkflows will be a bit tricky, but I can go into more detail if you figure out where you want to start and get stuck working on them.
0 -
Hi Amanda, The user would more than likely want to add/remove anywhere from 2-30 points at a time depending on the sum given. It sounds like the item picker may not suit. What other approach would you suggest for being able to draw a polygon (or square) around the points they want to add/remove after doing the initial selection? If you have any sample workflows you suggest I look at to get me started that would be great! Any further detail would be appreciated! I have used the geometry picker before so I’m more stuck on the ‘on the fly’ summing and adding/removing points from the selection. Belinda 0 -
Hi Belinda,
It's simpler if you can have them pick items off an item picker (or a listbox), since the form element handles some of the the adding/removing process for us. If we want to add/remove features from a selection using only geometry instead, it's certainly possible, but a bit trickier since we have to manage more aspects of the add/remove process ourselves. I set up an example for one process that looks like it would work:
https://latitudegeo.maps.arcgis.com/home/item.html?id=e0737e6464244a34bc333b53295ce1b9
The bulk of the workflow is in the change events for the first geometry picker and for the first button bar. Right now it's just showing the name attributes of the selected features. But we could definitely get a sum from number attributes values and display that instead
0 -
@Amanda Frech? ?
I have got your Workflow idea working with some slightly different datasets. I am now trying to basically grab the geometry from the features that have their attributes displayed in the results, append that geometry to a completely different layer.
Is there a way to do this where I can essentially dissolve the individual selected geometry into one (just the outline of them. For example, 5 parcel geometries, just keeping the outline of it all).
It is for an Evacuation generating tool I want to create that would take the users drawn geometry, select the parcels within that shape, extract the parcel geometry, dissolve it into a perimeter, append that new perimeter geometry to an Evacuations layer.
0 -
Have you tried the Union Geometries tool?
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare