I am trying to join a polyline feature class and a polygon feature class. The polylines will always have at least their first point in a polygon, and each polyline consists of exactly three points. There is a chance of the last point of the polyline being in another polygon, but I do not want to join that polygon. There will be multiple polylines from within each polygon and I want to join these.
I was thinking of something like this:
arcpy.SpatialJoin_analysis(lines, polygons, linesAndPolygons, #, #, #, "POLYGON_CONTAINS_FIRST_POINT_OF_POLYLINE")There is of course no explicit match option like above, but that is what I need. Any ideas? I was considering making a new feature class of points from the polylines, joining those to the polygons, and then joining the polylines to the points, but it seems like there should be a simpler way.
أكثر...
I was thinking of something like this:
arcpy.SpatialJoin_analysis(lines, polygons, linesAndPolygons, #, #, #, "POLYGON_CONTAINS_FIRST_POINT_OF_POLYLINE")There is of course no explicit match option like above, but that is what I need. Any ideas? I was considering making a new feature class of points from the polylines, joining those to the polygons, and then joining the polylines to the points, but it seems like there should be a simpler way.
أكثر...