Hoppa till huvudinnehållet

How do I set up the query required to select a feature from an item list and have the Geometry of that feature passed into the workflow?

Kommentarer

3 kommentarer

  • Brian Cunningham

    Hi @Kris Knowles? ,

     

    If I'm understanding your issue properly, it sounds like you need to utilize a Query Layer task to retrieve the feature, rather than a Run SQL Query task. You can either provide a URL to an ArcGIS Server REST endpoint, or you can reference a layer that exists in the map if you want to maintain any formatting to display the features later in the workflow.

     

    If you utilize a Query Layer task, and set the Return Geometry property to True (default is False), and then specify which attributes you want returned in the Output Fields property (use * to retrieve all attributes, or use a comma separated string to specify certain fields), you will then be able to access the geometry and attributes for the feature(s) that match your query parameters from the output of that Query Layer task.

     

    Hope this helps!

    Brian

    0
  • Lisa Pierce
    Thanks Brian – That is very helpful. Much appreciated. Lisa A. Pierce GIS Analyst City of Riverside Innovation and Technology Division 951-826-5159 Office 951-560-0615 Cell lpierce@riversideca.gov
    0
  • Permanently deleted user

    Thank you for your replies. I thought I’d circle back now that I managed to get this working.

    In the end, I used a drop down box, queried the item.current in the drop down box in a sub workflow as a change event to get the index number. I create a value using the selected index number inside that change subworkflow. Using the same sort attribute, I query the feature a second time outside of the form using the index value as the start value on the query and the count set to 1.

     

    This gets me the selected feature that I can then send through all the other “ins and outs” that I mentioned further along in the workflow.

     

    Kris

    0

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