[MS4W-Users] Define resoutions in mapcache
TC Haddad
tchaddad at gmail.com
Tue Dec 8 15:15:45 EST 2015
Did you ever use that projection with OpenLayers? If so, the resolutions
listed would be similar for MapCache. The items listed are defined as "A
list of map resolutions (map units per pixel) in descending order."
If you do not have a model set of resolutions, you may need to create your
own. I'm not an expert, but if your cache is just for you, I think you can
configure whatever resolutions you like. The most important decisions are:
- how many zoom levels do you want? and
- what is the maximum resolution you want?
The easiest way to think about it might be to decide (based on your data)
on the look of the closest zoom you want in a GIS system, and ask yourself
approximately how many meters per pixel is that level? Then to calculate
one zoom level out, you can double the number of meters per pixel, repeat
for the next level out, etc.
You finally then specify your list in the <resolutions> section of your
mapcach.xml, in descending order (of meters per pixel), separated by spaces.
hope that helps...
Tanya
On Tue, Dec 8, 2015 at 7:23 AM, Darko Kovacevski via MS4W-Users <
ms4w-users at lists.ms4w.com> wrote:
> Hi all,
>
>
>
> I have to configure my mapcache.xml to work with EPSG 32634 but I don't
> know how to calculate the resolutions. Here is my example:
>
> <tileset name="test">
>
> <source>vmap0</source>
>
> <cache>disk</cache>
>
> <grid name="UTM34N">
>
> <metadata>
>
> <title>WGS 84 / UTM zone
> 34N</title>
>
> </metadata>
>
> <extent>166021.4431 0.0000 833978.5569
> 9329005.1825</extent>
>
> <srs>EPSG:32634</srs>
>
> <resolutions>? ? ? ? ? ? ? ? ? ? ? ? ? ?
> ? ? </resolutions>
>
> <units>m</units>
>
> <size>256 256</size>
>
> </grid>
>
> <format>PNG</format>
>
> <metatile>5 5</metatile>
>
> <metabuffer>10</metabuffer>
>
> <expires>3600</expires>
>
> </tileset>
>
>
>
> BR,
>
> Darko
>
> _______________________________________________
> MS4W-Users mailing list
> MS4W-Users at lists.ms4w.com
> http://lists.ms4w.com/mailman/listinfo/ms4w-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ms4w.com/mailman/private/ms4w-users/attachments/20151208/97c6be8b/attachment.html>
More information about the MS4W-Users
mailing list