mapbox / mapbox/mbtiles-cutout
Use tables names defined in mbtile spec
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
I get the error pasted below, and there seems to be no such table in the mbtiles have been using.
mbtiles-cutout/node_modules/sqlite3/lib/trace.js:27
throw err;
^
Error: SQLITE_ERROR: no such table: map
--> in Database#get('SELECT count(*) as cnt FROM map', [Function])
at /home/mwongela/mbtiles-cutout/index.js:25:8
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in index.js at line 25, where the query for the map table fails, and compare the queried table names with those defined by the MBTiles specification. Verify the change using a spec-compliant MBTiles file; done means the command no longer reports a missing map table.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, sqlite
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100