I have a large point feature class (<2Mill features) and a polygon feature class consisting of multiple polygon features.
The points and polygons overlap.
I'd like to write the polygon field values into their overlapping point features.
Example:
Point feature A lies within polygon feature B -> Write respective value from polygon field "name" into point field "area_name".
What is the fastest way to do this with a python script?
So far i have tried two python scripts:
- Spatial Join (Intersect) -> Join the output with the point feature class -> transfer values using field calculator (from joined field "name" to field "area_name") -> remove join
- Iterate over the polygon (using cursor), in each iteration create a new layer of the current polygon (in memory) -> select overlapping points using location based selection -> write values into selected points
Both methods take too long.
I was thinking about using a Spatially Enabled Dataframe, would this get my task done faster?