Comments (8)
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.
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.
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:
And the "Demo" Data
10.mbtiles.zip
@olt I Think this should help
from 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.
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.
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
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.
@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.
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.
There is a method for doing that but I don't see it being called anywhere.
from mapproxy.
Related Issues (20)
- Image tile format jpeg doesn't work HOT 2
- Cleanup of mbtiles seed fails in Mapproxy 1.16 HOT 1
- Clipping in coverage does not work when coverage is in cache HOT 4
- Missing reference to self when setting `cache_dir` for `file` cache when `dimensions` is supplied HOT 2
- Unknown start tag in capabilities HOT 3
- AttributeError: type object 'TestCase' has no attribute 'failUnless' with Python 3.12 HOT 1
- ShapelyDeprecationWarning: The 'type' attribute is deprecated HOT 1
- Skip redundant HEAD request to s3 cache
- Downscaling mechanism incompatibility with coverage clipping HOT 1
- problem with ArcGIS compact cache v2 in local SRS HOT 1
- Mapproxy rejects colon in s3 bucket name HOT 1
- make_app func does not return anything and causes requests to MapProxy to fail
- GetFeatureInfo fails for several layers query if one query layer returns an empty set HOT 1
- Docker image ghcr.io/mapproxy/mapproxy/mapproxy:2.0.2-dev doesn't contain necessary pip packages HOT 5
- Add support for cache layout templates
- Compact Cache on s3 HOT 1
- Unable to featch tiles from URL with unicode characters HOT 1
- Mapproxy restart multiple times at startup HOT 2
- Service initialisation times are extremely high with nested caches
- `remove_all` does not remove cache HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapproxy.