[mapserver-users] White background in MapCache
Brown, Donald
brownd at usgs.gov
Tue Nov 19 16:03:00 PST 2013
I am having trouble getting rid of the white background (I'd like it to be
transparent) where there is supposed to be 'no data' for the following
service:
http://mrdata.usgs.gov/mapcache/kml/prgeol@WGS84.kml<http://mrdata.usgs.gov/mapcache/kml/sgmc@WGS84.kml>
I tried modifying my mapcache.xml file to say 'mixed' for the format, then
built the tiles using the command:
mapcache_seed -c /mnt/mrt/mapcache/mapcache.xml -t prgeol -g WGS84 -M 8,8
However, this did not seem to work. Any help would be greatly appreciated.
Here is a snippet of my mapcache.xml file:
<?xml version="1.0" encoding="UTF-8"?>
<mapcache>
<metadata>
<title>MRData mapcache service</title>
<abstract>Contains various services for MRData maps</abstract>
</metadata>
<cache name="disk" type="disk">
<base>/mnt/mrt/mapcache</base>
<symlink_blank/>
</cache>
<format name="PNGQ_FAST" type="PNG">
<compression>fast</compression>
<colors>256</colors>
</format>
<format name="jpeg" type="JPEG">
<quality>75</quality>
<photometric>RGB</photometric>
</format>
<format name="mixed" type="MIXED">
<opaque>jpeg</opaque>
<transparent>PNGQ_FAST</transparent>
</format>
<source name="prgeol" type="wms">
<getmap>
<params>
<FORMAT>image/png</FORMAT>
<MAP_IMAGETYPE>png</MAP_IMAGETYPE>
<LAYERS>geol,fault,faultn</LAYERS>
<MAP>/mnt/mrt/map-files/pr.map</MAP>
</params>
</getmap>
<http>
<url>http://mrdata.usgs.gov/cgi-bin/mapserv</url>
</http>
</source>
<tileset name="prgeol">
<source>prgeol</source>
<cache>disk</cache>
<grid>WGS84</grid>
<grid>g</grid>
<grid>GoogleMapsCompatible</grid>
<format>mixed</format>
<metatile>5 5</metatile>
<expires>86400</expires>
</tileset>
Thanks!
--
Don Brown
GIS Specialist
Cherokee Services Group, LLC (CSG)
Contractor to the U.S. Geological Survey
Fort Collins Science Center
2150 Centre Ave. Bldg. C
Fort Collins, CO 80526
(970) 226-9155
*brownd at usgs.gov* <brownd at usgs.gov>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20131119/0f0b29bc/attachment.htm>
More information about the MapServer-users
mailing list