Buffer Feature Sets / Multiple Geometries
TerminéeCurrently, from what I can tell, you aren't able to buffer a featureSet from a query result.
I also don't think you are able to pass in multiple geometries, which makes the option to "Union" the results a bit misleading.
Instead, you have to run the featureSet through a "For Each" activity to do your buffering. And if you want to have a union-ed geometry, you have to keep unioning your results with the previous results and then you finally get your feature (which is necessary if you want to use those multiple buffers in a new query unless you know you're only going to have one feature being buffered).
Anyways, I feel like this functionality should just be built in for a lot of functions that require a geometry.
-
Both the Buffer Geometry and Buffer Geometry (server) activities can accept an array of esri.Geometry objects in the "Geometry" input, so you should be able to do what you want there.
0 -
But to get the "array of esri.Geometry objects" from the FeatureSet, you still have to do a ForEach loop through all of the features, since the FeatureSet.Features does not have a geometry to grab. You can only get FeatureSet.Features[N].geometry - that is, one feature at a time.
Unless I'm missing something. I'd be happy to be wrong!
0 -
Hello, I'm dealing with the same problem. That is that even if I pick multiple features to buffer only a single buffer gets rendered. I tried to to do some “For Each” tricks there but couldnt figure out how to set it up, do you guys have any examples on how to accomplish this (that is how the For each should be set up)?
0
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires