Modify

Opened 8 months ago

Last modified 8 months 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 Changed 8 months ago by jpear1

Description: modified (diff)

comment:2 Changed 8 months ago by skyper

Keywords: match object inside area added; request removed

comment:3 Changed 8 months ago by skyper

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

comment:4 Changed 8 months ago by skyper

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.
to The owner will be changed from Tyndare to the specified user.
The owner will change to jpear1
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from Tyndare to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.