Hoppa till huvudinnehållet

Find Points within Polygons

Kommentarer

2 kommentarer

  • Permanently deleted user
    Hi Lisa, 

     

    It looks like right now your workflow:
    1. queries all features in your layer [bufferFeatureLayerURL]
    2. gets the geometry from the first feature that was returned by that query
    3. goes through each feature that was returned in step 1.  For each one, it runs a second query on [buyFeatureLayer], which looks for things that interect the geometry from step 2.  
    4. We show (alert) the count of features found by the query in step 3
    I think what you'll want to do is replace that GetGeometry activity (which only gets the first feature's geometry) with a UnionTask activity (which will combine the geometries from all the features).  Then take your second query out of the ForEach, so that it only runs once.  If your geometries are unioned, only need to run one query on that to find everything in [buyFeatureLayer] that intersects.

     

    Hope that helps! 

     

    -Amanda
    0
  • Permanently deleted user
    Thank you Amanda! That did it!
    0

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