CÓMO
The direction of multiple line features can be calculated from their start and end point coordinates by using the Field Calculator.
The instructions provided describe how to calculate the line direction of multiple features using a batch process.
90-math.degrees(math.atan2(( !END_Y! - !START_Y! ),( !END_X! - !START_X! )))
def quadrant(NorthAzimuth): if ((NorthAzimuth>=0) & (NorthAzimuth<90)): quad = "N "+str(NorthAzimuth)+" E" elif ((NorthAzimuth>=90) & (NorthAzimuth<180)): quad = "S "+str(180-NorthAzimuth)+" E" elif ((NorthAzimuth>=180) & (NorthAzimuth<270)): quad = "S "+str(NorthAzimuth-180)+" W" else: quad = "N "+str(360-NorthAzimuth)+" W" return quad
Obtener ayuda de expertos en ArcGIS
Descargar la aplicación de soporte de Esri