Hoppa till huvudinnehållet

Dynamically drawing polygon to select/highlight points and sum up a value against each point

Kommentarer

5 kommentarer

  • Permanently deleted user

    Hi Belinda,

     

    I think this is the way I'd approach doing this:

     

    1. Have a DisplayForm with a geometry picker, an item picker (multi-select), and a text form element
    2. 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.
    3. 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
  • Belinda Kerr
    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
  • Permanently deleted user

    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
  • Permanently deleted user

    @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
  • Permanently deleted user

    Have you tried the Union Geometries tool?

    0

Du måste logga in om du vill lämna en kommentar.