[5.42] Multipoint in Geometry Picker
AbgeschlossenIntroduced in VertiGIS Studio Workflow 5.42
Need to add multipoint as an option in the Geometry picker.
I want to use a geometry picker to get the user to select a number of locations on the map. This might be one or it might be 20+.
At the moment we do this with multipoint in a capture geometry task in essentials workflow/ it's efficient and easy for the user.
The Workflow5 equivalent is so painful. If I have to add 15 points, that's 30 clicks with a big mouse movement to and from the form/map for each one. Rather than just a quick handful of clicks within my map extent.
-
Yes please. This is extremely important for our business. We have 3-4 tools with WF4 that use the multi-point option and will help ease our transition to WF5.
0 -
I see the status for this is Planned as of 10/3/22, hoping to see this implemented soon!
0 -
Likewise - this is key for us. We have a bunch of 'add multi-point' editing options in Essentials 4 workflow.
0 -
Gareth Finney - try this workflow. This is the way, which I learned on the forum somewhere (can't find post now) how to do this.
{"_properties":{"isServerWorkflow":false},"components":[{"id":2,"steps":[{"id":3,"inputs":{},"position":"0,0","purpose":"start","title":"Start","transitions":[{"id":205,"position":"90,60 90,110 140,110 140,130","sourceConnector":"bottom","target":{"id":190},"targetConnector":"top"}]},{"action":"gcx:wf:forms:form:DisplayForm","description":"Define Road Segments to Grab and Timber Sale Treatments to populate picklist below, dynamically","id":190,"inputs":{"form":{"accessors":[],"code":"resources.forms[values.id]","values":{"id":188}}},"name":"createGeometries","position":"20,130","title":"Display Form"}]},{"id":6,"steps":[{"action":"gcx:wf:core::SetProperty","description":"see note below","id":8,"inputs":{"object":{"accessors":["$featureObjIds"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$featureObjIds","source":"$featureObjIds"},"propertyName":"result","propertyValue":{"accessors":[],"annotations":[],"code":"[]","source":"[]"}},"position":"360,760","title":"Set Property","transitions":[{"id":20,"inputs":{},"position":"480,760 480,690 740,690 740,680 760,680","sourceConnector":"top","target":{"id":10},"targetConnector":"left"}]},{"action":"gcx:wf:core:loop:ForEach","id":10,"inputs":{"items":{"accessors":["$createGeometries"],"annotations":[{"count":17,"index":0,"kind":"idref"}],"code":"$createGeometries.state.geometryPicker1.value.geometry","source":"$createGeometries.state.geometryPicker1.value.geometry"}},"name":"forEach2","position":"760,620","title":"For Each"},{"action":"gcx:wf:core::Annotation","description":"Resetting this property is key to getting the right features. Because a user can remove graphics they added with geometry picker, it is impt to make sure you are ONLY getting object ids of correct roads and not ones they decided to remove.","id":12,"inputs":{},"position":"380,850","title":"Notes"},{"id":14,"inputs":{},"position":"230,460","purpose":"start","title":"Event","transitions":[{"id":22,"inputs":{},"position":"320,520 320,570","target":{"id":16}}]},{"action":"gcx:wf:forms::SetFormElementProperty","id":16,"inputs":{"elementName":{"accessors":["$createGeometries"],"annotations":[{"count":17,"index":0,"kind":"idref"}],"code":"$createGeometries.state.geometryPicker1","source":"$createGeometries.state.geometryPicker1"},"form":{"accessors":["$$form"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$$form","source":"$$form"},"propertyName":"autoActivate","propertyValue":true},"position":"200,570","title":"Set Form Element Property","transitions":[{"id":24,"inputs":{},"position":"440,585 500,585 500,655 480,655","sourceConnector":"right","target":{"id":18},"targetConnector":"right"}]},{"action":"gcx:wf:arcgis::ClearGraphicsLayer","id":18,"inputs":{},"position":"240,640","title":"Clear Graphics","transitions":[{"id":26,"inputs":{},"position":"360,670 360,740 340,740 340,795 360,795","sourceConnector":"bottom","target":{"id":8},"targetConnector":"left"}]}],"title":"change-geometryPicker1"},{"id":28,"steps":[{"action":"gcx:wf:arcgis:query:QueryTask","description":"timber","id":30,"inputs":{"geometry":{"accessors":["$buffer4"],"annotations":[{"count":8,"index":0,"kind":"idref"}],"code":"$buffer4.geometry","source":"$buffer4.geometry"},"orderByFields":"TRT_NAME","outFields":"TRT_NAME","returnDistinctValues":true,"returnGeometry":false,"url":{"accessors":["$timberUrl"],"annotations":[{"count":10,"index":0,"kind":"idref"}],"code":"$timberUrl.result","source":"$timberUrl.result"}},"name":"selectedTimberPolys","position":"910,1050","title":"Query Layer","transitions":[{"id":64,"inputs":{},"position":"1030,1150 1030,1200","sourceConnector":"bottom","target":{"id":32},"targetConnector":"top"}]},{"action":"gcx:wf:forms::GetFormElementItemsFromFeatures","description":"Convert the features into form element items to be used in the element.","id":32,"inputs":{"features":{"accessors":["$selectedTimberPolys"],"annotations":[{"count":20,"index":0,"kind":"idref"}],"code":"$selectedTimberPolys.features","source":"$selectedTimberPolys.features"},"labelFieldName":"TRT_NAME","valueFieldName":"TRT_NAME"},"name":"formElementItems1","position":"910,1200","title":"Get Form Element Items From Features","transitions":[{"id":66,"inputs":{},"position":"1030,1330 1030,1390","target":{"id":34}}]},{"action":"gcx:wf:forms::SetFormElementItems","description":"Assign form element items to the element.","id":34,"inputs":{"elementName":{"accessors":["$createGeometries"],"annotations":[{"count":17,"index":0,"kind":"idref"}],"code":"$createGeometries.state.tsNameDD","source":"$createGeometries.state.tsNameDD"},"form":{"accessors":["$$form"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$$form","source":"$$form"},"items":{"accessors":["$formElementItems1"],"annotations":[{"count":18,"index":0,"kind":"idref"}],"code":"$formElementItems1.items","source":"$formElementItems1.items"}},"position":"910,1390","title":"Set Form Element Items"},{"action":"gcx:wf:arcgis::GeometryFromJson","id":36,"inputs":{"json":{"accessors":["$json5"],"annotations":[{"count":6,"index":0,"kind":"idref"}],"code":"$json5.json","source":"$json5.json"}},"name":"geometry3","position":"-30,190","title":"Get Geometry From JSON","transitions":[{"id":68,"inputs":{},"position":"210,225 290,225","sourceConnector":"right","target":{"id":38},"targetConnector":"left"}]},{"action":"gcx:wf:arcgis::BufferEngineTask","id":38,"inputs":{"distance":150,"geometry":{"accessors":["$geometry3"],"annotations":[{"count":10,"index":0,"kind":"idref"}],"code":"$geometry3.geometry","source":"$geometry3.geometry"},"unit":"feet"},"name":"buffer4","position":"290,190","title":"Buffer Geometry","transitions":[{"id":84,"inputs":{},"position":"410,260 410,320","sourceConnector":"bottom","target":{"id":56},"targetConnector":"top"}]},{"action":"gcx:wf:core::ConvertToJson","id":40,"inputs":{"object":{"accessors":["$forEach2"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$forEach2.item","source":"$forEach2.item"}},"name":"json5","position":"-30,70","title":"Convert To JSON","transitions":[{"id":70,"inputs":{},"position":"90,140 90,190","target":{"id":36}}]},{"action":"gcx:wf:arcgis::CreateGraphic","id":42,"inputs":{"geometry":{"accessors":["$getFeatureGeometries4"],"annotations":[{"count":22,"index":0,"kind":"idref"}],"code":"$getFeatureGeometries4.geometry","source":"$getFeatureGeometries4.geometry"},"symbol":{"accessors":["$symbol4"],"annotations":[{"count":8,"index":0,"kind":"idref"}],"code":"$symbol4.symbol","source":"$symbol4.symbol"}},"name":"feature5","position":"600,680","title":"Create Feature","transitions":[{"id":72,"inputs":{},"position":"840,715 900,715","target":{"id":44},"targetConnector":"left"}]},{"action":"gcx:wf:arcgis::AddGraphicsLayerFeatures","id":44,"inputs":{"features":{"accessors":["$feature5"],"annotations":[{"count":9,"index":0,"kind":"idref"}],"code":"$feature5.feature","source":"$feature5.feature"}},"name":"addGraphics4","position":"900,680","title":"Add Graphics","transitions":[{"id":76,"inputs":{},"position":"1020,750 1020,800","target":{"id":50}}]},{"action":"gcx:wf:arcgis::SymbolFromJson","id":46,"inputs":{"json":"{\n \"type\": \"esriSLS\",\n \"color\": [123, 252, 234, 255],\n \"width\": 4.5,\n \"style\": \"esriSLSSolid\"\n}"},"name":"symbol4","position":"290,560","title":"Get Symbol From JSON","transitions":[{"id":74,"inputs":{},"position":"410,630 410,680","target":{"id":48}}]},{"action":"gcx:wf:arcgis::GetFeatureGeometries","id":48,"inputs":{"features":{"accessors":["$selectedRoads"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$selectedRoads.features","source":"$selectedRoads.features"}},"name":"getFeatureGeometries4","position":"290,680","title":"Get Feature Set Geometries","transitions":[{"id":78,"inputs":{},"position":"530,715 600,715","target":{"id":42}}]},{"action":"gcx:wf:arcgis::GetAttributeValue","id":50,"inputs":{"attribute":"OBJECTID","features":{"accessors":["$selectedRoads"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$selectedRoads.features","source":"$selectedRoads.features"}},"name":"attributeValue1","position":"900,800","title":"Get Feature Attribute Value","transitions":[{"id":90,"inputs":{},"position":"1020,870 1020,910 1030,910 1030,930","sourceConnector":"bottom","target":{"id":60},"targetConnector":"top"}]},{"id":52,"inputs":{},"position":"0,-30","purpose":"start","title":"For Each","transitions":[{"id":80,"inputs":{},"position":"90,30 90,70","target":{"id":40}}]},{"action":"gcx:wf:core::ConvertToJson","id":54,"inputs":{"object":{"accessors":["$selectedRoads"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$selectedRoads.features","source":"$selectedRoads.features"}},"name":"json6","position":"290,440","title":"Convert To JSON","transitions":[{"id":82,"inputs":{},"position":"410,510 410,560","target":{"id":46}}]},{"action":"gcx:wf:arcgis:query:QueryTask","description":"gtrn","id":56,"inputs":{"geometry":{"accessors":["$buffer4"],"annotations":[{"count":8,"index":0,"kind":"idref"}],"code":"$buffer4.geometry","source":"$buffer4.geometry"},"outFields":"OBJECTID","returnGeometry":true,"url":{"accessors":["$gtrnUrl"],"annotations":[{"count":8,"index":0,"kind":"idref"}],"code":"$gtrnUrl.result","source":"$gtrnUrl.result"}},"name":"selectedRoads","position":"290,320","title":"Query Layer","transitions":[{"id":86,"inputs":{},"position":"530,370 780,370 780,430","sourceConnector":"right","target":{"id":58},"targetConnector":"top"}]},{"action":"gcx:wf:core::If","id":58,"inputs":{"condition":{"accessors":["$selectedRoads"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$selectedRoads.results.features.length > 0","source":"$selectedRoads.results.features.length > 0"}},"position":"720,430","title":"If","transitions":[{"branch":"true","id":92,"inputs":{},"position":"720,460 550,460 550,475 530,475","sourceConnector":"left","target":{"id":54},"targetConnector":"right"},{"branch":"false","id":94,"inputs":{},"position":"840,460 900,460 900,475 920,475","sourceConnector":"right","target":{"id":62}}]},{"action":"gcx:wf:core::AddItem","description":"get Obj Ids for GTRN","id":60,"inputs":{"collection":{"accessors":["$featureObjIds"],"annotations":[{"count":14,"index":0,"kind":"idref"}],"code":"$featureObjIds.result","source":"$featureObjIds.result"},"item":{"accessors":["$attributeValue1"],"annotations":[{"count":16,"index":0,"kind":"idref"}],"code":"$attributeValue1.value","source":"$attributeValue1.value"}},"position":"910,930","title":"Add Item","transitions":[{"id":88,"inputs":{},"position":"1030,1000 1030,1050","sourceConnector":"bottom","target":{"id":30},"targetConnector":"top"}]},{"action":"gcx:wf:core::Placeholder","id":62,"inputs":{},"position":"920,460","title":"Pass"}]}],"deploymentConfig":{"supportedApps":{"GWV":true}},"designerVersion":"5.33.1+4","forms":[{"defaults":{},"elements":{"footer":{"enabled":true,"items":{"0":{"index":0,"label":{"markdown":"Cancel"},"validates":false,"value":"cancel"},"1":{"default":true,"index":1,"label":{"markdown":"Submit"},"validates":true,"value":"submit"}},"section":"footer","type":"ButtonBar","visible":true},"geometryPicker1":{"autoActivate":true,"description":{"markdown":""},"enabled":true,"format":"point","index":1,"itemLabel":{"markdown":"Location"},"prompt":{"markdown":"Select Road Segments"},"require":true,"rowIndex":0,"rowNumber":1,"section":{"name":"section1"},"size":30,"title":{"markdown":"Define Route"},"type":"GeometryPicker"},"header":{"section":"header","title":{"markdown":"Select Route"},"type":"Header"},"section1":{"description":{"markdown":"**Use this tool to select one or more road segments.**"},"enabled":true,"index":0,"rowIndex":0,"rowNumber":0,"type":"Section"}},"id":188}],"licenseInfo":{"licenseUrl":"https://ntcfsxopsx1756.usda.net/vertigisstudio/workflow/service/auth/license"},"start":{"id":3},"transitions":[{"branch":"changed$geometryPicker1","id":202,"inputs":{},"source":{"id":190},"target":{"id":14}},{"branch":"loop","id":204,"inputs":{},"source":{"id":10},"target":{"id":52}}]}
1 -
thanks Ryan Kelley - much appreciated
0 -
users asking for this.
0 -
Austin Hildreth This has already been done. It was included in Workflow 5.42.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
7 Kommentare