Skip to content

Cross-Platform Inconsistency in Attribute Handling with Identical Configs on Ubuntu and macOS #731

@pa5cal

Description

@pa5cal

I have been using tilemaker v3 on a Mac Mini since February without any issues. Recently, I set up the same version on a new machine running Ubuntu 24.04 LTS, using identical Lua and configuration files. However, I'm encountering discrepancies in the attribute behavior of features within the vector tiles.

The intended functionality, verified on my Mac, is for the following code snippet to add attributes only if they exist:

-- Roads ('transportation')
if highway ~= "" then
    -- Write to layer
    Layer("transportation", false)
    Attribute("tag:highway", highway)
    Attribute("tag:oneway", Find("oneway"))
    Attribute("tag:surface", Find("surface"))
    Attribute("tag:access", Find("access"))
    Attribute("tag:bicycle", Find("bicycle"))
    Attribute("tag:foot", Find("foot"))
    Attribute("tag:mtb_scale", Find("mtb:scale"))
    SetBrunnelAttributes()
    SetNameAttributes()
end

On the Ubuntu system, an example feature looks like this:

1251211961 {tag:bicycle=, tag:mtb_scale=, tag:oneway=, tag:surface=, tag:foot=, name=, tag:access=, tag:highway=residential}

Whereas on my Mac, the output for the same feature is more succinct and as expected:

1251211961 {tag:highway=residential}

Any suggestions or corrections are highly appreciated, especially if I have misunderstood something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions