[MapProxy] Grid doesn't work

Jan Mareš HonzaMares1 at seznam.cz
Sun Aug 19 02:11:40 PDT 2018


Hello,
I would very mutch appreciate your help. I have configuritaion yml which i 
use for making compact cachces acording to my grid which is in EPSG:5514 but
now i just need to switch from 5514 to 4326.

But it doesnt work. Cache is empty or process ends with error (mapnik sends 
empty streams or invalid bbox and so on).




Here is my config what am i doing wrong ?? 





layers:

  - name: zpm

    title: zpm

    sources: [zpm_1k]

 

caches:

  zpm_1k:

    grids: [cuzk]

    sources: [mapnik_1k]

    cache:

      type: compact

      version: 2

  zpm_2k:

    grids: [cuzk]

    sources: [mapnik_2k]

    cache:

      type: compact

      version: 2

  zpm_4k:

    grids: [cuzk]

    sources: [mapnik_4k]

    cache:

      type: compact

      version: 2

  zpm_8k:

    grids: [cuzk]

    sources: [mapnik_8k]

    cache:

      type: compact

      version: 2

  zpm_16k:

    grids: [cuzk]

    sources: [mapnik_16k]

    cache:

      type: compact

      version: 2

  zpm_32k:

    grids: [cuzk]

    sources: [mapnik_32k]

    cache:

      type: compact

      version: 2

  zpm_64k:

    grids: [cuzk]

    sources: [mapnik_64k]

    cache:

      type: compact

      version: 2

  zpm_128k:

    grids: [cuzk]

    sources: [mapnik_128k]

    cache:

      type: compact

      version: 2

  zpm_256k:

    grids: [cuzk]

    sources: [mapnik_256k]

    cache:

      type: compact

      version: 2

  zpm_512k:

    grids: [wgs]

    sources: [mapnik_512k]

    cache:

      type: compact

      version: 2

  zpm_1024k:

    grids: [wgs]

    sources: [mapnik_1024k]

    cache:

      type: compact

      version: 2

  zpm_2048k:

    grids: [wgs]

    sources: [mapnik_2048k]

    cache:

      type: compact

      version: 2

 

sources:

  mapnik_1k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_1tis_style.xml'

    scale_factor: 1.75

  mapnik_2k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_2tis_style.xml'

    scale_factor: 1.75

  mapnik_4k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_4tis_style.xml'

    scale_factor: 1.75

  mapnik_8k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_8tis_style.xml'

    scale_factor: 1.75

  mapnik_16k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_16tis_style.xml'

    scale_factor: 1.75

  mapnik_32k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_32tis_style.xml'

    scale_factor: 1.75

  mapnik_64k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_64tis_style.xml'

    scale_factor: 1.6

  mapnik_128k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_128tis_style.xml'

    scale_factor: 1.6

  mapnik_256k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_256tis_style.xml'

    scale_factor: 1.6

  mapnik_512k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_512tis_style.xml'

    scale_factor: 1.5

  mapnik_1024k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_1024tis_style.xml'

    scale_factor: 1.5

  mapnik_2048k:

    type: mapnik

    mapfile: '/home/mapnik/mapnik_styles/mapnik_2048tis_style.xml'

    scale_factor: 1.5

 

grids:

  cuzk:

    srs: 'EPSG:5514'

    origin: nw

    res: [512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5, 0.25]

    bbox: [-33699800, -33699800, 33699800, 33699800]

  wgs84:

    srs: 'EPSG:4326'

    origin: sw

    res: [512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5, 0.25]

    bbox: [-33699800, -33699800, 33699800, 33699800]

    bbox_res: 'EPSG:5514'

   

globals:

  cache:

    base_dir: '/home/mapnik/storage/mapproxy/cache'

    meta_size: [32,32]

    meta_buffer: 512

  image:

    paletted: false

    resampling_method: bilinear




















Thank you for your assistance

Best regards
Ing. Jan Mareš

-- 
Hezký den,

S pozdravem
Ing. Jan Mareš
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20180819/22fd97c4/attachment.html>


More information about the MapProxy mailing list