[mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles)

thomas bonfort thomas.bonfort at gmail.com
Tue Jun 12 03:26:53 PDT 2012


(please stay on list, you answers can help others facing the same issue)

On Mon, Jun 11, 2012 at 9:26 PM, Mark Volz <MarkVolz at co.lyon.mn.us> wrote:
> Thomas,
>
> It turns out that most of my problems were when <full_wms>assemble</full_wms> was set...  apparently it defaults to jpeg when mapcache has to assemble, which was causing problems with my png caches.  I experimented with changing the default to PNG.
>
> I think my resolutions are set (somewhat) appropriately, for testing I am using resolutions of 1024 512 256 128 64 32 16 8 4 2 1.0 and .5.  when I am browsing at one of these resolutions mapcache is very fast.  It just seems that mapcache is slow when I am using a resolution that is slightly off of one of these.  Anyways, I just turned  forward on <full_wms>forward</full_wms>, which seems to be okay.

Slightly off is expected to be a bit slower, but not very noticeably
so.  Please to try again with some higher resolutions configured (the
disk space overhead for those will be negligeable), mapcache
assembling should be at least as fast as a normal wms server if it is
allowed to hit a correctly configured grid resolution. For reference,
the classical mercator grid has 7 higher resolutions than what you
have configured, which will help for requests covering approximately
state/country scaled getmaps.
Can you also provide the full url for a getmap request that exhibits
this behavior, along with timings comparing "assemble" and "forward"
modes.

regards,
thomas



>
> Thank you for all your help!
>
>
> Mark Volz
> GIS Specialist
>
> -----Original Message-----
> From: thomas bonfort [mailto:thomas.bonfort at gmail.com]
> Sent: Monday, June 11, 2012 9:47 AM
> To: Mark Volz
> Cc: mapserver-users at lists.osgeo.org
> Subject: Re: [mapserver-users] mapcache - transparency, surrounding area color, performance when assembling images (pink tiles)
>
> 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