How to use the Intersect Geometry activity?
After I find the parcel result , if it intersect with another zone polygon layer I will show the ?zone result. I tried to use the Intersect Geometry activity , what I need to input the geometry 1 and geometry 2? could you give me a sample?
Thanks
-
Hello Zhujing,
Take a look at GW5 - Intersect Geometries, which is available at: https://latitudegeo.maps.arcgis.com/home/item.html?id=33ed699adc884f24be0f5c6f4d390a28
You are correct that you can simply use the input geometries from those results, then access the output geometry as =$intersectenginetask1.geometry
Thanks, Stefan
0 -
Hi,
It seems that this activity doesn't work right now. I tried it even in the sandbox and get this error:
"Error running workflow: Object { name: "Error", message: "[WF: expression evaluation error] The given expression could not be evaluated. \"$form1.state.GeometryPicker1.value.geometry[0]\" $form1.state.GeometryPicker1 is undefined", stack: "e@https://apps.geocortex.com/workflow/latest/dist/runtime/bundle.js:1:5936\ni@https://apps.geocortex.com/workflow/latest/dist/runtime/bundle.js:1:6149\ni@https://apps.geocortex.com/workflow/latest/dist/runtime/bundle.js:1:8066\nI</e.prototype.emitExpressionEvaluationError@https://apps.geocortex.com/workflow/latest/dist/runtime/bundle.js:1:279539\nI</e.prototype.resolveInputsInline/s<@https://apps.geocortex.com/workflow/latest/dist/runtime/bundle.js:1:281702\nI</e.prototype.resolveInputsInline@https://apps.geocortex.com/workflow/latest/dist/runtime/bundle.js:1:281773\nI</e.prototype.execute/t<@https://apps.geocortex.com/workflow/latest/dist/runtime/bundle.js:1:285208\ni@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:176239\n[22]</n.exports/o.prototype._settlePromiseFromHandler@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:149741\n[22]</n.exports/o.prototype._settlePromise@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:150541\n[22]</n.exports/o.prototype._settlePromise0@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:151240\n[22]</n.exports/o.prototype._settlePromises@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:152568\n[22]</n.exports/o.prototype._fulfill@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:151610\n[22]</n.exports/o.prototype._resolveCallback@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:148481\n[22]</n.exports/o.prototype._settlePromiseFromHandler@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:149898\n[22]</n.exports/o.prototype._settlePromise@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:150541\n[22]</n.exports/o.prototype._settlePromise0@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:151240\n[22]</n.exports/o.prototype._settlePromises@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:152568\n[22]</n.exports/o.prototype._fulfill@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:151610\n[23]</t.exports/a.prototype._resolve@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:156008\n[23]</t.exports/a.prototype._promiseFulfilled@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:156357\n[22]</n.exports/o.prototype._settlePromise@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:150645\n[22]</n.exports/o.prototype._settlePromise0@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:151240\n[22]</n.exports/o.prototype._settlePromises@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:152568\n[2]</o.prototype._drainQueue@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:106485\n[2]</o.prototype._drainQueues@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:106543\no/this.drainQueues@https://apps.geocortex.com/workflow/latest/dist/runtime/amdpile.js:1:104679\n", activityId: 328, inputName: "geometry1", expression: "$form1.state.GeometryPicker1.value.geometry[0]", error: TypeError, code: "WF: expression evaluation error" } bundle.js:1:19763"
0 -
Hello Mehdi,
The Geometry Picker form element was introduced in the initial release WF5. That error indicates that you have not created a geometry and another activity was attempting to use an undefined value.
Also note that WAB v4.x recently added Geometry method but we do not yet support our Geometry Picker in that version of the Esri API.
Thanks, Stefan
0 -
@Mehdi Khakpour? - Did you find a solution to the error "The given expression could not be evaluated. \"$form1.state.GeometryPicker1.value.geometry[0]\" $form1.state.GeometryPicker1 is undefined""? I'm getting this same error with a geometry picker and can't figure out how to proceed. Thanks.
0 -
Tara Preston, I am getting the same error. Were you able to figure it out? Thanks.
0 -
@Nataliya Lys? I'm afraid I can't remember which workflow I was working on at the time and/or what I did to fix it. If your workflow is public I could look at it and see if it pops out. Keep in mind that I'm still quite the novice with Workflows though.
0 -
@Tara Preston? . Thank you for your response. I am still struggling with my workflow and I am pretty novice with the workflows as well. I did got past the geometry selection part and it seems like my workflow is erroring out on the "Add Feature" step, and I cannot figure out what is wrong with it. Here is a link to my workflow if you have a minute to look at it: https://omaha.maps.arcgis.com/home/item.html?id=62963d8b78294c91930cac75051ef27e
Thank you, I appreciate any help.
Nataliya
0 -
Stefan Schweigert Hi I do not have SaaS only on-premise. May I have the JSON export?
0 -
Hi Sean,
Yes, I'll send it to you.
Thanks, Stefan
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
9 commentaires