[MapProxy] Ideal definition of mapproxy cache grid resolutions

tristndev coding at tristndev.de
Fri Jul 29 04:17:38 PDT 2022


Setting:
We want to proxy and cache a 3rd party WMS service, mainly for use with an
instance of a geoportal based on the Masterportal [1], code hosted on
bitbucket [2]
Technically, it all works fine but I want to further improve the
configuration, but am struggling to find the right settings for the grid to
be used by the cache.

Since the masterportal will be the main application accessing the cache, I
want to optimize the grid according to the requests (and zoom levels)
produced in masterportal.

Masterportal is an open source geoportal based on openlayers and according
to its documentation [3], the zoom levels are defined as following:

#[{"resolution":66.14579761460263,"scale":250000,"zoomLevel":0},
# {"resolution":26.458319045841044,"scale":100000,"zoomLevel":1},
# {"resolution":15.874991427504629,"scale":60000,"zoomLevel":2},
# {"resolution": 10.583327618336419,"scale":40000,"zoomLevel":3},
# {"resolution":5.2916638091682096,"scale":20000,"zoomLevel":4},
# {"resolution":2.6458319045841048,"scale":10000,"zoomLevel":5},
# {"resolution":1.3229159522920524,"scale":5000,"zoomLevel":6},
# {"resolution":0.6614579761460262,"scale":2500,"zoomLevel":7},
# {"resolution":0.2645831904584105,"scale": 1000,"zoomLevel":8},
# {"resolution":0.13229159522920521,"scale":500,"zoomLevel":9}]

How can I translate these to the equivalent resolutions to be used in my
mapproxy configuration?

I suspect that masterportal and mapproxy use varying definitions of
resolutions and scales.
The masterportal scales appear as "map scales" depending on the zoom level
in the map.

Thanks in advance!

[1] https://www.masterportal.org
[2] https://bitbucket.org/geowerkstatt-hamburg/masterportal/
[3]
https://bitbucket.org/geowerkstatt-hamburg/masterportal/src/dev/doc/config.json.md
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20220729/57dfdef9/attachment.htm>


More information about the MapProxy mailing list