Re: Mapcache - Is it possible to have two tilesets share a single cache at particular zoom levels?

Steve Lime <[email protected]> Thu, 24 Oct 2019 16:50:52 -0500
Newsgroups gmane.comp.gis.mapserver.user
Message-ID <CAMrKZ9-c8nypNigL9cXSXu0ZpnmEROEUjWnL3mSdHDXGOUwWeA@mail.gmail.com>
--===============0255555074862857167==
Content-Type: multipart/alternative; boundary="000000000000a058eb0595af07f6"

--000000000000a058eb0595af07f6
Content-Type: text/plain; charset="UTF-8"

You'd still need to configure the political map tileset not to generate
tiles in the symlinked folders but to serve tiles from those folders - I
don't think that's possible. IMHO it's better to configure your political
map tiles to only be available for a specific range of zoom levels and
advertise that explicitly.

On Thu, Oct 24, 2019 at 3:34 PM Mark Volz <[email protected]> wrote:

> Andreas,
>
> Good idea.  It looks like Windows can create symlinks.  I suppose I could
> try symlinking the cache for levels 5-11.  Do you know if I would need to
> create hard or soft links to do this?   Also, I would like to make sure our
> backup software does not try to backup the actual data twice...
> Reference:
> https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/
>
> Thanks!
>
> Sincerely,
> Mark Volz, GISP
> Lyon County GIS Coordinator
> 504 Fairgrounds Rd
> Marshall, MN 56258
> Ph:  (507) 532-8218
> http://lyonco.org/
> http://geomoose.lyonco.org/
>
>
> >What about symlinking the level directories?
>
>
> > -----Original Message-----
> > From: mapserver-users [mailto:mapserver-users-
> > [email protected]] On Behalf Of Mark Volz
> > Sent: Wednesday, October 23, 2019 4:12 PM
> > To: [email protected]
> > Subject: [mapserver-users] Mapcache - Is it possible to have two
> > tilesets share a single cache at particular zoom levels?
> >
> > 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 map as the user zooms into the map.  The second tileset
> > displays air photos at 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:
> >
> > *         Zoom level 0-4:  Use the cache from the "political map
> > cache"
> >
> > *         Zoom level 5-11: Use the cache from the "air photo
> > cache"
> >
> > Air Photo Basemap
> >
> > *         Zoom level 0-11:  Use the cache from the "air photo
> > cache"
> >
> > Result:
> >
> > *         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.
> >
> >
> >
> > 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

--000000000000a058eb0595af07f6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">You&#39;d still need to configure the political map tilese=
t not to generate tiles in the symlinked folders but to serve tiles from th=
ose folders - I don&#39;t think that&#39;s possible. IMHO it&#39;s better t=
o configure your political map tiles to only be available for a specific ra=
nge of zoom levels and advertise that explicitly.=C2=A0</div><br><div class=
=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Thu, Oct 24, 2019=
 at 3:34 PM Mark Volz &lt;<a href=3D"mailto:[email protected]">MarkVol=
[email protected]</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" s=
tyle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);pad=
ding-left:1ex">Andreas,<br>
<br>
Good idea.=C2=A0 It looks like Windows can create symlinks.=C2=A0 I suppose=
 I could try symlinking the cache for levels 5-11.=C2=A0 Do you know if I w=
ould need to create hard or soft links to do this?=C2=A0 =C2=A0Also, I woul=
d like to make sure our backup software does not try to backup the actual d=
ata twice...<br>
Reference:=C2=A0 <a href=3D"https://www.howtogeek.com/howto/16226/complete-=
guide-to-symbolic-links-symlinks-on-windows-or-linux/" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.howtogeek.com/howto/16226/complete-guide-to-sy=
mbolic-links-symlinks-on-windows-or-linux/</a><br>
<br>
Thanks!<br>
<br>
Sincerely,<br>
Mark Volz, GISP<br>
Lyon County GIS Coordinator<br>
504 Fairgrounds Rd<br>
Marshall, MN 56258<br>
Ph:=C2=A0 (507) 532-8218<br>
<a href=3D"http://lyonco.org/" rel=3D"noreferrer" target=3D"_blank">http://=
lyonco.org/</a><br>
<a href=3D"http://geomoose.lyonco.org/" rel=3D"noreferrer" target=3D"_blank=
">http://geomoose.lyonco.org/</a><br>
<br>
<br>
&gt;What about symlinking the level directories?<br>
<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: mapserver-users [mailto:<a href=3D"mailto:mapserver-users-" targ=
et=3D"_blank">mapserver-users-</a> <br>
&gt; <a href=3D"mailto:[email protected]" target=3D"_blank">bounces@l=
ists.osgeo.org</a>] On Behalf Of Mark Volz<br>
&gt; Sent: Wednesday, October 23, 2019 4:12 PM<br>
&gt; To: <a href=3D"mailto:[email protected]" target=3D"_blan=
k">[email protected]</a><br>
&gt; Subject: [mapserver-users] Mapcache - Is it possible to have two <br>
&gt; tilesets share a single cache at particular zoom levels?<br>
&gt;<br>
&gt; Hello,<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I have two similar tilesets configured in Mapcache.=C2=A0 One of the <=
br>
&gt; tilesets displays a political map at small scales, then changes to an =
<br>
&gt; air photo map as the user zooms into the map.=C2=A0 The second tileset=
 <br>
&gt; displays air photos at every zoom level.=C2=A0 It would be useful if t=
hese <br>
&gt; tilesets could share a single cache for zoom levels 5-11.=C2=A0 This w=
ay we <br>
&gt; could save a significant amount of space on the server.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Example #1:<br>
&gt;<br>
&gt; Political and Air Photo Basemap:<br>
&gt;<br>
&gt; *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Zoom level 0-4:=C2=A0 Use the cache=
 from the &quot;political map<br>
&gt; cache&quot;<br>
&gt;<br>
&gt; *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Zoom level 5-11: Use the cache from=
 the &quot;air photo<br>
&gt; cache&quot;<br>
&gt;<br>
&gt; Air Photo Basemap<br>
&gt;<br>
&gt; *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Zoom level 0-11:=C2=A0 Use the cach=
e from the &quot;air photo<br>
&gt; cache&quot;<br>
&gt;<br>
&gt; Result:<br>
&gt;<br>
&gt; *=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Any tiles at level 5-11, which will=
 take up the majority<br>
&gt; of the space on the sever will not need to be duplicated between the <=
br>
&gt; two tilesets.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Please let me know if it is possible to share caches between different=
 <br>
&gt; tilesets.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Thanks!<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Sincerely,<br>
&gt;<br>
&gt; Mark Volz, GISP<br>
&gt;<br>
&gt; Lyon County GIS Coordinator<br>
&gt;<br>
&gt;<br>
_______________________________________________<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>

--000000000000a058eb0595af07f6--

--===============0255555074862857167==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbWFwc2VydmVy
LXVzZXJzIG1haWxpbmcgbGlzdAptYXBzZXJ2ZXItdXNlcnNAbGlzdHMub3NnZW8ub3JnCmh0dHBz
Oi8vbGlzdHMub3NnZW8ub3JnL21haWxtYW4vbGlzdGluZm8vbWFwc2VydmVyLXVzZXJz

--===============0255555074862857167==--