find duplicate polyline and find their difference in attributes

632
2
06-02-2011 12:34 AM
PriyankaMehta
New Contributor
Hi all,

   This one is slightly challenging ! .. I have some building polygons. I have converted them to polylines. Wherever the polygons shared a boundary there i have two polylines now with different height attribute. They are actually nothing but adjacent walls of a building which differ in height.

I want to calculate the difference between these two.

So basically, I want to identify all places which have duplicate polylines and then I should be able to find out the difference in their height attribute field.

Any ideas would be much appreciated..

Thanks and Regards,
Priyanka
0 Kudos
2 Replies
SandhyaYamarthi
New Contributor
Hi all,

   This one is slightly challenging ! .. I have some building polygons. I have converted them to polylines. Wherever the polygons shared a boundary there i have two polylines now with different height attribute. They are actually nothing but adjacent walls of a building which differ in height.

I want to calculate the difference between these two.

So basically, I want to identify all places which have duplicate polylines and then I should be able to find out the difference in their height attribute field.

Any ideas would be much appreciated..

Thanks and Regards,
Priyanka


you can look at this old thread at forums:
http://webcache.googleusercontent.com/search?q=cache:w8NeSAjc0W0J:forums.esri.com/Thread.asp%3Fc%3D9...

and also you can look at this ArcScript but try to modify it to just find the duplicates so that it wont delete the duplicate features:
http://arcscripts.esri.com/details.asp?dbid=15138

and when we consider it in topology side and if you have the ArcInfo licence go through this:
http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?id=4842&pid=4834&topicname=Finding_duplicate_geo...

hopefully you will get a solution!!!!
Cheers!!!!
0 Kudos
PriyankaMehta
New Contributor
Thanks a lot Sandhya!

The codes I was trying available from the old forums were running but were too slow.
I found this tool

http://code.google.com/p/typeconvert/

which also has 'remove duplicates' and runs pretty fast and also creates 2 shapefiles :
(1) With no duplicate polylines
(2) the duplicate polylines that were deleted

So now I use (2) to spatially locate and select polylines exactly overlapping (1) .. export these selected polylines . Join fields and do the calculation..

seems to be a bit of round about but is working for me for now..
Any suggestions to make it a simpler process are most welcome

thanks and regards,
Priyanka
0 Kudos