Directional Spatial Join with Python - Arcpy

المشرف العام

Administrator
طاقم الإدارة
Using Python, I want to join one point feature (centroid node) to the closest 4 links (polylines), but spreading the search in the 4 directions around my point, so that I have:

  • 1 centroid-link connector North-East,
  • 1 centroid-link connector North-West,
  • 1 centroid-link connector South-West,
  • 1 centroid-link connector South-East.
I am now using the following statement to join the centroid node point with the closest link:

arcpy.MakeFeatureLayer_management(connectors_out, "connector_layer", "[CONNECTOR] = 1")arcpy.SpatialJoin_analysis(centroid_point, "connector_layer", conn_link, "JOIN_ONE_TO_MANY", "KEEP_COMMON", "", "CLOSEST", max_Dist, "DistOut")Any advice in how to achieve the directional join is very much appreciated.



أكثر...
 
أعلى