[Geomoose-users] Geomoose and mapcache

Brent Fraser bfraser at geoanalytic.com
Fri Dec 9 09:38:59 PST 2016


Hey Jim,

   Thanks for that.  I was close to getting it right; the part I had 
missed was the

	<param name="layername" value="imagery at g512"/>

Once I added

	<param name="layername" value="AltaLIS_250k at g"/>

to my map-source:
     <map-source name="AltaLIS_250k" type="tms">
         <layer name="AltaLIS_250k"/>
         <param name="layername" value="AltaLIS_250k at g"/>
<url>http://localhost/mapcache/tms/</url>
     </map-source>

it was all good!

   Here's a test for all you GeoMoosers:  Point to place in our GeoMoose 
doc where a TMS map-source is described.  Hmm, opportunity...

And for those struggling with mapcache, here's my mapcache.xml:

<?xml version="1.0" encoding="UTF-8"?>
<mapcache>

    <!--============== Cache Storage Locations: ==============-->
    <cache name="disk" type="disk">
       <base>C:/ms4w/tmp/ms_tmp/cache</base>
       <!--<symlink_blank/>-->
    </cache>

    <!--============== Source URLs for data: ==============-->
    <source name="AltaLIS_250k" type="wms">
       <getmap>
           <params>
<map>/ms4w/apps/geomoose2/maps/OpenDataAreas/AltaLIS_250k/AltaLIS_250k.map</map>
             <FORMAT>image/png</FORMAT>
             <LAYERS>AltaLIS_250k</LAYERS>
             <SRS>EPSG:3857</SRS>
          </params>
       </getmap>
       <http>
<url>http://localhost/cgi-bin/mapserv.exe</url>
       </http>
    </source>

    <!--============== Tilesets: ==============-->
    <tileset name="AltaLIS_250k">
       <source>AltaLIS_250k</source>
       <cache>disk</cache>
       <grid>g</grid>
       <format>PNG</format>
       <metatile>5 5</metatile>
       <metabuffer>10</metabuffer>
       <expires>3600</expires>
    </tileset>

    <!--============== Services: ==============-->
    <service type="tms"   enabled="true"/>

    <!--==============  ==============-->
    <default_format>JPEG</default_format>
    <errors>report</errors>
<lock_dir>C:/ms4w/tmp/ms_tmp/cache</lock_dir>

</mapcache>


Best Regards,
Brent Fraser

On 12/9/2016 10:01 AM, Jim Klassen wrote:
> This is an example from probably 2011-2012.  Source WMS is just a normal
> MapServer layer.  It is imagery so no worries about the metatiles to
> attempt to get labels to work right.  I defined my own grid because I
> found 512x512 tiles were more efficient than the 256x256 default which
> required too many round trips to the server to fetch enough tiles to
> fill a larger screen.
>




More information about the Geomoose-users mailing list