I feel like this has to be on the internet somewhere, but I haven't been able to find it.
I'm attempting to perform a spatial join on a polygon and point layer. My goal is to push the polygon's ID to each point that it contains. In PostGIS, it might look close to this: SELECT a.*, b.* FROM a, b WHERE ST_CONTAINS(a, b)
.
I have:
- A polygon IFeatureClass, from a geodatabase
- A point IFeatureClass, from a geodatabase
- The name of the polygon field
I would like to turn this into a point IFeatureClass with an extra field.
My question: How do I do this? Bonus points for links to relevant documentation.