Skip to content

Remove early ferry and aeroway properties #2017

Closed
@nvkelso

Description

@nvkelso

At zoom 10 even after #2008 I still see a lot of individual ferry lines because we're not dropping shield_text and shield_text_length, and network.

This new logic needs to add a (kind == 'ferry' and zoom < 14) or clause, like:

  - fn: vectordatasource.transform.drop_properties
    params:
      source_layer: roads
      start_zoom: 0
      end_zoom: 15
      properties:
        - network
        - shield_text
        - shield_text_length
      where: >-
        (kind_detail == 'motorway' and zoom <  7) or
        (kind_detail == 'trunk' and zoom <  9) or
        (kind_detail == 'primary' and zoom <  11) or
        (kind_detail == 'secondary' and zoom <  12) or
        (kind_detail == 'tertiary' and zoom <  13) or
        (kind_detail == 'motorway_link' and zoom <  13) or
        (kind_detail == 'trunk_link' and zoom <  13) or
        (kind_detail == 'primary_link' and zoom <  14) or
        (kind_detail == 'secondary_link' and zoom <  14) or
        (kind_detail == 'tertiary_link' and zoom <  14) or
        (kind == 'minor_road' and zoom < 15) or
        (kind == 'path' and zoom < 14) or
        (kind == 'ferry' and zoom < 14) or
        (kind == 'rail' and zoom < 15)

For aeroway I see too many individual ways at zooms 8-13.

It's a few places like:

  - fn: vectordatasource.transform.drop_properties
    params:
      source_layer: roads
      start_zoom: 0
      end_zoom: 15
      # short-hand for "name" property in the list below means all name-like
      # properties.
      all_name_variants: true
      properties:
        - name
        - ref
        - all_networks
        - all_shield_texts
        - service
        - access
        - osm_relation
      where: >-
        (kind == 'highway' and zoom <  11) or    
        (kind_detail == 'trunk' and zoom <  12) or
        (kind_detail == 'primary' and zoom <  13) or
        (kind_detail == 'secondary' and zoom <  14) or
        (kind_detail == 'tertiary' and zoom <  14) or
        (kind_detail == 'motorway_link' and zoom <  14) or
        (kind_detail == 'trunk_link' and zoom <  14) or
        (kind_detail == 'primary_link' and zoom <  15) or
        (kind_detail == 'secondary_link' and zoom <  15) or
        (kind_detail == 'tertiary_link' and zoom <  15) or
        (kind == 'minor_road' and zoom < 15) or
        (kind == 'aeroway' and zoom < 14) or
        (kind == 'path' and zoom < 14) or
        (kind == 'rail' and zoom < 15) or
        (kind == 'ferry' and zoom < 15)
# drop these "detail" tags to get better merging at zoom < 14
  - fn: vectordatasource.transform.drop_properties
    params:
      source_layer: roads
      start_zoom: 0
      end_zoom: 14
      properties:
        - surface
      where: >-
        kind == 'minor_road' or 
        (kind == 'aeroway' and zoom < 12) or
        (kind == 'path' and zoom < 13)
- fn: vectordatasource.transform.drop_properties
    params:
      source_layer: roads
      start_zoom: 8
      end_zoom: 15
      properties:
        - landuse_kind
      where: >-
        (kind_detail == 'trunk' and zoom < 11) or
        (kind_detail == 'primary' and zoom < 12) or
        (kind_detail == 'secondary' and zoom < 13) or
        (kind_detail == 'tertiary' and zoom < 13) or
        (kind_detail == 'motorway_link' and zoom < 14) or
        (kind_detail == 'trunk_link' and zoom < 14) or
        (kind_detail == 'primary_link' and zoom < 15) or
        (kind_detail == 'secondary_link' and zoom < 15) or
        (kind_detail == 'tertiary_link' and zoom < 15) or
        (kind == 'minor_road' and zoom < 15) or
        (kind == 'aeroway' and zoom < 13) or
        (kind == 'path' and zoom < 14) or
        (kind == 'rail' and zoom < 14)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions