简体   繁体   中英

How can I compare two feature classes in arc gis using python

I have two large shapefiles and want to find the differences. the tools within arc wont let me return a shapefile( Feature class). Is here some python code which can help me with this.

just tried feature through arc

arcpy.FeatureCompare_management('Streets_2019', 'Streeets_2014', 'Shape_Length;EXPAND_INC;OBJECTID;LINK_ID;INPROCDATA;BRIDGE;JUNCTIONNM;ADDR_TYPE;URBAN;ENH_GEOM;ROUNDABOUT', 'ALL', 'IGNORE_Z;IGNORE_POINTID', '0.000000008983 Meters', '0.001', '0.001', '#', '#', 'NO_CONTINUE_COMPARE', '#')

I expect a shapefile showing the difference between the two and nothing else

I may be misunderstanding the issue, but one solution is:

Union the 2 shapefiles Select where one of the two FID fields returned equals -1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM