This content has been marked as final. Show 2 replies
there is a geoprocessing tool for that:
PolygonToLine_management(in_features, out_feature_class, "IDENTIFY_NEIGHBORS ")
It preserves the left and right feature ids, so you will have to do a couple of joins to the original attribute table to transfer other left and right attributes (such as landuse). to wit: join the polygon FID to the LEFT_FID of the lines to transfer the landuse to the left, and then do a joinn to RIGHT_FID for the landuse to the right.
FeatureToLine might seem to do the same thing as PolygonToLine, but only PolygonToLine preserves the left and right side information on shared lines.
Thank you very much! It is very easy and works fine.