Hello again,
Another post about ArcGIS Pro v3.6 - this one about the Near tool in Arcpy.
I ran the following code in previous versions before and it managed to give updated field names of "Distance_M" and "Bearing" derived from NEAR_DIST and NEAR_ANGLE properties in the tool.
arcpy.analysis.Near(
in_features="points",
near_features="lines",
search_radius=None,
location="NO_LOCATION",
angle="ANGLE",
method="GEODESIC",
field_names=[["NEAR_FID", "NEAR_FID"], ["NEAR_DIST","Distance_M"], ["NEAR_ANGLE","Bearing"]],
distance_unit="Meters",
match_fields=None
)However, in the latest update, it appears to have kept the field names as NEAR_DIST and NEAR_ANGLE instead (see screenshot below).
From my understanding of the Near tool documentation, the tool calls for a value table for field_names in the form of [property, fieldname]. So I'm not too certain where it went wrong in my code.
I can think of ways to work around this to get to my desired output, but I just want to flag this as a potential bug - that's all. Thank you!
Regards,
Ken