[mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles)
thomas bonfort
thomas.bonfort at gmail.com
Mon Jun 11 07:46:37 PDT 2012
On Mon, Jun 11, 2012 at 4:32 PM, Mark Volz <MarkVolz at co.lyon.mn.us> wrote:
> Hello,
>
> First, I am having trouble figuring out how to get transparency to work in
> mapcache when using a Mapserver/WMS source. Does anyone have an example of
> how to store a transparent mapcache with a Mapserver wms source?
make the tileset reference a png format, not a jpeg one.
>
> Next, The color of my cache is fine, however the surrounding area outside
> of the extent of the cache is black. Can that be changed to white, or
> transparent?
same as previously, configure the wms service create png not jpeg
<service type="wms" enabled="true">
...
<format>PNG</format>
</service>
>
> Third, Mapcache seems really slow when it needs to assemble images. I am
> getting plenty of pink screens, and the response time is usually greater
> than 5 seconds. Mapcache is much faster when I use
> <full_wms>forward</full_wms>, so I know the problem is not the source wms.
> Does anyone have an idea as to why the performance is poor when assembling
> images?
I suspect you have defined a <grid> who's resolutions aren't of the
same order of magnitude as the resolution of the getmap requests, i.e.
when creating the result image, mapcache has to decompress and
resample a very high number of tile images. Try adding a couple of
higher resolution entries to the beginning of your <resolutions>
array.
--
thomas
>
> Thank You
>
> Mark Volz
> GIS Specialist
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list