<div dir="ltr">Hi Tim,<div><br></div><div>I get the idea you are looking for the big picture of how caching can fit into what you want to do. I agree with Dan that you should look into MapCache.</div><div><br></div><div>Basically if you have MapCache set up in front of your MapServer, all requests past first through MapCache, which first checks if the request already exists in the cache, and if so, it shortcuts the process and never needs to talk to MapServer, as it can serve the tile directly from the cache. If an area has never been requested before, the request is transferred to MapServer, which does it's thing, and passes it's result back to MapCache for storage for future requests. This model is a "cache on demand" situation, which is different than "cache in advance", where you might generate all the tiles possible in advance. Caching in advance is also possible, but usually requires a larger amount of disk space to be available than aching on demand does.</div><div><br></div><div>From your MapServer map file perspective, Your map files are set up as you normally would. MapCache is an Apache module that must be enabled in Apache in order for you to use it. You configure it using a Configuration XML file where you point it at the MapServer services that you would like to cache.</div><div><br></div><div>From your front end user perspective, all that is different is the base URL that you send them to for the cached services (MapCache base URL vs raw MapServer URL). So usage for the user is totally the same as non-cache usage. In my experience caching does improve performance, especially if your user interface is making tiled requests, rather than single image WMS requests. </div><div><br></div><div>A few other advantages of using MapCache: </div><div><br></div><div>- MapCache will allow requests of multiple tiling schemes from the same cache - e.g. TMS, Google Maps, WMTS </div><div>- you can choose to cache an irregular subset of your imagery - for example a watershed basin - and save on the disk space of all the pixels outside of your basin</div><div><br></div><div>I'm sure there are more, but these are the ones that I have found most handy.</div><div><br></div><div>Tanya</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 3, 2016 at 8:58 AM, Eli Adam <span dir="ltr"><<a href="mailto:eadam@co.lincoln.or.us" target="_blank">eadam@co.lincoln.or.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've found that with well optimized tiffs (single YCBCR JPEG<br>
compressed tiff in the correct projection with overviews), there is<br>
essentially no time or processing spent accessing and producing aerial<br>
views. What time is spent delivering imagery to the client is usually<br>
network transfer time which will be the same in cached and non-cached<br>
cases.<br>
<br>
The command line tool, shp2img, can be used to give timing information<br>
from your mapfile.<br>
<br>
Have you concluded that caching (i.e. file access and processing<br>
times) would indeed speed up your application?<br>
<br>
MapServer or GDAL lists might be better for aerial imagery<br>
optimization, serving, and caching discussions. Searching the<br>
archives on nabble might turn up past discussions too.<br>
<br>
Best regards, Eli<br>
<div class="HOEnZb"><div class="h5"><br>
On Thu, Nov 3, 2016 at 8:18 AM, Dan Little <<a href="mailto:theduckylittle@gmail.com">theduckylittle@gmail.com</a>> wrote:<br>
> Have you looked at mapcache? <a href="http://mapserver.org/mapcache/" rel="noreferrer" target="_blank">http://mapserver.org/mapcache/</a><br>
><br>
> Brought to you by the good folks at MapServer.<br>
><br>
> On Thu, Nov 3, 2016 at 9:50 AM, Tim Hennig <<a href="mailto:timhbellevue@gmail.com">timhbellevue@gmail.com</a>> wrote:<br>
>> HI Everyone,<br>
>><br>
>> I was wondering if someone can direct me to good information regarding<br>
>> caching aerial photos in MapServer. I know this is not a GeoMoose question<br>
>> pertaining to the application, but I would like to start researching this<br>
>> and possibly implement this sometime in the next month.<br>
>><br>
>> I’ve looked at the MapServer website, but I’m trying to figure out the<br>
>> process. Can use ArcGIS cache tiles and tie it into MapServer? Is there an<br>
>> add-on QGIS to cache? Etc.?<br>
>><br>
>> I also thought about using REST services from the county that I reside in,<br>
>> but the caching is not as detailed at a municipal level.<br>
>><br>
>> Right now the GeoMoose is using TIF images.<br>
>><br>
>> Tim Hennig<br>
>> Village of Bellevue<br>
>><br>
>><br>
>><br>
>><br>
>> ______________________________<wbr>_________________<br>
>> Geomoose-users mailing list<br>
>> <a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/geomoose-<wbr>users</a><br>
> ______________________________<wbr>_________________<br>
> Geomoose-users mailing list<br>
> <a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/geomoose-<wbr>users</a><br>
______________________________<wbr>_________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/geomoose-<wbr>users</a></div></div></blockquote></div><br></div>