2

I have a model that iterates through a folder of field boundaries (polygons) and produces an intersect against a shapefile of points. The output is then a point shapefile for each boundary. Note: There are not points in every field boundary. My goal is to get an output of points ONLY if the points ALSO are in a field boundary. It works, except I get a set of points that have empty values for field boundaries that do not have point in them. How can I eliminate these empty point features? enter image description here enter image description here

enter image description here

  • Can you explain how creating a temporary feature layer from each iterated shapefile prior to the intersect would work? I don't see the logic in this. Also, the spatial join still produced the same result as far as I could tell. – gwydion93 Mar 6 '18 at 20:02
  • There could be something wrong with the geometries. Try repair geometry for each input or convert all shapefiles to features in a file geodatabase. – BERA Mar 7 '18 at 6:10
2

To get an output of points ONLY if the points ALSO are in a field boundary. You can use (Select by location) instead of Intersect tool

Your ModelBuilder will be somethink like this (I change it depends on a sample data)

enter image description here

If Points will be the selected feature, polygons are the input feature (Then use WITHIN)

If Polygons will be the selected feature, points are the input feature (Then use COMPLETELY CONTAIN)

enter image description here

Result: Polygons contain points

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.