Hoppa till huvudinnehållet

Question on comparing FeatureSets

Kommentarer

3 kommentarer

  • Permanently deleted user

    Thoughts anyone?  Sorry, I'm stumped..  If I need to approach this in my algorithm above then how do I get a geometry from a Featureset?  Would I need to loop through the FeatureSet by feature and store the geometry in a collection?

    Any ideas would be greatly appreacited.

    Best regards,

    0
  • Permanently deleted user

    If you wish to create a FeatureSet of all the polygons that are intersected by polylines, the easiest way would be to use a Query Task to query the polygon layer, and give it a polyline Geometry as the input search parameter (you can use either a Where clause _or_ a Geometry as input to a query).

    If you have a FeatureSet containing polylines, and you are wondering how to get the Geometry from this, use a Union Task. This will take an entire FeatureSet as input, and give you a single Geometry to use as input to the Query Task.

    Then you can take the output FeatureSet, and use Select Features (do _not_ provide a collection name) to highlight them on the map. No ForEach loops required.

    0
  • Permanently deleted user

    You are the man Jonathan, that worked.

     

    Thanks.

    0

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