mod_tile
mod_tile copied to clipboard
Converting .png to .meta
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
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.
@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.
Look for the function xyzo_to_meta somewhere.
Lynn (D)
On 8/25/2021 9:39 AM, Nick Maludy via Tile-serving wrote:
@xamanu https://github.com/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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openstreetmap/mod_tile/issues/259#issuecomment-905510553, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6353WVUJWKJPZXXXDOOULT6TXCDANCNFSM5CY7NQSA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.
Tile-serving mailing list @.*** https://lists.openstreetmap.org/listinfo/tile-serving
Actually, a direct pointer: https://github.com/openstreetmap/mod_tile/blob/master/src/store_file_utils.c
Lynn (D)
On 8/25/2021 9:39 AM, Nick Maludy via Tile-serving wrote:
@xamanu https://github.com/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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/openstreetmap/mod_tile/issues/259#issuecomment-905510553, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6353WVUJWKJPZXXXDOOULT6TXCDANCNFSM5CY7NQSA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.
Tile-serving mailing list @.*** https://lists.openstreetmap.org/listinfo/tile-serving
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?