[mapserver-users] Mapcache tileset only shows top level in KML / Google Earth

John D. Evans john.evans at gst.com
Mon May 27 21:30:29 PDT 2013


Hello,

I'm making my first mapcache tileset for some satellite image products. 
It sort of works ... but the KML super-overlay doesn't work as expected 
in Google Earth. When I load it, it only displays if I'm zoomed very far 
out (so that the entire globe is the size of a golf ball on my screen): 
if I zoom in, the image disappears.

The KML file is at
      http://lab.gst.com/mapcache/kml/CSPP_Cloud_Phase_EDR@WGS84.kml
and my mapcache.xml is below. Do you see anything obviously misconfigured?

(I'm using mod_mapcache from the Ubuntu libmapcache 1.0.0-3 package; 
with Apache 2.2 and Mapserver 6.2.1; on 64-bit Ubuntu 12.04. Mapserver 
works fine, and reports no errors that I can see. My client is Google 
Earth 7.0.3. Unfortunately, I don't know where to look for mapcache 
error messages.)

Thanks for taking a look,

   - John D. Evans
     GST, Inc / Greenbelt, MD

Below is my mapcache.xml file (actually an excerpt of it:
the real one has more tilesets and sources).

<mapcache>
    <metadata>
       <title>my mapcache service</title>
       <abstract>woot! this is a service abstract!</abstract>
    </metadata>

    <cache name="disk" type="disk">
       <base>/tmp</base>
       <symlink_blank/>
    </cache>

    <format name="PNG_BEST" type ="PNG">
       <compression>best</compression>
    </format>
    <format name="PNG_FAST" type ="PNG">
       <compression>fast</compression>
    </format>

      <source name="CSPP_CloudPhase" type="wms">
       <http>
          <url>http://localhost/cgi-bin/mapserv?</url>
       </http>
       <getmap>
          <params>
             <FORMAT>image/png</FORMAT>
             <LAYERS>iicmocp_daily</LAYERS>
             <MAP>/path/to/mapfile.map</MAP>
          </params>
       </getmap>
    </source>

    <tileset name="CSPP_Cloud_Phase_EDR">
       <metadata>
          <title>VIIRS Cloud Phase from NASA GSFC DRL</title>
          <abstract>Detailed description goes here</abstract>
       </metadata>
       <source>CSPP_CloudPhase</source>
       <cache>disk</cache>
       <format>PNG</format>
       <grid>WGS84</grid>
       <metatile>2 2</metatile>
       <expires>3600</expires>
       <auto_expire>3600</auto_expire>
       <!-- <metabuffer>10</metabuffer> -->
    </tileset>

    <default_format>PNG_FAST</default_format>

    <service type="wms" enabled="true">
       <full_wms>assemble</full_wms>
       <resample_mode>bilinear</resample_mode>
       <format>PNG_FAST</format>
       <!-- <maxsize>4096</maxsize> -->
    </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"/>

    <lock_dir>/tmp</lock_dir>
    <errors>report</errors>
    <threaded_fetching>true</threaded_fetching>

</mapcache>



More information about the MapServer-users mailing list