[mapserver-users] (no subject)

Yoann CHARIEAU ycharieau at sma-netagis.fr
Mon Oct 11 00:56:49 PDT 2021


Did you check permissions on your /tmp/mapcache directory ?
It should be writeable by your http server user (usually www-data).

Yoann

----- Mail original -----
De: "Steve Lime" <sdlime at gmail.com>
À: "Atlanta Geek" <atlantageek at gmail.com>
Cc: "mapserver-users" <mapserver-users at lists.osgeo.org>
Envoyé: Jeudi 7 Octobre 2021 14:57:13
Objet: Re: [mapserver-users] (no subject)

I've not used a similar setup but it seems like there's no need to create tiles if you're passing WMS calls through to another WMS server. Do you get tiles if you make tiled service requests? 

On Tue, Oct 5, 2021 at 1:52 PM Atlanta Geek < [ mailto:atlantageek at gmail.com | atlantageek at gmail.com ] > wrote: 



Im attempting to configure mapcache. 
I assume that this is covered in this mailing list as well. Mapcache is returning images of the map for me but the cache files are not being written. Its strange because I can use the seeding command with the same xml file and its populating the expected directory but when I go through the mapcache script its not writing to that cache directory. 

Any guidance would be appreciated. 

The URL Im testing with is this. 
[ http://192.168.112.225/mapcache?service=WMS&request=GetMap&layers=default&styles=&format=image%2Fpng&transparent=true&version=1.1.1&width=2048&height=2048&srs=EPSG%3A3857&bbox=-10018754.171394622,0,0,10018754.171394628 | http://192.168.112.225/mapcache?service=WMS&request=GetMap&layers=default&styles=&format=image%2Fpng&transparent=true&version=1.1.1&width=2048&height=2048&srs=EPSG%3A3857&bbox=-10018754.171394622,0,0,10018754.171394628 ] 



mapcache.xml is as follows: 
<mapcache mode="combined_mirror"> 
<cache name="disk" type="disk"> 
<base>/tmp/mapcache</base> 
<symlink_blank/> 
</cache> 
<format name="png" type="PNG"> 
<compression>fast</compression> 
<colors>256</colors> 
</format> 
<source name="vmap0" type="wms"> 
<getmap> 
<params> 
<FORMAT>image/jpeg</FORMAT> 
<LAYERS>default</LAYERS> 
<map>/usr/lib/cgi-bin/osm-bw.map</map> 
<transparent>true</transparent> 
</params> 
</getmap> 
<http> 
<url> [ http://192.168.112.225/cgi-bin/mapserv | http://192.168.112.225/cgi-bin/mapserv ] ?</url> 
</http> 
</source> 
<tileset name="mirror"> 
<source>vmap0</source> 
<cache>disk</cache> 
<grid>WGS84</grid> 
<grid>g</grid> 
<format>png</format> 
<expires>3600</expires> 
</tileset> 
<default_format>png</default_format> 

<service type="wms" enabled="true"> 
<format allow_client_override="true/false">png</format> 
<full_wms>assemble</full_wms> 
<resample_mode>bilinear</resample_mode> 
<maxsize>4096</maxsize> 
<forwarding_rule name="catch all"> 
<http> 
<url> [ http://192.168.112.225/cgi-bin/mapserv?transparent=true&map=/usr/lib/cgi-bin/osm-bw.map | http://192.168.112.225/cgi-bin/mapserv?transparent=true&map=/usr/lib/cgi-bin/osm-bw.map ] </url> 
</http> 
</forwarding_rule> 
</service> 
<service type="wmts" enabled="true"/> 
<service type="tms" enabled="true"/> 
<service type="kml" enabled="true"/> 
<service type="gmaps" enabled="true"/> 
<service type="ve" enabled="true"/> 
<service type="demo" enabled="true"/> 
<errors>report</errors> 
<lock_dir>/tmp</lock_dir> 
<log_level>debug</log_level> 
</mapcache> 
-- 
[ http://www.atlantageek.com/ | http://www.atlantageek.com ] 
_______________________________________________ 
MapServer-users mailing list 
[ mailto:MapServer-users at lists.osgeo.org | MapServer-users at lists.osgeo.org ] 
[ https://lists.osgeo.org/mailman/listinfo/mapserver-users | https://lists.osgeo.org/mailman/listinfo/mapserver-users ] 




_______________________________________________ 
MapServer-users mailing list 
MapServer-users at lists.osgeo.org 
https://lists.osgeo.org/mailman/listinfo/mapserver-users 




More information about the MapServer-users mailing list