Multipoint buffer how to?
Hello there,
im looking for a way to buffer multipoints. Tried serveral things to get this working but still no success. The only luck so far is to use mappoint. But then the user needs another interaction to loop.
The goal is to click points near lines with the multipoint select function, then buffer the different multipoints and use the buffer geometrie to select the lines in a querytask.
Thanks for any advice.
0
-
Hi Sjors,
Would it not be easier to just use the "Display Capture Geometry" to allow the user to use any geometry to select the lines, and then use the output geometry from that activity in the "Geometry" parameter of the "Query Task"? That way you do not need to use a buffer at all.
If you want to create buffers around the multi-point geometry, then it is possible. All you need to do is:
1. Take the geometry returned from the "Display Capture Geometry" and enter it into the "Geometry" parameter of the "Buffer Task"
2. Set the distance and unit in the "Buffer Task" activity
3. The "buffer task" returns a list of graphics. If you want to add the buffered area to the map and you only have one graphic returned, then you can use the "Run External Command". For the "Command Name" use "AddTemporaryMarkupGeometry" and the "Command Parameter" would be "iEnumerable1.first().geometry".
If you just want to use the geometry returned from the "Buffer Task" in the "Query Task" activity, then in the "Geometry" parameter, you can use the same notation: "iEnumerable1.first().geometry"
I hope this helps.
Carmen0 -
Thanks im gonna try your suggestion. 0 -
Carmen - I would also like to buffer multipoint - in my case, a user creates a point and needs to know where the next point is in within a 500m radius.
I cannot use runexternal command "AddTemporaryMarkupGeometry" has an error that its not declared and iEnumerable1.first().geometry "iEnumerable1" is not declared0 -
Hi Sylvia,
iEnumerable1 is an autogenerated variable name - we would have got that when typing F3 with the cursor in the Results box for the Buffer Task activity.
In your workflow, you should replace iEnumerable1 with whatever variable name you are using for the results of the buffer task.
Regards,
-Malcolm0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare