[MapProxy] jpeg tiles for mbtiles

Oliver Tonnhofer olt at omniscale.de
Sat Dec 29 04:53:34 PST 2012


Thanks for the more detailed description.

It is a bug and I created a ticket for it: https://github.com/mapproxy/mapproxy/issues/52

On 24.12.2012, at 11:33, Zmitser Kozhukh wrote:

> hello!
> 
> here are all necessary informations:
> 
> mapproxy-util export -f mapproxy3.yaml --grid grid_region_new --source region_new --dest region.mbtiles --type mbtile --srs 3035 --levels 0..3
> 
> 
> Exception in thread Thread-1:
> Traceback (most recent call last):
> File "D:\Python27\Lib\threading.py", line 551, in __bootstrap_inner
> self.run()
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\seed\seeder.py", line 92, in run
> self.work_loop()
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\seed\seeder.py", line 104, in work_loop
> exceptions=(SourceError, IOError), ignore_exceptions=(LockTimeout, ))
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\seed\util.py", line 216, in exp_backoff
> result = func(*args, **kw)
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 126, in load_tile_coords
> created_tiles = creator.create_tiles(uncached_tiles)
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 213, in create_tiles
> created_tiles = self._create_single_tiles(tiles)
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 237, in _create_single_tiles
> created_tiles.extend(self._create_single_tile(tile))
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 253, in _create_single_tile
> source = self._query_sources(query)
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\cache\tile.py", line 274, in _query_sources
> return self.sources[0].get_map(query)
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\source\tile.py", line 95, in get_map
> return CacheMapLayer.get_map(self, query)
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\layer.py", line 390, in get_map
> self._check_tiled(query)
> File "d:\mapproxy_venv\lib\site-packages\mapproxy\layer.py", line 409, in _check_tiled
> raise MapError("invalid tile format, use %s" % self.tile_manager.format)
> MapError: invalid tile format, use jpeg
> 
> 
> 
> 
> caches:
> region_new:
> grids: [grid_region_new]
> sources: [region] 
> image:
> format: image/jpeg
> encoding_options:
> jpeg_quality: 75
> 
> sources:
> region:
> type: wms
> supported_srs: ['EPSG:3035']
> supported_formats: ['image/png', 'image/jpeg']
> image:
> format: image/jpeg
> encoding_options:
> jpeg_quality: 75
> req:
> url: http://localhost/cgi-bin/mapserv.exe?map=\GIS\projects\region.map
> layers: topo
> 
> grids:
> grid_region_new:
> tile_size: [256, 256]
> srs: 'EPSG:3035'
> bbox: [4623781,3036615,4712355,3122540]
> bbox_srs: 'EPSG:3035'
> res: [295.3486777210164, 147.6743388605082, 59.06973554420327, 29.534867772101634, 14.767433886050817, 5.906973554420326, 2.953486777210163, 1.4767433886050816, 0.5906973554420327, 0.29534867772101636]
> 
> When I try the same setup with png format it works.
> I have the new version of mapproxy, official release.
> 
> Thanks.
> 
> All the best in New Year.
> 
> Kind regards,
>                              Zmicjer K.
>                                
> 
> 
> 
> Пятница, 21 декабря 2012, 8:51 +01:00 от Oliver Tonnhofer <olt at omniscale.de>:
> 
> On 21.12.2012, at 07:53, Zmitser Kozhukh wrote:
> 
> > hey! just wanted to ask why when trying to convert jpeg tiles to mbtiles format I get an error saying: invalid tile format. with png tiles it works fine.
> > mbtiles doesnt support jpeg tiles?
> 
> It should work with JPEG.
> 
> If you need further help, please read http://mapproxy.org/support.html#how-to-ask-for-help
> 
> 
> Regards,
> Oliver
> 
> -- 
> Oliver Tonnhofer | Omniscale GmbH & Co KG | http://omniscale.de
> http://mapproxy.org | https://github.com/olt | @oltonn
> 
> 
> 
> 
> 
> 
> 

-- 
Oliver Tonnhofer    | Omniscale GmbH & Co KG    | http://omniscale.de
http://mapproxy.org | https://github.com/olt | @oltonn




More information about the MapProxy mailing list