操作方法
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
文章 ID: 000015375
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序
You can also download the app to access the chatbot anytime! Download it now.