I want to calculate the numbers of zoom levels that has a WMS. I had a look to the WMS spec and I guess that it has to be related with bounding box area and image size.

  • 1
    You can define the geographical area covered with BBOX and size of the output map with WIDTH and HEIGHT. As a result you can achieve any scale you want, including a possibility to have different scales in east-west and north-south directions. – user30184 Jan 10 '16 at 22:40

There is no concept of zoom "levels" in the WMS specification, as there is for an XYZ/TMS. Rather, your WMS requests just use a bounding box which determines map scale.

  • Ok, maybe the correct term is scale instead zoom level. When you request a map to the server, depending on bbox you choose, the image back has a scale (meters/pixel). I want to know which is the max and min scale that the WMS provide. – Jawensi Jan 11 '16 at 8:30
  • 1
    Well, in principle the upper limit is the bounding box of the map service, which could be as big as (-180, -90, 180, 90) for a view of the entire world. If you wanted to, you could request a map representing a 1cm² bounding box on a projected view of the world. The scale is entirely determined from the bounding box you request, and which the service supports. – Richard Law Jan 11 '16 at 8:33

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.