[mapserver-users] Mapcache Question

Stephen Woodbridge woodbri at swoodbridge.com
Fri Oct 10 05:16:34 PDT 2014


On 10/10/2014 3:23 AM, Vladimir wrote:
> Hello ALL!
>
> I dig into MapCache now and my modest comprehension is:
>
> 1) MapCache uses Mapserv for seeding tiles or more exactly -
> sends WMS request to Mapserv for getting a map:
>
> <source>....</source> section in a mapcache.xml file
>
> 2) Ol uses MapCache for rendering that tiles or more exactly -
> sends WMS(or other) request to MapCache:
>
> new ol.layer.Tile({
> source: new ol.source.TileWMS(({
> url: 'myhost/mapcache/?',
> params: {'LAYERS': 'mytileset'},
> serverType: 'mapserver'
> }))
> })
> where
> /mapcache/ is path to a mapcache.xml(aliased through Apache),
> 'mytileset' is <tileset name="mytileset"> section in a mapcache.xml file
>
> 3)The Seeding and the rendering needs other configuration of
> mapcache.xml file(it is needs clarification).
>
> 4)The seeding may be through:
> mapcache_seed -c mapcache.xml -t mytileset-g mygrid
> or
> during a certain map area is requested by client (it is needs
> clarification).

Yes, this seems correct. I will not that you CAN NOT use mapcache_seed 
AND web requests TOGETHER as they do not use compatible locking 
mechanisms. So either use mapcache_seed before you deploy or use the web 
requests to dynamically seed the cache. You can use mapcache_seed to do 
a partial pre seeding (like rectangles around major cities) then change 
over to web request which will generate tiles as needed in the remaining 
areas.

-Steve W

> Thanks for any correction.
> Best regards.
>
>
>
>
> Wed, 1 Oct 2014 19:33:12 -0400 от Travis Kirstine
> <tkirstine at firstbasesolutions.com>:
>
>     Tim,
>
>     MapCache Is simply a tiling server.  It will take images from a
>     source and store them in a cache.  These tiles are exposed as
>     services to clients - WMTS, WMS, TMS etc...  MapServer on the other
>     hand will read source data (GIS files / database) and render images
>     based on rules defined in the mapfile.  These images are used as the
>     source for MapCache.
>
>     On Wed, Oct 1, 2014 at 5:58 PM, Tim Nasman <tnasman at rollingleaf.com
>     <//e.mail.ru/compose/?mailto=mailto%3atnasman at rollingleaf.com>> wrote:
>
>         I have read through the Mapcache documentation but I feel like I
>         am missing some basic elements to how it works.
>
>           I am using Mapcache to display a mbtile that I have created.
>         Now from what I understand, my mapcache .xml will list out the
>         parameters of the mbtile and then I add a layer within my
>         mapfile referencing the .xml which I should then be able to to
>         use as WMTS using openlayers. I just haven't grasped how
>         mapcache and mapserv work together so any clarification would be
>         helpful. Thanks for your time.
>
>         --
>         Timothy Nasman
>         Data Analyst | Programmer
>         Rolling Leaf Inc.
>         [V] : 910.274.1436
>         [E] : tnasman at rollingleaf.com
>         <//e.mail.ru/compose/?mailto=mailto%3ajochs at rollingleaf.com>
>
>
>         _______________________________________________
>         mapserver-users mailing list
>         mapserver-users at lists.osgeo.org
>         <//e.mail.ru/compose/?mailto=mailto%3amapserver%2dusers at lists.osgeo.org>
>         http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
>
>     --
>     FBS Logo 	
>
>     *Travis Kirstine*, Web Development Supervisor
>     *t *905‑477‑3600/ x /301 | *m *905‑534‑4798 |
>     tkirstine at firstbasesolution.com
>     <//e.mail.ru/compose/?mailto=mailto%3atkirstine at firstbasesolution.com>
>
>     *First Base Solutions Inc.*
>     140 Renfrew Drive, Suite 100 | Markham | Ontario | L3R 6B3
>     *t* 905‑477‑3600 | *f* 905‑477‑0892 | www.firstbasesolutions.com
>     <http://www.firstbasesolutions.com>
>
>     _______________________________________________
>     mapserver-users mailing list
>     mapserver-users at lists.osgeo.org
>     </compose?To=mapserver%2dusers 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