Modify

Opened 4 years ago

Last modified 4 years ago

#20906 new enhancement

Add matching mode "closed way contains element"

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

Description (last modified by jpear1)

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, maybe it'll be helpful: http://www.alienryderflex.com/polygon/.

Attachments (0)

Change History (4)

comment:1 by jpear1, 4 years ago

Description: modified (diff)

comment:2 by skyper, 4 years ago

Keywords: match object inside area added; request removed

comment:3 by skyper, 4 years ago

Summary: Feature Request: Add matching mode "closed way contains element"Add matching mode "closed way contains element"

comment:4 by skyper, 4 years ago

Note: utilsplugin2 already has code for selecting inside area. Maybe it can be used as the plugin is already required.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Tyndare.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Tyndare to the specified user.
Next status will be 'needinfo'. The owner will be changed from Tyndare to jpear1.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from Tyndare to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.