[mapserver-users] Mapcache - merge multiple source in one tileset?

Travis Kirstine tkirstine at firstbasesolutions.com
Wed Jun 22 12:26:53 PDT 2016


The danger with this method is that under high loads you can exceed the maxclients in apache resulting in a deadlock

________________________________
From: mapserver-users <mapserver-users-bounces at lists.osgeo.org> on behalf of Michael Schulz <mandschulz at googlemail.com>
Sent: Wednesday, June 22, 2016 3:05 PM
To: Travis Kirstine
Cc: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Mapcache - merge multiple source in one tileset?

Hi,

thanks for this idea. If I understand correctly, this would mean creating two source tilesets and then generate a third one, where I call mapcache wms requesting these two layers.

I'll give that a try. Cheers, Michael


2016-06-22 20:34 GMT+02:00 Travis Kirstine <traviskirstine at gmail.com<mailto:traviskirstine at gmail.com>>:
This is done configuring mapcache as a WMS source and calling the layers you would like to merge.

    <source name="mosaic_wms" type="wms">
      <getmap>
         <params>
            <format>mixed</format>
            <layers>foo,bar</layers>
            <transparent>true</transparent>
         </params>
      </getmap>
      <http>
         <url>http://localhost/mapcache/service</url>
      </http>
    </source>

    <tileset name="mosaic">
      <source>mosaic_wms</source>
      <cache>memcache</cache>
      <grid>gmaps</grid>
      <format>mixed</format>
      <auto_expire>604800</auto_expire>
    </tileset>

In this example foo and bar are the individual tilesets to be merged


On 16 June 2016 at 09:10, Michael Schulz <mandschulz at googlemail.com<mailto:mandschulz at googlemail.com>> wrote:
Dear Mapcachers,

the documentation of mapcache mentions the possibility to merge "multiple tiles into a single image". I wonder if this means a vertical merging (stacking) of tiles into one output tile?

This would be exactly what I'm looking for, but so far I couldn't find a hint how this could be done. It would require, I guess, to use multiple sources for one tileset. Is that possible?

Thanks, Michael

--
-----------------------------------------------------------
Michael Schulz



_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
http://lists.osgeo.org/mailman/listinfo/mapserver-users




--
-----------------------------------------------------------
Michael Schulz


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20160622/88b709ed/attachment.htm>


More information about the MapServer-users mailing list