changeset 225:a9a3ce2625a8

Added Link to GetCapabilities
author Stephan Holl <stephan.holl@intevation.de>
date Wed, 27 Jul 2011 10:13:40 +0200
parents bef2e9522741
children 18cb0b709df8
files contrib/python/generateHTML.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python/generateHTML.py	Wed Jul 27 09:46:36 2011 +0200
+++ b/contrib/python/generateHTML.py	Wed Jul 27 10:13:40 2011 +0200
@@ -21,6 +21,7 @@
 url = 'http://localhost/cgi-bin/mapserv.exe'
 getmap  = url + '?Request=GetMap&Service=WMS&Version=1.1.1'
 getmap += '&srs=EPSG:4326&width=800&height=600&format=image/png&styles='
+getcaps = url + '?Request=GetCapabilities&Service=WMS&Version=1.1.1'
 
 def writeHeader():
     print '''<html>
@@ -58,7 +59,7 @@
         if extent:
             ext = str(extent).strip('[\'\'\\r\\n]')
             gm += '&bbox='+''.join(ext)
-        print "<li><a target='_new' href='%s'>%s</a> | <a target='_getmap' href='%s'>WMS GetMap</a></li>" % (urlmapfile, layers[i], gm) 
+        print "<li><a target='_new' href='%s'>%s</a> | <a target='_getmap' href='%s'>WMS GetMap</a> | <a target='_getcaps' href='%s'>WMS GetCapabilities Version 1.1.1</a></li>" % (urlmapfile, layers[i], gm, getcaps) 
         i=i+1
     print "</ul>"
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)