[MXD2map-commits] bsh.mxd-konverter: r225:a9a3ce2625a8

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Jul 28 11:13:56 CEST 2011


details:   bsh.mxd-konverter/rev/a9a3ce2625a8

changeset: 225:a9a3ce2625a8

user:      Stephan Holl <stephan.holl at intevation.de>

date:      Wed Jul 27 10:13:40 2011 +0200

description:
Added Link to GetCapabilities


diffstat:

 contrib/python/generateHTML.py |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r bef2e9522741 -r a9a3ce2625a8 contrib/python/generateHTML.py
--- 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>"
 


More information about the MXD2map-commits mailing list