tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

terminate called after throwing an instance of 'std::runtime_error' what(): unable to open database file Aborted

Open satya-auti opened this issue 3 years ago • 6 comments

_terminate called after throwing an instance of 'std::runtime_error'
  what():  unable to open database file
Aborted_

I have used different input files but still facing same issue.

tilemaker --input raw_data/pnq_ht.osm.pbf --bbox 73.5658,18.404,74.2222,18.7081 --output mbtiles/planet.mbtiles --process resources/process.lua --config resources/config.json --store tempStore

satya-auti avatar Jan 25 '23 06:01 satya-auti

Have you created the mbtiles/ directory, and do you have permission to write to it?

systemed avatar Jan 25 '23 09:01 systemed

It's resolve now

satya-auti avatar Feb 07 '23 12:02 satya-auti

Great!

systemed avatar Feb 07 '23 12:02 systemed

@systemed I'm facing issue while rendering relation building:part tag on map.

I have added the below code for same.

function relation_scan_function(relation)
    if relation:Find("type") == "multipolygon" or relation:Find("type") == "building" then
        relation:Accept()        
    end
end


while true do
        local rel = way:NextRelation()
        if not rel then
            break 
        end
        -- print ("Part of route "..way:FindInRelation("ref"))
        part = way:FindInRelation("building:part")
        -- part = way:FindInRelation("ref")

        if part == "yes" then
            way:Layer("building",false)
            relation:Attribute("building:part",part)
        else
            way:Attribute("building:part","empty")
        end

    end

satya-auti avatar Feb 07 '23 12:02 satya-auti

I don't know anything about building relations I'm afraid, but just to check - the second half of your code above is in way_function, yes?

systemed avatar Feb 07 '23 12:02 systemed

Yes, I have implemented in many ways still its not working

satya-auti avatar Feb 07 '23 12:02 satya-auti