Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to serve an existent MBTiles file using MapProxy. My YAML file looks like this:

    srs: ['EPSG:3785', 'EPSG:4326', 'EPSG:23028']
    image_formats: ['image/jpeg', 'image/png']

  - name: my_mbtiles_layer
    title: My MBTiles layer
    sources: [my_mbtiles_cache]

    sources: []
    grids: [my_grid]
      type: mbtiles
      filename: /path/to/myfile.mbtiles

    res_factor: 'sqrt2'
    bbox_srs: 'EPSG:4326'
    bbox: [-6.54,38.35,-3,40.65]

So, I defined my own grid, based on GLOBAL_GEODETIC, and used it for my MBTiles cache, that is the only source for my layer.

And the queries look like these:


All my tiles form a coverage inside the BBOX (in epsg:4326): [-6.54,38.35,-3,40.65]

But the problem is I get a blank image of 256x256 px, and a HTTP code 200. So, the response is ok, but nothing is rendered in it. The MBTiles coverage is ok. I can see it in a desktop viewer. Here, an screenshot:

So, where can be the problem?

Many thanks in advance

share|improve this question
Jorge, there is a MapProxy mailing list (where you posted the question already). The list is the official support channel and you are likely to get better answers faster there. – olt Nov 22 '11 at 13:02
Ok, sorry for the msg duplication, and thanks for the answer. – jorgeas80 Dec 5 '11 at 16:39
up vote 1 down vote accepted

I finally solved it by generating the zoom levels from 0 in gdal2tiles and using GLOBAL_MERCATOR grid.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.