Re: [mapserver-users] Mapcache - Howto provide additional high DPI tileset?

2017-01-24 Thread Robert Sanson
So we would need to prepare two complete tile sets.

Is there then a way in the Javascript code to switch the WMTS call from the 
256x256 grid to the 512x512 grid if the client browser has a Retina display?

Thanks,
Robert

From: mapserver-users [mailto:mapserver-users-boun...@lists.osgeo.org] On 
Behalf Of thomas bonfort
Sent: Wednesday, 25 January 2017 4:49 a.m.
To: Michael Schulz ; mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] Mapcache - Howto provide additional high DPI 
tileset?

Should be doable, just define a new grid for it:


 
-20037508.3427892480,-20037508.3427892480,20037508.3427892480,20037508.3427892480
EPSG:3857
512 512


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.29858214173896975




--
thomas

On Tue, Jan 24, 2017 at 4:09 PM Michael Schulz 
> wrote:
Dear MapCachers,
I would like to know if anybody had success in using mapcache to provide tiles 
for usage on retina displays? There seems not to be the one default strategy to 
do so, but IIUC the baseline is to provide a bigger tile (512x512 instead of 
256x256) for the some extent.
Now the question is, how to generate with mapcache an additional cache with big 
tiles (512) but can be accessed using identical tile requests? By identical, I 
mean that the xyz numbers stay the same, but a different tileset name is used 
(e.g. basemaps.at does that) or using MapBox's "@2x" 
modifier.
Any ideas or solutions?
Thanks, Michael


--
---
Michael Schulz

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Mapcache - Howto provide additional high DPI tileset?

2017-01-24 Thread thomas bonfort
Should be doable, just define a new grid for it:


 
-20037508.3427892480,-20037508.3427892480,20037508.3427892480,20037508.3427892480
EPSG:3857
512 512


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.29858214173896975




--
thomas

On Tue, Jan 24, 2017 at 4:09 PM Michael Schulz 
wrote:

> Dear MapCachers,
>
> I would like to know if anybody had success in using mapcache to provide
> tiles for usage on retina displays? There seems not to be the one default
> strategy to do so, but IIUC the baseline is to provide a bigger tile
> (512x512 instead of 256x256) for the some extent.
>
> Now the question is, how to generate with mapcache an additional cache
> with big tiles (512) but can be accessed using identical tile requests? By
> identical, I mean that the xyz numbers stay the same, but a different
> tileset name is used (e.g. basemaps.at does that) or using MapBox's "@2x"
> modifier.
>
> Any ideas or solutions?
>
> Thanks, Michael
>
>
> --
> ---
> Michael Schulz
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] Mapcache - Howto provide additional high DPI tileset?

2017-01-24 Thread Michael Schulz
Dear MapCachers,

I would like to know if anybody had success in using mapcache to provide
tiles for usage on retina displays? There seems not to be the one default
strategy to do so, but IIUC the baseline is to provide a bigger tile
(512x512 instead of 256x256) for the some extent.

Now the question is, how to generate with mapcache an additional cache with
big tiles (512) but can be accessed using identical tile requests? By
identical, I mean that the xyz numbers stay the same, but a different
tileset name is used (e.g. basemaps.at does that) or using MapBox's "@2x"
modifier.

Any ideas or solutions?

Thanks, Michael


-- 
---
Michael Schulz
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] Can't seed tiles with Mapcache from a Mapserver Tile Index raster layer

2017-01-24 Thread Rahkonen Jukka (MML)
Hi


If I count right there are about 5000 images in the whole tileindex. I such 
case it is not enough to have overviews on individual images. At small scale 
Mapserver must open very many image files, up till all 5000 for getting the 
tile or metatile that covers the hole area.


I am using a group layer by using some other imagery like Landsat images with 
much bigger native pixel size for small scales. It is also possible to use 
Mapserver itself or GDAL for creating a dataset with fewer files and bigger 
pixels. I prepare our data so that Mapserver does not ever need to open more 
than about 100 images.


I think that if you were using MBTiles as cache you can use Mapcache for 
seeding just the best resolution level and add other resolutions with gdaladdo 
utility directly to the MBTiles database. With other cache types that is not 
possible and I think that Mapcache itself is missing the option to construct 
lower resolution tiles from the already existing better resolution tiles. For 
rendered maps that would be also a rather useless option but for imagery it 
could be useful.


-Jukka Rahkonen-





thomas bonfort wrote:
  Re: [mapserver-users] Can't seed tiles with Mapcache from a Mapserver Tile 
Index raster layer



On Tue, Jan 24, 2017 at 5:42 AM Abrabacabra 
> wrote:

Could that be related to Mapserver choking on the huge tile index?
Yes, definitely. Check that your rasters have overviews.

--
thomas






___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users