[MapProxy] convert TMS to WMTS

Eric Lemoine eric.lemoine at gmail.com
Wed Dec 5 05:07:25 PST 2012


On Wed, Dec 5, 2012 at 1:33 PM, Oliver Tonnhofer <olt at omniscale.de> wrote:
>
> On 05.12.2012, at 12:46, Eric Lemoine wrote:
>> Thank you Olivier. It indeed works for osm_cache. My problem is
>> elsewhere. This is what I get:
>>
>> $ mapproxy-util export --force --mapproxy-conf=mapproxy.yaml
>> --source=mnc2010_10cl_cache --grid="srs='EPSG:21781'
>> bbox=[420000,30000,900000,360000] bbox_srs='EPSG:21781'
>> res=[250,100,50,20,10,5,2.5,2,1.5,1,0.5,0.25,0.125,0.0625]
>> origin='nw'" --dest=essai --levels=0 --type=tc
>> Exporting cache 'cache' to 'essai' with custom grid in EPSG:21781
>>  Limited to: 5.00975, 45.35600, 11.48437, 48.38720 (EPSG:4326)
>>  Levels: [0]
>> [12:43:01]  0   0.00% 420000.00000, 30000.00000, 900000.00000,
>> 360000.00000 (0 tiles) ETA: N/A
>> Process TileSeedWorker-1:
>> [...]
>> MapBBOXError: not a single tile
>
>
> Please provide a configuration so that I can look into it.


Minimal (or close to) configuration file:

caches:
  my_cache:
    grids: [my_grid]
    sources: [my_source]
    cache:
      type: file

sources:
  my_source:
    type: wms
    req:
      url: http://some_url
      layers: some_url

grids:
  my_grid:
    srs: 'EPSG:21781'
    bbox: [420000, 30000, 900000, 360000]
    bbox_srs: 'EPSG:21781'
    res: [250, 100, 50, 20, 10, 5, 2.5, 2, 1.5, 1, 0.5 ,0.25, 0.125, 0.0625]


Command line producing the error:

$ mapproxy-util export --force --mapproxy-conf=testcase.yaml
--source=my_cache --grid="srs='EPSG:21781'
bbox=[420000,30000,900000,360000] bbox_srs='EPSG:21781'
res=[250,100,50,20,10,5,2.5,2,1.5,1,0.5,0.25,0.125,0.0625]
origin='nw'" --dest=destdir --levels=0 --type=tc


If I remove origin='nw' in the command line I guess this:

$ mapproxy-util export --force --mapproxy-conf=testcase.yaml
--source=my_cache --grid="srs='EPSG:21781'
bbox=[420000,30000,900000,360000] bbox_srs='EPSG:21781'
res=[250,100,50,20,10,5,2.5,2,1.5,1,0.5,0.25,0.125,0.0625]"
--dest=destdir --levels=0 --type=tc
Exporting cache 'cache' to 'destdir' with custom grid in EPSG:21781
  Limited to: 5.00975, 45.35600, 11.48437, 48.38720 (EPSG:4326)
  Levels: [0]
[14:06:14]  0   0.00% 420000.00000, 30000.00000, 900000.00000,
360000.00000 (0 tiles) ETA: N/A
[14:06:14]  0 100.00% 420000.00000, 30000.00000, 900000.00000,
360000.00000 (48 tiles) ETA: 2012-12-05-14:06:14



Thank you very much!



--
Eric


More information about the MapProxy mailing list