Opened 4 years ago

Last modified 4 years ago

#20906 new enhancement

Feature Request: Add matching mode "closed way contains element" — at Initial Version

Reported by: jpear1 Owned by: Tyndare
Priority: normal Milestone:
Component: Plugin conflation Version:
Keywords: match object inside area Cc:

Description

I apologize if this has already been requested elsewhere, but I wasn't able to find any tickets talking about this feature.

It would be very helpful if conflation offered a match mode to match closed ways with an element it contains. My imagined use case is merging buildings and address nodes, but there may be other use cases as well.

This would allow me to avoid a problem I've encountered using conflation where an address for an actual building that hasn't yet been mapped in OSM is matched with a nearby mapped building with no real address (like a shed).

A problem that this match mode would face is multiple equally-weighted matches. There may be cases where this makes sense to resolve randomly, but in the case of address nodes and buildings, it would be very nice to have an option to ignore non-deterministic matches. Sometimes buildings have multiple address nodes in them because they're totally separated rooms, and none of them are more important than the other (town houses for example).

This post gives an algorithm for testing whether a node is contained in a polygon,: http://www.alienryderflex.com/polygon/.

Change History (0)

Note: See TracTickets for help on using tickets.