-
-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to create pmtiles? #10
Comments
Right now the only writer implementation I have published is the Python one: https://github.com/protomaps/PMTiles#how-to-use |
Can you tell me which tool you used to generate the mbtiles file (which is then input for |
For raster tiles, you can generate mbtiles using any of the following methods:
|
Thanks for those recommendations! Will definitly take a closer look. Also.. |
Yes, the converter needs to be fixed to always use TMS for mbtiles input: #8 |
@gibbsnich can you try upgrading to 0.0.5? MBTiles coords should now be properly interpreted as TMS. @reyemtm on the subject of gdal2pmtiles, it would share most of the logic with gdal2mbtiles, but the last bit of inserting into SQLite is replaced by writing to a stream and managing the directory creation. In my experience, programs need to use either the GDAL python bindings or C bindings, and the difficulty is making it work for whatever GDAL is on a user's machine, whether it's through Python or a dynamic library. Using the C library will be much faster but still demands having a solution for distributing it to end users. Maybe another option is to have the pmtiles just use Rasterio as a dependency so we would inherit all the packaging/linking bits (the hard part) from that. |
Yes, 0.0.5 fixes this issue |
I successfully created a pmtiles but am wondering if the algorithm you
discuss in your latest blog is present in this version or if that was just
a theory, treating a map like a video. From the blog post I imagined the
pmtiles would be smaller than the mbtiles file but maybe I am missing
something.
…On Sat, May 8, 2021, 9:09 AM gibbsnich ***@***.***> wrote:
Yes, 0.0.5 fixes this issue
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABQ2HUM3PJCEP6SHSBWVT3LTMUZYHANCNFSM43W2EVRA>
.
|
@reyemtm yes, it will deduplicate tiles based on their hash https://github.com/protomaps/PMTiles/blob/master/python/pmtiles/writer.py#L28 It's possible your MBTiles does not have duplicate data, or your MBTiles already implements deduplication by using a view. |
Hello,
how can I create my own pmtiles?
The text was updated successfully, but these errors were encountered: