comparison contrib/python/generateHTML.py @ 224:bef2e9522741

Target of GetMap distinct
author Stephan Holl <stephan.holl@intevation.de>
date Wed, 27 Jul 2011 09:46:36 +0200
parents 316a2b3d4126
children a9a3ce2625a8
comparison
equal deleted inserted replaced
223:e412fad185ad 224:bef2e9522741
56 urlmapfile += '&template=openlayers&mode=browse&layers=' + layers[i] 56 urlmapfile += '&template=openlayers&mode=browse&layers=' + layers[i]
57 gm = getmap + '&map=' + mapfile + '&layers=' + layers[i] 57 gm = getmap + '&map=' + mapfile + '&layers=' + layers[i]
58 if extent: 58 if extent:
59 ext = str(extent).strip('[\'\'\\r\\n]') 59 ext = str(extent).strip('[\'\'\\r\\n]')
60 gm += '&bbox='+''.join(ext) 60 gm += '&bbox='+''.join(ext)
61 print "<li><a target='_new' href='%s'>%s</a> | <a target='_new' href='%s'>WMS GetMap</a></li>" % (urlmapfile, layers[i], gm) 61 print "<li><a target='_new' href='%s'>%s</a> | <a target='_getmap' href='%s'>WMS GetMap</a></li>" % (urlmapfile, layers[i], gm)
62 i=i+1 62 i=i+1
63 print "</ul>" 63 print "</ul>"
64 64
65 def generateArcImage(mapfile): 65 def generateArcImage(mapfile):
66 basename = os.path.basename(mapfile) 66 basename = os.path.basename(mapfile)
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)