Re: Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels?
Steve Lime <[email protected]> Wed, 23 Oct 2019 10:31:19 -0500
| Newsgroups | gmane.comp.gis.mapserver.user |
|---|---|
| Message-ID | <CAMrKZ99ntz2nUHkuwD8zbdX7ucp+4M7mZJx3xF07f9gYCKgUGA@mail.gmail.com> |
--===============1240320092540244980== Content-Type: multipart/alternative; boundary="0000000000006b69c10595959ce7" --0000000000006b69c10595959ce7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable That seems more like a client configuration issue to me. That is, you'd have the two caches (air photos and political) but then configure the client to swap at different zoom levels. For example, with Leaflet you could simply set maxZoom/minZoom map attributes. Here's an example that uses a map (1 tileset) at small scales and then transitions to aerial photos w/overlays (2 tilesets) as the user zooms in: http://maps1.dnr.state.mn.us/test/tiles/switch.html Presumably you can tell MapCache to only generate tiles over certain zoom ranges for each tileset - thus reducing disk space. Perhaps I'm miss interpreting your question though. --Steve On Wed, Oct 23, 2019 at 9:29 AM Mark Volz <[email protected]> wrote: > Hello, > > > > I have two similar tilesets configured in Mapcache. One of the tilesets > displays a political map at small scales, then changes to an air photo ma= p > as the user zooms into the map. The second tileset displays air photos a= t > every zoom level. It would be useful if these tilesets could share a > single cache for zoom levels 5-11. This way we could save a significant > amount of space on the server. > > > > Example #1: > > Political and Air Photo Basemap: > > =C2=B7 Zoom level 0-4: Use the cache from the =E2=80=9Cpolitical= map cache=E2=80=9D > > =C2=B7 Zoom level 5-11: Use the cache from the =E2=80=9Cair photo= cache=E2=80=9D > > Air Photo Basemap > > =C2=B7 Zoom level 0-11: Use the cache from the =E2=80=9Cair phot= o cache=E2=80=9D > > Result: > > =C2=B7 Any tiles at level 5-11, which will take up the majority o= f the > space on the sever will not need to be duplicated between the two tileset= s. > > > > Please let me know if it is possible to share caches between different > tilesets. > > > > Thanks! > > > > Sincerely, > > *Mark Volz, GISP* > > *Lyon County GIS Coordinator* > > > _______________________________________________ > mapserver-users mailing list > [email protected] > https://lists.osgeo.org/mailman/listinfo/mapserver-users --0000000000006b69c10595959ce7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">That seems more like a client configuration issue to me. T= hat is, you'd have the two caches (air photos and political) but then c= onfigure the client to swap at different zoom levels. For example, with Lea= flet you could simply set maxZoom/minZoom map attributes. Here's an exa= mple that uses a map (1 tileset) at small scales and then transitions to ae= rial photos w/overlays (2 tilesets) as the user zooms in:<div><br></div><di= v>=C2=A0=C2=A0 <a href=3D"http://maps1.dnr.state.mn.us/test/tiles/switch.html">http://maps= 1.dnr.state.mn.us/test/tiles/switch.html</a>=C2=A0=C2=A0<div><br></div><div= >Presumably you can tell MapCache to only generate tiles over certain zoom = ranges for each tileset - thus reducing disk space. Perhaps I'm miss in= terpreting=C2=A0your question though. --Steve</div></div></div><br><div cla= ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Wed, Oct 23, 20= 19 at 9:29 AM Mark Volz <<a href=3D"mailto:[email protected]">MarkV= [email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_quote"= style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);p= adding-left:1ex"> <div lang=3D"EN-US"> <div class=3D"gmail-m_8097837459471667281WordSection1"> <p class=3D"MsoNormal">Hello,<u></u><u></u></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> <p class=3D"MsoNormal">I have two similar tilesets configured in Mapcache.= =C2=A0 One of the tilesets displays a political map at small scales, then c= hanges to an air photo map as the user zooms into the map.=C2=A0 The second= tileset displays air photos at every zoom level.=C2=A0 It would be useful if these tilesets could share a single cache for zoom l= evels 5-11.=C2=A0 This way we could save a significant amount of space on t= he server.<u></u><u></u></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> <p class=3D"MsoNormal">Example #1:<u></u><u></u></p> <p class=3D"MsoNormal">Political and Air Photo Basemap:<u></u><u></u></p> <p class=3D"gmail-m_8097837459471667281MsoListParagraph"><u></u><span style= =3D"font-family:Symbol"><span>=C2=B7<span style=3D"font:7pt "Times New= Roman"">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </span></span></span><u></u>Zoom level 0-4:=C2=A0 Use the cache from the = =E2=80=9Cpolitical map cache=E2=80=9D<u></u><u></u></p> <p class=3D"gmail-m_8097837459471667281MsoListParagraph"><u></u><span style= =3D"font-family:Symbol"><span>=C2=B7<span style=3D"font:7pt "Times New= Roman"">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </span></span></span><u></u>Zoom level 5-11: Use the cache from the =E2=80= =9Cair photo cache=E2=80=9D<u></u><u></u></p> <p class=3D"MsoNormal">Air Photo Basemap<u></u><u></u></p> <p class=3D"gmail-m_8097837459471667281MsoListParagraph"><u></u><span style= =3D"font-family:Symbol"><span>=C2=B7<span style=3D"font:7pt "Times New= Roman"">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </span></span></span><u></u>Zoom level 0-11:=C2=A0 Use the cache from the = =E2=80=9Cair photo cache=E2=80=9D<u></u><u></u></p> <p class=3D"MsoNormal">Result:<u></u><u></u></p> <p class=3D"gmail-m_8097837459471667281MsoListParagraph"><u></u><span style= =3D"font-family:Symbol"><span>=C2=B7<span style=3D"font:7pt "Times New= Roman"">=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 </span></span></span><u></u>Any tiles at level 5-11, which will take up the= majority of the space on the sever will not need to be duplicated between = the two tilesets.<u></u><u></u></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> <p class=3D"MsoNormal">Please let me know if it is possible to share caches= between different tilesets.<u></u><u></u></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> <p class=3D"MsoNormal">Thanks!<u></u><u></u></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> <p class=3D"MsoNormal"><span style=3D"color:rgb(31,73,125)">Sincerely,<u></= u><u></u></span></p> <p class=3D"MsoNormal"><b><span style=3D"color:rgb(31,73,125)">Mark Volz, G= ISP</span></b><b><span style=3D"font-size:12pt;color:rgb(31,73,125)"><u></u= ><u></u></span></b></p> <p class=3D"MsoNormal"><b><span style=3D"color:rgb(31,73,125)">Lyon County = GIS Coordinator<u></u><u></u></span></b></p> <p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p> </div> </div> _______________________________________________<br> mapserver-users mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">mapser= [email protected]</a><br> <a href=3D"https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel=3D= "noreferrer" target=3D"_blank">https://lists.osgeo.org/mailman/listinfo/map= server-users</a></blockquote></div> --0000000000006b69c10595959ce7-- --===============1240320092540244980== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbWFwc2VydmVy LXVzZXJzIG1haWxpbmcgbGlzdAptYXBzZXJ2ZXItdXNlcnNAbGlzdHMub3NnZW8ub3JnCmh0dHBz Oi8vbGlzdHMub3NnZW8ub3JnL21haWxtYW4vbGlzdGluZm8vbWFwc2VydmVyLXVzZXJz --===============1240320092540244980==--