Skip to content
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

Converting .png to .meta #259

Open
nmaludy opened this issue Aug 25, 2021 · 5 comments
Open

Converting .png to .meta #259

nmaludy opened this issue Aug 25, 2021 · 5 comments

Comments

@nmaludy
Copy link

nmaludy commented Aug 25, 2021

Hello,

I'm interesting in converting a directory structure of .png into .meta tiles so that i can serve them with mod_tile.
I came across some google results for convert_meta, but it seems that this is no longer built in the the current version of mod_tile.
Is there a replacement or alternative for convert_meta to accomplish what i'm after?

Thanks,
Nick

@pantierra
Copy link
Collaborator

Hi @nmaludy, convert_meta's source code is still part of mod_tile (see the src/convert_meta.c), however it doesn't seem to be compiled properly (since many many years). I would not know any alternative, but you can definitively try to make it run and if you succeed, it would be very nice to get a PR for it.

@nmaludy
Copy link
Author

nmaludy commented Aug 25, 2021

@xamanu I'm working on that now :) . I did get it to compile by copy/pasting some code from an older tag (0.4) into the conver_meta.c. Only hard part i have now is that my directory structure is z/x/y.png and i believe the newer "hash" structure is a different format. I need to figure out how to convert between the two.

@openstreetmap-tiles
Copy link

openstreetmap-tiles commented Aug 25, 2021 via email

@openstreetmap-tiles
Copy link

openstreetmap-tiles commented Aug 25, 2021 via email

@qazatqazah
Copy link

I would like to know if this mystery has been solved, and if so, what the recipy is to get convert_meta running, since I would like to do the same thing. I'm prerendering a map layer by layer, but the result is not in the .meta format that the webserver uses, but in png. What to do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants