-1

I have a problem with mapcache, I want to set maxzoom level = 21, but I get error when i try to restart apache server.

enter image description here

Here's error I get :

enter image description here

  • How many zoom level do you have in WMS ? – Shiko Feb 23 '17 at 7:55
  • I use mapserver for WMS. It's work well when I access WMS with zoom over 21. how i can set ? – Nurul Hidayat Feb 23 '17 at 8:01
  • Can you try with low zoom level like 10 ? – Shiko Feb 23 '17 at 8:33
  • yes, it's work well if i set 10, and I was try to set another zoom level. I got this : if I set max zoom below 17 it will error. – Nurul Hidayat Feb 23 '17 at 8:37
  • 1
    Please provide all code and error messages as text rather than pictures so that they are available to future searches. – PolyGeo Feb 23 '17 at 8:57
1

You need to define the resolutions for zoom levels:

Example (You need to define yours):

<resolutions>0.703125000000000 0.351562500000000 0.175781250000000 8.78906250000000e-2 4.39453125000000e-2 2.19726562500000e-2 1.09863281250000e-2 5.49316406250000e-3 2.74658203125000e-3 1.37329101562500e-3 6.86645507812500e-4 3.43322753906250e-4 1.71661376953125e-4 8.58306884765625e-5 4.29153442382812e-5 2.14576721191406e-5 1.07288360595703e-5 5.36441802978516e-6</resolutions>

http://mapserver.org/mapcache/config.html#grid

  • stil get error when I set maxzoom with number above 17. – Nurul Hidayat Feb 23 '17 at 8:02
  • Same error or different ? – Shiko Feb 23 '17 at 8:08
  • the different is here : invalid grid maxzoom/minzoom 0/19 – Nurul Hidayat Feb 23 '17 at 8:10
  • I was try, and my code is like this. but stil get same error when i restart apache server. – Nurul Hidayat Feb 23 '17 at 8:50
  • <grid name="jimatt"> <srs>epsg:4326</srs> <size>256 256</size> <extent>-180 -90 180 90</extent> <units>m</units> <resolutions>0.703125000000000 0.351562500000000 0.175781250000000 8.78906250000000e-2 4.39453125000000e-2 2.19726562500000e-2 1.09863281250000e-2 5.49316406250000e-3 2.74658203125000e-3 1.37329101562500e-3 6.86645507812500e-4 3.43322753906250e-4 1.71661376953125e-4 8.58306884765625e-5 4.29153442382812e-5 2.14576721191406e-5 1.07288360595703e-5 5.36441802978516e-6</resolutions> </grid> – Nurul Hidayat Feb 23 '17 at 9:07
0

I got the answer, it's work for me.

must create own grid and set resolution till zoom number 21.

<resolutions>156543.0339280410 78271.51696402048 39135.75848201023 19567.87924100512 9783.939620502561 4891.969810251280 2445.984905125640 1222.992452562820 611.4962262814100 305.7481131407048 152.8740565703525 76.43702828517624 38.21851414258813 19.10925707129406 9.554628535647032 4.777314267823516 2.388657133911758 1.194328566955879 0.5971642834779395 0.2985821417389698 0.1492910708694849 0.0746455354347424 0.0373227677173712 </resolutions>

  • That's what I've mentioned in my answer. – Shiko Feb 28 '17 at 4:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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