GithubHelp home page GithubHelp logo

MBTiles creation doesn't work about mbutil HOT 8 CLOSED

mapbox avatar mapbox commented on August 16, 2024
MBTiles creation doesn't work

from mbutil.

Comments (8)

marco-piccolino avatar marco-piccolino commented on August 16, 2024 1

from mbutil.

maply-dev avatar maply-dev commented on August 16, 2024

I also can't get the created mbtiles file to work in maps-on-a-stick, mapbox-routeme or elsewhere.
The filesize is fine, and when you perform the reverse process (from mbtiles to pngs), pngs get extracted, but:

I noticed that when extracting from mbtiles to pngs, X folders also get a .png extension (!)
The problem in visualisation must be connected to this.
I am trying to analyse the python code to see if I can find where this suffix append happens, but it might be as well an issue in the sql query.
This behaviour is the same both under windows 7 and ubuntu 10.10, python 2.6.6

If anyone spots what is wrong, please post the solution...

from mbutil.

ajashton avatar ajashton commented on August 16, 2024

Fixing db insertion x/y order; removing file extension from inserted y value. Closed by 743941b.

from mbutil.

maply-dev avatar maply-dev commented on August 16, 2024

many thanks.

For those who generate tiles with Maperitive or other systems based on Google tiles coordinates, keep in mind that before creating the .mbtiles, you should change the y in filenames from the Google to the Tile Map Service coordinate system: y_tms = (2**zoom - 1) - y_google

see http://www.maptiler.org/google-maps-coordinates-tile-bounds-projection/

from mbutil.

F3L1X79 avatar F3L1X79 commented on August 16, 2024

@maply-dev I'd like to do so, but where do you make such changes?

from mbutil.

marco-piccolino avatar marco-piccolino commented on August 16, 2024

@F3L1X79 you need to write a script which loops over the tiles folders

from mbutil.

F3L1X79 avatar F3L1X79 commented on August 16, 2024

Well, thank you for answering me! I don't know if I was clear on what I want.

I have created a .mbtiles file with TileMill, and I need tiles folders (xyz) to read it with OpenLayers3.

I'm actually using mbUtils to generate those folders, but the subfolders y and the files z.png seem to be not geolocated. Is it possible to use a projection (like EPSG:3857) when creating the folders and tiles at the good location like it is done when using gdal2tiles on a raster file?
Or is this feature not supported by mbUtils?

from mbutil.

F3L1X79 avatar F3L1X79 commented on August 16, 2024

Ok sorry, it is working well with the good projection! It was just my local web-server which was not strong enough to load an entire map of the world and was crashing silently...
Anyway thank you for answering me!!

from mbutil.

Related Issues (20)

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.