Betrachte 3 Beiträge - 1 bis 3 (von insgesamt 3)
  • Autor
    Beiträge
  • #57860
    cdavila
    Teilnehmer

    I would like to make natural=water objects appear at different zoom levels depending on their size. I’ve tried the same bunch of „bBoxWeight rules“ found at tagmapping-min.xml for ways and rule <osm-tag key=’natural‘ value=’water‘ zoom-appear=’8′ /> for an osm file containing several natural=water closed polygons (sized 1300 m2 to 81 km2) and they all do appear at the same zoom level.
    Any suggestion how could I use tagmapping.xml and style.xml files (and tagtransform as well if needed) to get say large natural=water polygons appear at zoom level=6, mid sized polygons at zoom-level=8 and small polygons at zoom-level=10?

    #57871
    Avatar-FotoChristianK
    Administrator

    The bboxweight is not included in OSM.
    You have to calculate these and add it to the OSM-Objekts

    First filter the Objects you want to add bboxweight and then
    Something like that:

    osmconvert myosmfile.osm –max-objects=999999999 –add-bboxweight-tags -o=myosmfile_poly_weight.osm

    Ensure that you use the very latest OSMCONVERT in Linux and/or WSL – older ones cannot handle the actual big OSM-IDs

    • Diese Antwort wurde vor vor 1 Woche, 6 Tage von Avatar-FotoChristianK bearbeitet.
    #57877
    cdavila
    Teilnehmer

    Thanks a lot for the hint. I didn’t know that option of osmconvert. Just a remark, max-objects and add-bboxweight-tags must be preceded by a double hyphen (-). It was removed when formatting it as code.

    • Diese Antwort wurde vor vor 1 Woche, 5 Tage von cdavila bearbeitet.
    1 Teilnehmer(n) gefällt dieser Beitrag
Betrachte 3 Beiträge - 1 bis 3 (von insgesamt 3)
  • Sie müssen angemeldet sein, um zu diesem Thema eine Antwort verfassen zu können.