Skip to content

Draws lines between features that have a duplicate field value

Notifications You must be signed in to change notification settings

BriceWolfgang/DupeLines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

DupeLines

This ArcGIS python toolbox will draw lines between any number of features that have a duplicate field value. This works for any field in the feature class.

Requires 10.3, any license, works best with GDBs, does not work with joined data

For example

If you have 4,000 streetlights with 200 non unique asset tags, you could run dupelines and select the asset tag field.

Now you have a feature class of individual lines that go between pairs of streetlights with duplicated asset tags. Which might be helpful when fixing an issue like 200 non unique asset tags.

It's also possible to draw lines between all annotations with the the same font, if you’re into that kind of thing.

Specifics

  • lines will go from the centroid of one feature to the centroid of another.
  • Each line will have the duplicated value as a field, and a count of of which occurrence it represents.
    • For multiple occurrences each pair gets a line.
    • The order of occurrence is random
    • Sorting by location after sorting by the duplicate field would be sweet //ToDo
  • The output will have the same spatial reference as the original feature class

About

Draws lines between features that have a duplicate field value

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages