Skip to main content
2 of 4
added 136 characters in body
Adam Matan
  • 6.9k
  • 7
  • 38
  • 51

Algorithms for matching segments

What are the best algorithms to match segments?

I'm trying to match corresponding segments from two map sources, one less accurate but with segment names, and one more accurate without segment names. I want to semi-automatically apply the segment names to the more accurate map.

The requested algorithm has quite a vague description because a "match" is not well defined, and many factors (orientation, relative length, distance) might have different weight in different scenarios; However, I'm looking for a basic knowledge about the general approaches for handling this problem.

Working implementations for open-source environment (PostGIS, shapely, ...) are warmly welcome.

Sample segments : See description below images.

Adam Matan
  • 6.9k
  • 7
  • 38
  • 51