Skip to content

1000s of gardens in Edinburgh zoom 12 tile #1185

Closed
@nvkelso

Description

@nvkelso

While investigating mapsforge/vtm#341 it looks 1000s of features in the pois layer of kind:garden that don't have names, creating 18,000+ features in some tiles like:

Browsing around OpenStreetMap data here most backyards have been tagged as unnamed, private gardens, example:

There appears to be an error in the vector tile filter code where gardens are all getting min_zoom 12 instead of throttling that by area (and really we should require some value of name – should we in general no, but for what kinds of features, feels like separate issue):

Specifically:

 min_zoom: { min: [ 12, { max: [ { lit: zoom }, { lit: *tier6_min_zoom } ] }, 16 ] }

Should probably drop the 12, for:

 min_zoom: { min: [ { max: [ { lit: zoom }, { lit: *tier6_min_zoom } ] }, 16 ] }

Where tier6_min_zoom already is:

  - &tier6_min_zoom |
      CASE WHEN way_area >= 500000 THEN 12
           WHEN way_area >= 100000 THEN 13
           WHEN way_area >=  50000 THEN 14
           WHEN way_area >=   5000 THEN 15
           ELSE                         16
      END

I don't see any other filters at first glance that have this error, but let's take another pass thru as part of this issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions