Modify

Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#9440 closed enhancement (fixed)

Consistent definition of ways treated as areas

Reported by: Don-vip Owned by: team
Priority: normal Milestone: 13.12
Component: Core validator Version:
Keywords: Cc:

Description (last modified by Don-vip)

To the simple question "does this way concerns an area", it looks like we have 3 different answers:

  1. OverlappingWays:
        private boolean concernsArea(OsmPrimitive p) {
            return p.get("landuse") != null
                    || "riverbank".equals(p.get("waterway"))
                    || p.get("natural") != null
                    || p.get("amenity") != null
                    || p.get("leisure") != null
                    || p.get("building") != null
                    || p.get("building:part") != null;
        }
    
  1. UnconnectedWays:
            public boolean isArea() {
                return w.hasKey("landuse")
                        || w.hasKey("leisure")
                        || w.hasKey("amenity")
                        || w.hasKey("building");
            }
    

3. WayConnectedToArea:

    private boolean isArea(OsmPrimitive p) {
        return (p.hasKey("landuse") || p.hasKey("natural"))
                && ElemStyles.hasAreaElemStyle(p, false);
    }

We should have a single one that matches all the the first two cases.

Attachments (0)

Change History (5)

comment:1 by skyper, 11 years ago

At least the WayConnectedToArea is special as e.g. buildings, parkings and so on are OK.

comment:2 by Don-vip, 11 years ago

Description: modified (diff)

You're right.

comment:3 by Don-vip, 11 years ago

Resolution: fixed
Status: newclosed

In 6491/josm:

fix #9440 - Consistent definition of ways treated as areas

comment:4 by Don-vip, 11 years ago

Milestone: 13.12 (6502)

comment:5 by stoecker, 8 years ago

Milestone: 13.12 (6502)13.12

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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