You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2026. It is now read-only.
The file exists (I can fs.stat() the file), I can even read it withfs.readFile(). Just node-mbtiles doesn't seem to get along with it.
I have consulted the source and it seems that on line 83 in mbiltes.js it uses uri.pathname to parse the input file, which does not include a drive letter.
Any ideas how to get it working?
EDIT:
How about using url.fileURLToPath(dbPath) instead of using uri.pathname?
How can one open an mbtiles database that is stored on a different drive letter than windows?
Given
I tried the following values for
path:D:\\maps.mbtilesD://maps.mbtilesfile:///D:\\maps.mbtilesfile://D:\\maps.mbtiles\\\\D:\\maps.mbtiles\\D:\\maps.mbtilesThe file exists (I can
fs.stat()the file), I can even read it withfs.readFile(). Justnode-mbtilesdoesn't seem to get along with it.I have consulted the source and it seems that on line 83 in
mbiltes.jsit usesuri.pathnameto parse the input file, which does not include a drive letter.Any ideas how to get it working?
EDIT:
How about using
url.fileURLToPath(dbPath)instead of usinguri.pathname?