[mapserver-users] mapcache
John Callahan
john.callahan at udel.edu
Tue Feb 7 13:41:54 PST 2012
Thanks for the help but I think I'm misunderstanding mapcache at a more
basic level.
What is the mapcachealias? In the apache httpd.conf file (using the latest
MS4W), there is
MapCacheAlias /mapcache "C:/ms4w/apps/mapcache/mapcache.xml"
How does that relate to my own mapservices? What changes do I need to
make to have them cached? My mapservices typically look like
http://servername/myservice?LAYERS=layer1,layer2,...&REQUEST=GetMap&SERVICE=WMS&..
..
Something else that seems strange is when looking at the demo (
http://servername/mapcache/dem/wms), it makes available additional layers
based on entries in the current mapcache.xml file. When I try to select my
own service through the demo interface, I see that it makes a GetMap
request with LAYERS = tileset name. Does the name I define for the tileset
in mapcache.xml have to be specific to my map service? or any special
requirements?
Thanks for your help.
- John
On Wed, Feb 1, 2012 at 6:56 AM, thomas bonfort <thomas.bonfort at gmail.com>wrote:
> On Thu, Jan 26, 2012 at 19:30, John Callahan <john.callahan at udel.edu>
> wrote:
> > I'm giving mapcache a try but with no luck. Well, some luck. The module
> > loads fine and the demo (vmap0, http://127.0.0.1/mapcache/demo/wms) also
> > works fine. I see the tiles being generated on disk. Great. However,
> the
> > problem comes in with my own data/services. A few questions may help me
> > determine the problem.
> >
> > - in the source element, how do you define multiple layers? Comma
> separated
> > or separate <layers> entries?
>
> <layers>layer1,layer2</layers>
>
> >
> > - in the tileset element, can you have multiple grid entries? It doesn't
> > seem like it from reading the documentation but the sample tileset shows
> > both the "g" and "WGS84" grids.
> which doc part does not show this?
> http://www.mapserver.org/trunk/mapcache/config.html#tileset
>
> >
> > - for cache type attributes, what are the possible values? The docs show
> > several possibilities (disk, sqllite, memcache) but the sample shows
> > type="tiff" which is not listed on the doc page. Can other file
> extensions
> > be used here?
> http://www.mapserver.org/trunk/mapcache/caches.html
>
> >
> > - when I define a FORMAT with name and type, how does that get used? I
> see
> > that is called in the tileset but how does that relate to the image type
> > under getmap/params/format?
>
> The format is used when recompressing individual tiles after having
> cut a larger metatile. It is also used when combining multiple tiles
> into a single image for a getmap request. If you want to force a
> specific format to be sent to the source wms server when creating a
> tile, you can add a <format>foobar</format> to your source definition
> (at the same level as the <layers> parameter). Both formats don't have
> to be equivalent, it is actually a good idea to request the images in
> png from the source wms server even when using a jpeg format for the
> the tileset, as this will avoid a double jpeg compression (once on the
> wms server, once on the mapcache server) when storing an individual
> tile to the caches.
>
> regards,
> thomas
>
> >
> >
> > The doc page I am referring to is
> > at http://www.mapserver.org/trunk/mapcache/config.html. I'm sure I'll
> have
> > other questions as I work my way through. Thanks for this awesome
> addition
> > to Mapserver!
> >
> > - John
> >
> > ***********************************************
> > John Callahan, Research Scientist
> > Delaware Geological Survey, University of Delaware
> > URL: http://www.dgs.udel.edu
> > *************************************************
> >
> >
> > _______________________________________________
> > mapserver-users mailing list
> > mapserver-users at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/mapserver-users
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120207/5b9d85bd/attachment.htm>
More information about the MapServer-users
mailing list