[mapserver-users] mapcache config troubles, "Tile parameter not set"
Eichner, Andreas - SID
Andreas.Eichner at sid.sachsen.de
Wed Apr 29 00:23:38 PDT 2015
I guess you're using an older version which doesn't check the "type" attribute and defaults to WMS. The "mode=tile" parameter is part of your URL and not build by MapCache. Everything else is an ordinary WMS request for a 5x5 metatile with 10px buffer: 5*256 + 2*10 = 1300.
So simly omit the mode parameter from the URL and let MapCache do it's WMS request. It will then itself respond using the requested tile service interface.
HTH
Von: mapserver-users-bounces at lists.osgeo.org [mapserver-users-bounces at lists.osgeo.org]" im Auftrag von "Hal Mueller [hal at mobilegeographics.com]
Gesendet: Mittwoch, 29. April 2015 05:47
An: mapserver-users at lists.osgeo.org
Betreff: [mapserver-users] mapcache config troubles, "Tile parameter not set"
That request generates the following internal request, from Mapcache to Mapserver. It’s pretty close; the layers are right, but not the SERVICE, BBOX, WIDTH,
and HEIGHT parameters.
GET /cgi-bin/mapserv?mode=tile&VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&STYLES=&BBOX=-20135347.738994,-7611905.024751,-7416226.232341,5107216.481902&WIDTH=1300&HEIGHT=1300&FORMAT=image/png&SRS=EPSG:3857&MAP=/data/web/www/mapserver/sites.map&LAYERS=property_pt%20property_poly
Mapcache.xml:
<source name="hpsites" type="tms">
<getmap>
<params>
<FORMAT>image/png</FORMAT>
<MAP>/data/web/www/mapserver/sites.map</MAP>
<LAYERS>property_pt%20property_poly</LAYERS>
</params>
</getmap>
<http>
<url>http://a.historypointer.com/cgi-bin/mapserv?mode=tile&</url>
</http>
</source>
More information about the MapServer-users
mailing list