GithubHelp home page GithubHelp logo

node-mbtiles's People

Contributors

alallier avatar asd20752 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-mbtiles's Issues

Getting Unknown encoding: { 'Content-Type': 'image/png' }

Hi Adrian,

I tried running this code , which gives me this error:

node:internal/errors:464
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_UNKNOWN_ENCODING]: Unknown encoding: { 'Content-Type': 'image/png' }
    at new NodeError (node:internal/errors:371:5)
    at _write (node:internal/streams/writable:293:13)
    at Socket.Writable.write (node:internal/streams/writable:334:10)
    at ServerResponse._writeRaw (node:_http_outgoing:363:17)
    at ServerResponse._send (node:_http_outgoing:339:15)
    at write_ (node:_http_outgoing:785:9)
    at ServerResponse.end (node:_http_outgoing:855:5)
    at Statement.<anonymous> (/home/anurag/Documents/projects/project_yelo/geo/node-mbtiles/node-mbtiles/main.js:72:21) {
  code: 'ERR_UNKNOWN_ENCODING'
}

Steps followed to reproduce this:

  1. Went to BBBike to extract MBT files for a limited location
    image

MBT file I used:
Just rename this files : by removing zip from file name extension
ashta.mbtiles.zip

  1. Placed it in root folder of the node-mbtiles, and did npm install
  2. Ran the code by : node main.js -p 3030
    I modified the code a little:
const databases = {
    ashta: {
        filePath: "ashta.mbtiles"
    }
};
  1. When I go to url http://localhost:3030/ashta/0/0/0 I get the error.

Please assist how do we solev this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.