WMS capabilities from file?

Allan Doyle adoyle at EOGEO.ORG
Mon Jan 23 10:11:14 EST 2006


Bart,

Try this:

 1. Set up your configuration the way you want it.

 2. Request a Capabilities from the WMS

 3. Put that file on your web server in such a way that it is at a
different URL but that the URL still looks like a Capabilities URL.

 4. Advertise that new URL.

All subsequent access to that URL is by file access, but it will
contain the proper GET addressing so that clients will be able to
access the WMS

Alternate version of this:

 1. Repeat 1-3

 2. Set up an httpd rewrite rule that catches the Capabilities URL and
redirects it to the file based one. This way any clients that are not
able to access the GetMap from a different address than the
GetCapabilities will still work. (This method makes it easier to catch
variations on the request. You can use a regular expression that
matches GetCapabilities but ignores other things)

Then you can set up a cron job to update the static file using wget or
curl periodically.

	Allan


On 1/23/06, Eijnden, B. van den (Bart) <b.vdeijnden at agi.rws.minvenw.nl> wrote:
> Hi list,
>
> we all know a WMS GetCapabilities response can take a long time to be
> generated, which can be problematic for client applications working
> real-time on the GetCapabilities interface. Therefore a lot of vendors
> (ESRI, Ionic) store the WMS capabilities response on file.
>
> I think it would be a good idea for Mapserver to support this as well. It
> could be as simple as adding a new METADATA at the WEB level called
> wms_capabilities_file (or maybe also include the WMS version in the name of
> the metadata?). If this exists, Mapserver will return the file, if it does
> not exist, it will generate dynamically.
>
> What do others think?
>
> Best regards,
> Bart
>
>
> Disclaimer
> ************************************************************************
> Aan dit bericht kunnen geen rechten worden ontleend. Dit bericht is
> uitsluitend bestemd voor de geadresseerde. Als u dit bericht per abuis
> hebt ontvangen, wordt u verzocht het te vernietigen en de afzender te
> informeren. Wij adviseren u om bij twijfel over de juistheid of de
> volledigheid van de mail contact met afzender op te nemen.
>
> This message shall not constitute any rights or obligations.
> This message is intended solely for the addressee.
> If you have received this message in error, please delete it and
> notify the sender immediately. When in doubt whether this message
> is correct or complete, please contact the sender.
> ************************************************************************
>



More information about the mapserver-users mailing list