Giter VIP home page Giter VIP logo

Comments (8)

olt avatar olt commented on June 12, 2024

Yes, update_metadata() is not used by MapProxy. It's not clear to me what metadata MapProxy should write into the MBTiles cache, since a cache normally doesn't now the bounds or the title/name.
Calling it from mapproxy-util export might be more useful.

from mapproxy.

Maltretieren avatar Maltretieren commented on June 12, 2024

Hi, wanted to use a mbtiles file produced by mapproxy with https://github.com/springmeyer/portable-node-app . It didn't work due to the missing metadata. Mapproxy should follow the MBTiles Specs https://github.com/mapbox/mbtiles-spec .

from mapproxy.

wattnpapa avatar wattnpapa commented on June 12, 2024

ok bring this issue back to the top now ;)

The specification is:
https://github.com/mapbox/mbtiles-spec/blob/master/1.1/spec.md

I have here a screenshot from a other file this should help:

mbtilesmetadata

And the "Demo" Data
10.mbtiles.zip

@olt I Think this should help

from mapproxy.

olt avatar olt commented on June 12, 2024

It's not clear to me what metadata MapProxy should write into the MBTiles cache, since a cache normally doesn't now the bounds or the title/name.

A cache grows over time and it would be inefficient to recalculate and update the bounding box with every stored tile. That's what I meant with a cache normally doesn't now the bounds.

from mapproxy.

wattnpapa avatar wattnpapa commented on June 12, 2024

yes that right, I think the main problem is that the table is missing.
I get an error that it is missing when I try to open the mbtiles file in MapTiler

bildschirmfoto 2017-05-11 um 16 55 40

maybe for the moment to have this table enter the whole range
bounds: -180,-90,180,90
center: 0,0

that is not the best solution I know but maybe later we can found a better way

from mapproxy.

wattnpapa avatar wattnpapa commented on June 12, 2024

@olt I am agree with you that it is "nearly" impossible for the moment for the cache to define a boundig-box using the normal mapproxy

but when I using mapproxy-seed than it should be possible to set this metadata at the end of the seeding process, isn't it?

working with mbtiles shows me that this informations are important (for me):

  • bounds
  • center
  • minzoom
  • maxzoom

from mapproxy.

ache051 avatar ache051 commented on June 12, 2024

Hate to resurrect an old thread. Tileserver-GL has been recognizing MBTiles created by MapProxy as vector MBTiles. After some frustrating efforts including rebuilding indices and jigging table structures, I found that it is due to the empty metadata table! Once I do "INSERT INTO metadata (name, value) VALUES('format','jpg');" Tileserver-GL immediately recognize it as raster MBTiles and renders tiles perfectly. Is it worth any effort to populate the metadata table when the MBTiles file is created?

from mapproxy.

drnextgis avatar drnextgis commented on June 12, 2024

There is a method for doing that but I don't see it being called anywhere.

from mapproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.