Comments (8)
from mbutil.
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.
Fixing db insertion x/y order; removing file extension from inserted y value. Closed by 743941b.
from mbutil.
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.
@maply-dev I'd like to do so, but where do you make such changes?
from mbutil.
@F3L1X79 you need to write a script which loops over the tiles folders
from mbutil.
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.
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)
- sqlite3.OperationalError: Could not decode to UTF-8 column 'value'
- Old version installed when using pip? HOT 1
- Feature request: Set zoom level range? HOT 4
- Ignore unexpected files
- Can't export properly HOT 2
- mbtiles creation problem for pbf HOT 2
- --image_format=pbf can not be showed HOT 1
- Error in mb-util
- sqlite3.operationalerror:database or disk is full HOT 3
- Installation instructions HOT 1
- Exported tiles (to disk) are not visible on the MapboxGL HOT 1
- patch.sh error - no such table: map, no such table: images
- Gzip format HOT 1
- Cannot open the exported png files. HOT 9
- Trouble merging mbTiles HOT 2
- image_format not set from metadata HOT 2
- Support gzip for tile data HOT 2
- error when export large size mbtiles HOT 3
- --image_format when using scheme ags
- sqllite3.DatabaseError: database disk image is malformed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbutil.