Skip to main content

Select features by a point click

Comments

19 comments

  • Permanently deleted user
    Hi Yinghong,

     

    Yes, you can do this, although you need to use a workflow to accomplish it.  Have a look at the Display Capture Geometry activity, and the Multi Point geometry type.  Basically, your users will click to select multiple points, and then double click when finished.

     

    Let me know if this helps!  

     

    Thanks,

     

    Danny
    0
  • Permanently deleted user
    Thanks Daniel.

     

    I created a test workflow and used multi-point as a selection graphic.  I saw the points displayed on the map but no geometry captured message displayed.  After a while and i got "You must input a geometry" message.  Any idea?
    0
  • Permanently deleted user
    Hmm, sorry Yinghong, I don't know what it could be.  You may need to open a support case so we can do some troubleshooting in your environemnt.  

     

    Thanks,

     

    Danny
    0
  • Permanently deleted user
    Yinghong,

     

    From the sounds of it, you may not be double clicking when you are done selecting with multi point geometry as Daniel mentioned.  I'm not sure which version this changed, but I have had several user complaints saying that they can see all the points, but get an error saying that there is no input geometry.
    0
  • Permanently deleted user
    Hi Marshall,

     

    You are right.  I did not do double-click.  Now the error went away.

     

    Thanks

     

     
    0
  • Permanently deleted user
    Hello Marshal,

     

    I just realized that my multi point selection only worked the double click.  I clicked three times.  Two times were on the feature I intend to select.  Then i clicked twice to finish the selection. My selection results only came for the double click point.  

     

    Please help.  Thanks.
    0
  • Permanently deleted user
    Hello, I was wondering if anyone would be able to provide a workflow for this particular scenario? I am still learning to use the workflow tasks and I'm not quite sure how to accomplish this.

     

    Thanks
    0
  • John Nerge
    Here's a sample workflow that uses user geometry to select features:

     

    https://drive.google.com/open?id=0B_hHHiqcTKMfTExSNy03N2JWZjA

     

    I included a couple of path options. The default one uses the Display Capture Geometry activity described in this post.

     

    The other path uses the map status and a Capture Geometry activity. I prefer the second method because it avoids the user having to click a button to continue after drawing the geometry. If you want to use it, just switch the arrow from the start button to point to it.

     

    What you need to set to use the workflow:

     

    1) the map service ID for your layer (mapId)

     

    2) the layer name for your layer (layerName)
    0
  • Permanently deleted user
    Thank you very much for posting this John, I will take a look at it
    0
  • Permanently deleted user
    Hi John,

     

    Thank you for the sample workflow.

     

    is it possible to  let user choose which layer to select from rather than just one certain layer. For example: if I have street and parcel layers showing on my map, can I  let user choose  if he want to select from street or from parcel?

     

    Thank you
    0
  • John Nerge
    Absolutely - here's a good process you could use to do that:

     

    1) Add a display form with the option to choose between layers (radio buttons or a combo box work well for this)

     

    2) Add a flow decision or if statement to determine which option your user chose

     

    3) Use assign statements to assign the values to the map service ID and layer name for the layer the user selected

     

     
    0
  • Permanently deleted user
    Hi John,

     

    I was able to add a display form to let user choose between layers, for example, Parcel's value is 2,  but how do I assign this value to the LayerID?

     

    User-added image
    0
  • John Nerge
    Next you need to choose the map and layer IDs based on what the user selected. Here's an example of doing itwith an If activity. Notice how based on the response I assign different map and layer IDs to be used in the Get Map Service Info activity.

     

    User-added image

     

    Really it would be better to do this in a flowchart and use a Flow Decision, but for the sake of a visual I did it in a sequence.
    0
  • Permanently deleted user
    Thank you John.
    0
  • Permanently deleted user
    Hi John,

     

    On your sample workflow that uses user geometry to select features above, I find it is very hard to capture the line feature such as street line by using a point click or multi-points clicks,  how do you increase the tolerance of the point click?

     

    Thank you.

     

     
    0
  • John Nerge
    Option 1) Use a different geometry type than point, either by selecting a different option in the Display Capture Geometry activity or change the Geometry Type in the Capture Geometry activity.

     

    User-added image

     

    Option 2) If you really want to use a point, then buffer the user's point click using the Buffer Task activity and use the output to select underlying features. Make sure you set Union Results to True and provide a variable for the Unioned Result output argument in the side panel in Workflow Designer.
    0
  • Permanently deleted user
    Thank you John,  I will try Buffer Task activity 
    0
  • Permanently deleted user
    John, once you've got multiple parcels selected, how do you get them to be highlighted and perhaps prompt the user to verify they are the right ones before progressing to the next step?
    0
  • John Nerge
    You have a few options here, too. In all cases, you need either a geometry or feature set to create a markup, graphic, or highlight.

     

    1) You could use a Run External Command activity with the AddMarkupGeometry command. In this case you need a geometry variable, which you can either get from your Buffer Task (Union Results = True and using the Unioned Result out argument) or a feature set of your parcels (using the Union Task activity to get the feature set's geometry). The markup will use your default style settings, but you'll be able to edit it afterward using the drawing tools.

     

    2) You could use an Update Graphics Layer activity to add a graphic. In this case you need a feature set variable, which you can get either directly from your parcel Query Task or using a Buffer Task using the same settings as option 1 and the line New FeatureSet(yourGeometry) as the feature set.  The main advantage here is the ability to create multiple styles of graphics. You have more control about how the graphic looks because it includes a renderer argument, but you'll also have to clear it at the end of your workflow if you want it to go away (can't using drawing tools on it).

     

    3) You could use the Higlight commands to highlight the parcels. I don't use this approach because I think it's clunkier than the other two, but I could certainly be wrong.
    0

Please sign in to leave a comment.