[mapserver-users] mapcache support for virtual service endpoints

jrumbolt cankorusa at gmail.com
Thu Mar 6 11:20:37 PST 2014


Hi All,

Mapserver allows for a wms endpoint to based on the supplied mapfile.
http://localhost/cgi-bin/mapserv?map=map1.map  is a different service than
http://localhost/cgi-bin/mapserv?map=map2.map. Get capabilites on the first
example will show only the layers in the first map file and the get
capabilites on the second one will only show the layers in it's map file.

Is there a way to configure mapcache so that something like below could be
it's own service where the get capabilites will only show that tileset
name(s)?  Something like http://localhost/mapcache/virtual1/wmts perhaps. I
want to dynamically provision a large number of wmts layers that I don't
want to end up a single wmts instance with a humongous getcaps xml file. All
of the virtual services could use the base configuration of the mapcache.xml
file.

     <source name="3ab76763-b7a8-4113-a844-9f18e0a60b08-src" type="wms"
virtual="virtual1">
        ...
        <http>
            <url>http://127.0.0.1/cgi-bin/mapserv?map=map1.map</url>
        </http>
    </source>
    
    <tileset name="3ab76763-b7a8-4113-a844-9f18e0a60b08">
        <source>3ab76763-b7a8-4113-a844-9f18e0a60b08-src</source>
        ...
    </tileset>

<source name="8719bfa1-5a34-4b58-b658-37a89e962bdd-src" type="wms"
virtual="virtual1">
        ...
        <http>
            <url>http://127.0.0.1/cgi-bin/mapserv?map=map1.map</url>
        </http>
    </source>
    
    <tileset name="8719bfa1-5a34-4b58-b658-37a89e962bdd">
        <source>8719bfa1-5a34-4b58-b658-37a89e962bdd-src</source>
        ...
    </tileset>


<source name="c23f6b81-aaa2-4567-b85c-2984108ae697-src" type="wms"
virtual="virtual2">
        ...
        <http>
            <url>http://127.0.0.1/cgi-bin/mapserv?map=map2.map</url>
        </http>
    </source>
    
    <tileset name="c23f6b81-aaa2-4567-b85c-2984108ae697">
        <source>c23f6b81-aaa2-4567-b85c-2984108ae697-src</source>
        ...
    </tileset>



Any idea would be appreciated.

Cheers,

Jerry



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/mapcache-support-for-virtual-service-endpoints-tp5108001.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list