[OSM-dev] Determining if two linestrings are "similar"

Paweł Paprota ppawel at fastmail.fm
Fri Jan 4 15:35:39 GMT 2013

On 01/04/2013 03:47 PM, David Prime wrote:
> Construct a polygon from the two lines and calculate the area inside?
> Have some magic number denoting an acceptable length/area ratio that
> scales the limit appropriately. There's a few nasty edge cases, though.

Those linestrings can be polygons themselves already - they can be 
closed (buildings), self-intersecting and lots of other cool stuff.


More information about the dev mailing list