diff contrib/python/generateHTML.py @ 226:18cb0b709df8

Added missing map=-Parameter to GetCaps
author Stephan Holl <stephan.holl@intevation.de>
date Wed, 27 Jul 2011 10:18:26 +0200
parents a9a3ce2625a8
children 58d8ac962683
line wrap: on
line diff
--- a/contrib/python/generateHTML.py	Wed Jul 27 10:13:40 2011 +0200
+++ b/contrib/python/generateHTML.py	Wed Jul 27 10:18:26 2011 +0200
@@ -56,10 +56,11 @@
         urlmapfile  = url + '?map=' + mapfile
         urlmapfile += '&template=openlayers&mode=browse&layers=' + layers[i]
         gm  = getmap + '&map=' + mapfile + '&layers=' + layers[i]
+	gc = getcaps + '&map=' + mapfile
         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> | <a target='_getcaps' href='%s'>WMS GetCapabilities Version 1.1.1</a></li>" % (urlmapfile, layers[i], gm, getcaps) 
+        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, gc) 
         i=i+1
     print "</ul>"
 
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)