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

Add bounds and center to metadata in MBTiles file #14

Closed
ssokol opened this issue Sep 27, 2024 · 3 comments
Closed

Add bounds and center to metadata in MBTiles file #14

ssokol opened this issue Sep 27, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@ssokol
Copy link
Collaborator

ssokol commented Sep 27, 2024

Not a huge deal, but having the bounds and center coordinates in the metadata would make it slightly faster for my use case. My tile server indexes the MBTiles files in a given directory then uses the bounds and/or center values to find the required file when it receives a request.

Here's what tilemaker sets as metadata for those values:

bounds|-106.645646,25.837377,-93.508292,36.500704
center|-100.076969,31.169041,7
@ssokol ssokol added the enhancement New feature or request label Sep 27, 2024
@N129BZ
Copy link
Owner

N129BZ commented Sep 30, 2024

If processing single area chart(s), the app will now add bounds and center values to the metadata table in each mbtiles database.
These new metadata fields will be not be present if processing any of the full charts, since those are actually comprised of multiple individual geotiffs which each have individual extent data, making any overall calculation of extents more involved than I have time or inclination to deal with.

@N129BZ N129BZ closed this as completed Sep 30, 2024
@N129BZ N129BZ reopened this Sep 30, 2024
@N129BZ
Copy link
Owner

N129BZ commented Sep 30, 2024

P.S., also added a new settings.json key+value: centerzoomlevel which defaults to 7. Example below.

In settings.json:

    "tileimagequality" : 40,
    "blendpixels" : 30,
    "zoomrange" : "0-11",
    "centerzoomlevel": "7",   <= new setting
    "dbextension": "mbtiles",
    "externaldbfolder": "",
    "addoverviews": true,

metadata3

@N129BZ N129BZ closed this as completed Sep 30, 2024
@ssokol
Copy link
Collaborator Author

ssokol commented Sep 30, 2024

Apologies - I was out for part of the weekend. I was specifically referring to the bounds for individual VFR sectionals. What you've added is exactly what I needed. Thank you very much!

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

No branches or pull requests

2 participants