Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #57860
    cdavila
    Participant

    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 photoChristianK
    Keymaster

    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

    #57877
    cdavila
    Participant

    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.

    1 user thanked author for this post.
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.