Giter Site home page Giter Site logo

mbtiles-extractor's Introduction

Step 1: Save convert.py into the same folder as your .mbtiles file
Step 2: Make sure python is installed
Step 3: In terminal, cd into that folder
Step 4: Run this:

python convert.py filename.mbtiles

That's it! It should generate a folder called filename filled with PNGs that contain the data in the mbtiles archive.

Notes:
- The Y axis values are set from a top left origin, which is TMS standard. This is not the default on many other mapping applications, like the google maps API or Leaflet, which require an option to use "TMS" scheme instead of "XYZ".

mbtiles-extractor's People

Contributors

cayetanobv avatar pbarry avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mbtiles-extractor's Issues

Y/column/image number error

I have created my own customized tile in tilemill and extract it using this tool. Now I am facing some problem with its indexing or naming convention. I am giving an clear example. I have taken an area where 6 tiles were created. In Google Maps or OSM in the same extent its giving 6 tiles and the same tiles. So there is no referencing or projection problem. Even the X or the folder name is also matching. I am getting trouble with the Y column or Image name. Its not matching. I have taken a close look at it. Interestingly I found in Google or OSM the Y column is incrementing from top to bottom where as tilemill created tiles number those incrementing from bottom to top. That is why the naming of tiles are not matching. What should I do?

pgw files

If you can please generate the .pgw files as well.

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.