comparison 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
comparison
equal deleted inserted replaced
225:a9a3ce2625a8 226:18cb0b709df8
54 print "<ul>" 54 print "<ul>"
55 while i < len(layers): 55 while i < len(layers):
56 urlmapfile = url + '?map=' + mapfile 56 urlmapfile = url + '?map=' + mapfile
57 urlmapfile += '&template=openlayers&mode=browse&layers=' + layers[i] 57 urlmapfile += '&template=openlayers&mode=browse&layers=' + layers[i]
58 gm = getmap + '&map=' + mapfile + '&layers=' + layers[i] 58 gm = getmap + '&map=' + mapfile + '&layers=' + layers[i]
59 gc = getcaps + '&map=' + mapfile
59 if extent: 60 if extent:
60 ext = str(extent).strip('[\'\'\\r\\n]') 61 ext = str(extent).strip('[\'\'\\r\\n]')
61 gm += '&bbox='+''.join(ext) 62 gm += '&bbox='+''.join(ext)
62 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) 63 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)
63 i=i+1 64 i=i+1
64 print "</ul>" 65 print "</ul>"
65 66
66 def generateArcImage(mapfile): 67 def generateArcImage(mapfile):
67 basename = os.path.basename(mapfile) 68 basename = os.path.basename(mapfile)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)