<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Helvetica, Arial, sans-serif">Hi</font></p>
<p><font face="Helvetica, Arial, sans-serif">I've successfully
seeded a 'file' cache in TMS layout from a WMS source.</font></p>
<p><font face="Helvetica, Arial, sans-serif">Now I'd like to export
certain shapes and zoom levels to a .mbtiles file.</font></p>
<p><font face="Helvetica, Arial, sans-serif">I'm using the following
command:</font></p>
<p><font face="Helvetica, Arial, sans-serif">mapproxy-util export -f
mapproxy.yaml --grid mercator --source my_cache --dest
test.mbtiles --type mbtile --levels 1..12 --coverage
Almeria-Basemap.shp --srs EPSG:3857</font></p>
<p><font face="Helvetica, Arial, sans-serif">But I get the following
exception:</font></p>
<p>WARN: grids are incompatible. needs to scale/reproject tiles for
export.<br>
Exporting cache 'cache' to 'test.mbtiles' with grid 'mercator' in
EPSG:3857<br>
Limited to: -0.00003, 0.00033, -0.00002, 0.00034 (EPSG:4326)<br>
Levels: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]<br>
[16:57:47] 1 0.00% -3.04402, 36.67210, -1.72785, 37.38527 (0
tiles)<br>
Traceback (most recent call last):<br>
File "/usr/local/bin/mapproxy-util", line 11, in <module><br>
load_entry_point('MapProxy==1.11.0', 'console_scripts',
'mapproxy-util')()<br>
File
"/home/matti/.local/lib/python2.7/site-packages/mapproxy/script/util.py",
line 387, in main<br>
commands[command]['func'](args)<br>
File
"/home/matti/.local/lib/python2.7/site-packages/mapproxy/script/export.py",
line 289, in export_command<br>
concurrency=options.concurrency)<br>
File
"/home/matti/.local/lib/python2.7/site-packages/mapproxy/seed/seeder.py",
line 516, in seed_task<br>
tile_walker.walk()<br>
File
"/home/matti/.local/lib/python2.7/site-packages/mapproxy/seed/seeder.py",
line 322, in walk<br>
self._walk(bbox, self.task.levels)<br>
File
"/home/matti/.local/lib/python2.7/site-packages/mapproxy/seed/seeder.py",
line 371, in _walk<br>
all_subtiles=all_subtiles)<br>
File
"/home/matti/.local/lib/python2.7/site-packages/mapproxy/seed/seeder.py",
line 371, in _walk<br>
all_subtiles=all_subtiles)<br>
File
"/home/matti/.local/lib/python2.7/site-packages/mapproxy/seed/seeder.py",
line 371, in _walk<br>
all_subtiles=all_subtiles)<br>
File
"/home/matti/.local/lib/python2.7/site-packages/mapproxy/seed/seeder.py",
line 334, in _walk<br>
bbox_, tiles, subtiles =
self.grid.get_affected_level_tiles(cur_bbox, current_level)<br>
File
"/home/matti/.local/lib/python2.7/site-packages/mapproxy/grid.py",
line 970, in get_affected_level_tiles<br>
raise GridError('Invalid BBOX')<br>
mapproxy.grid.GridError: Invalid BBOX</p>
<p>Not sure what I can do to fix this? Also, why are the grids
incompatible? The "Limited to" bbox seems really strange. It
should be sometehing like "-3.04402, 36.67210, -1.72785, 37.38527
(EPSG:4326)" (copied from the seeding process with the identical
shp file). I've attached the shapefile.<br>
</p>
<p>Grid 'mercator' is defined as:</p>
<p> mercator:<br>
base: GLOBAL_MERCATOR<br>
srs: 'EPSG:3857'<br>
</p>
<p>and the cache uses the same grid</p>
<p>Thanks a lot!</p>
<p>Matt<br>
</p>
</body>
</html>