GIS 5935 Lab 3
The goal of the accuracy assessment is to provide an easy comparison of the completeness and accuracy of the two different road networks.
Clip - remove data outside of the grids
Calculate Geometry Attribute - length in KM
Summarize within - to calculate the length of the road within each grid square
Join- join two grids created by summarize within to create a comparable datatable & make it possible to do the required calculations
compare_networks(!Grid_Centerlines_Summary.sum_Length_KILOMETERS!, !Grid_TigerSummary.sum_Length_KILOMETERS!)
def compare_networks(x, y): if x > y: return "Centerlines" elif y > x: return "Tiger" else: # This will handle the case where x and y are equal return "Equal"
!Grid_Centerlines_Summary.sum_Length_KILOMETERS! - !Grid_TigerSummary.sum_Length_KILOMETERS!
((!Grid_Centerlines_Summary.sum_KM_Length!-!Grid_TigerSummary.sum_KM_Length! )/ !Grid_Centerlines_Summary.sum_KM_Length!)*100
Comments
Post a Comment