[mapserver-users] Mapcache
Thomas Bonfort
thomas.bonfort at gmail.com
Wed Jan 29 05:55:25 PST 2014
I'm sorry, I don't really understand your question... mapcache splits
the area given in your grid extent into square tiles of the given
resolutions, and asks the wms to render them. Areas outside the grid
extent will not be stored. Any "distortion" is not created by mapcache,
who is only requesting images to the wms with the extents/srs of each
individual tile.
--
thomas
On 29/01/2014 14:44, TDS wrote:
> Hello,
>
> e.g. the extents for 25XXX and 31XXX are restricted. Outside of this
> area, even if it is a little piece of it, it is not drawn.
> And the resolutions will make a distorted image (OpenLayers, QuantumGIS,
> etc.). In real WMS from mapserv there is no problem if outside extents
> or with zoom levels.
>
> What I need is:
> a) Draw grid with given SRS even it doesn't fit in area.
> b) What are the resolutions for these SRS (maybe world wide)?
>
> I've read that e.g. mapserv calculate resolutions itself, but mapcache
> do. Where can i get or calculate these resolutions?
>
> MfG M. Martin
> ------------------------------------------------------------------------
> mailto:tds at tds-net.de
> ------------------------------------------------------------------------
> 1+1=10
> You have a question? - 42 or RTFM.
> Am 29.01.2014 14:33, schrieb Thomas Bonfort:
>> Please be a bit more specific as to what "aren't working" means
>>
>> --
>> thomas
>>
>> On 29/01/2014 09:07, TDS wrote:
>>> Hello,
>>>
>>> I have some problems with MapCache projections and grids. First my XML:
>>>
>>> <?xml version="1.0" encoding="UTF-8"?>
>>> <mapcache>
>>> [...]
>>> <grid name="EPSG25831">
>>> <metadata>
>>> <title>ETRS89 / UTM zone 31N</title>
>>> </metadata>
>>> <title>OSM Tile Cache Service</title>
>>> <srs>EPSG:25831</srs>
>>> <extent>238379.2278 4265559.3497 761620.7722
>>> 6914547.3835</extent>
>>> <size>256 256</size>
>>> <units>m</units>
>>> <resolutions>
>>> 2183915.093862179 1091957.546931089 545978.7734655447 272989.3867327723
>>> 136494.6933663862 68247.34668319309
>>> 34123.67334159654 17061.83667079827 8530.918335399136 4265.459167699568
>>> 2132.729583849784 1066.364791924892
>>> </resolutions>
>>> </grid>
>>> <grid name="EPSG25832">
>>> <metadata>
>>> <title>ETRS89 / UTM zone 32N</title>
>>> </metadata>
>>> <title>OSM Tile Cache Service</title>
>>> <srs>EPSG:25832</srs>
>>> <extent>265948.8191 6421521.2254 677786.3629
>>> 7288831.7014</extent>
>>> <size>256 256</size>
>>> <units>m</units>
>>> <resolutions>
>>> 2183915.093862179 1091957.546931089 545978.7734655447 272989.3867327723
>>> 136494.6933663862 68247.34668319309
>>> 34123.67334159654 17061.83667079827 8530.918335399136 4265.459167699568
>>> 2132.729583849784 1066.364791924892
>>> </resolutions>
>>> </grid>
>>> <grid name="EPSG25833">
>>> <metadata>
>>> <title>ETRS89 / UTM zone 33N</title>
>>> </metadata>
>>> <title>OSM Tile Cache Service</title>
>>> <srs>EPSG:25833</srs>
>>> <extent>227879.8880 3932632.6543 1044484.3835
>>> 8893131.0281</extent>
>>> <size>256 256</size>
>>> <units>m</units>
>>> <resolutions>
>>> 2183915.093862179 1091957.546931089 545978.7734655447 272989.3867327723
>>> 136494.6933663862 68247.34668319309
>>> 34123.67334159654 17061.83667079827 8530.918335399136 4265.459167699568
>>> 2132.729583849784 1066.364791924892
>>> </resolutions>
>>> </grid>
>>> <grid name="EPSG31466">
>>> <metadata>
>>> <title>DHDN / 3-degree Gauss-Kruger zone
>>> 2</title>
>>> </metadata>
>>> <title>OSM Tile Cache Service</title>
>>> <srs>EPSG:31466</srs>
>>> <extent>2490547.1867 5440321.7879 2609576.6008
>>> 5958700.0208</extent>
>>> <size>256 256</size>
>>> <units>m</units>
>>> <resolutions>
>>> 2183915.093862179 1091957.546931089 545978.7734655447 272989.3867327723
>>> 136494.6933663862 68247.34668319309
>>> 34123.67334159654 17061.83667079827 8530.918335399136 4265.459167699568
>>> 2132.729583849784 1066.364791924892
>>> </resolutions>
>>> </grid>
>>> <grid name="EPSG31467">
>>> <metadata>
>>> <title>DHDN / 3-degree Gauss-Kruger zone
>>> 3</title>
>>> </metadata>
>>> <title>OSM Tile Cache Service</title>
>>> <srs>EPSG:31467</srs>
>>> <extent>3386564.9400 5237917.9109 3613579.2251
>>> 6104500.7393</extent>
>>> <size>256 256</size>
>>> <units>m</units>
>>> <resolutions>
>>> 2183915.093862179 1091957.546931089 545978.7734655447 272989.3867327723
>>> 136494.6933663862 68247.34668319309
>>> 34123.67334159654 17061.83667079827 8530.918335399136 4265.459167699568
>>> 2132.729583849784 1066.364791924892
>>> </resolutions>
>>> </grid>
>>> <grid name="EPSG31468">
>>> <metadata>
>>> <title>DHDN / 3-degree Gauss-Kruger zone
>>> 4</title>
>>> </metadata>
>>> <title>OSM Tile Cache Service</title>
>>> <srs>EPSG:31468</srs>
>>> <extent>4386596.4101 5237914.5325 4613610.5843
>>> 6104496.9694</extent>
>>> <size>256 256</size>
>>> <units>m</units>
>>> <resolutions>
>>> 2183915.093862179 1091957.546931089 545978.7734655447 272989.3867327723
>>> 136494.6933663862 68247.34668319309
>>> 34123.67334159654 17061.83667079827 8530.918335399136 4265.459167699568
>>> 2132.729583849784 1066.364791924892
>>> </resolutions>
>>> </grid>
>>> <grid name="EPSG31469">
>>> <metadata>
>>> <title>DHDN / 3-degree Gauss-Kruger zone
>>> 5</title>
>>> </metadata>
>>> <title>OSM Tile Cache Service</title>
>>> <srs>EPSG:31469</srs>
>>> <extent>5386627.6162 5237909.9506 5613641.6401
>>> 6104491.8566</extent>
>>> <size>256 256</size>
>>> <units>m</units>
>>> <resolutions>
>>> 2183915.093862179 1091957.546931089 545978.7734655447 272989.3867327723
>>> 136494.6933663862 68247.34668319309
>>> 34123.67334159654 17061.83667079827 8530.918335399136 4265.459167699568
>>> 2132.729583849784 1066.364791924892
>>> </resolutions>
>>> </grid>
>>> [...]
>>> </mapcache>
>>>
>>> Resolutions for "g" are: 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
>>>
>>> So what are the resolutions for other grids? Mine aren't working (maybe
>>> of combination resolutions and extents?) :-(
>>>
>>>
>>>
>>> _______________________________________________
>>> mapserver-users mailing list
>>> mapserver-users at lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>>>
>> _______________________________________________
>> mapserver-users mailing list
>> mapserver-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
More information about the MapServer-users
mailing list