Modify

Opened 22 months ago

Last modified 6 months ago

#18065 new enhancement

Add fix for "Ways with same position" warning in Validator

Reported by: shkvorets@… Owned by: team
Priority: normal Milestone:
Component: Core validator Version:
Keywords: Cc:

Description

As a result of import in Canada there are lots of ways that generate "Ways with same position" warning in JOSM.
Usually these are inner rings of a wood polygon overlapping with identical water/wetland area, or vice-versa. There are probably hundreds of thousands of these in Quebec alone. Here's one example: https://www.openstreetmap.org/way/664902128.

https://i.imgur.com/Zv0M2OE.png

Would be easy to fix such problems by removing duplicated water area and adding water tag to inner ring of the polygon. It would make import and error correction much easier.

Attachments (1)

closed_ways_with_same_position.osm (1.7 KB) - added by zelonewolf@… 6 months ago.
Ways with same position example test case

Download all attachments as: .zip

Change History (5)

Changed 6 months ago by zelonewolf@…

Ways with same position example test case

comment:1 Changed 6 months ago by zelonewolf@…

I've attached a simple test case that demonstrates this issue. An auto-fix should allow merging of the duplicated ways provided that there is no tag collision.

comment:2 Changed 6 months ago by skyper

I fear problems with a autofix outside downloaded area as relations might not be downloaded.

comment:3 Changed 6 months ago by anonymous

Perhaps limit the auto fix to cases where the relation is fully downloaded?

comment:4 Changed 6 months ago by GerdP

I would agree that this could be useful if we were not talking about data from Canvec imports. IMHO it is rather useless to remove the duplicated ways as both are very likely wrong regarding the shape. Whenever I looked at this data I wondered why it was ever imported. Typical examples: way 210659483 or way 210659214.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to shkvorets@gmail.com
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 team to anonymous.

Add Comment


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

 
Note: See TracTickets for help on using tickets.