comparison contrib/python/generateHTML.py @ 217:13f1cf17f620

[mq]: arcpy_image
author Stephan Holl <stephan.holl@intevation.de>
date Mon, 25 Jul 2011 11:01:53 +0200
parents d0acdab62b03
children a44d442577ca
comparison
equal deleted inserted replaced
216:d0acdab62b03 217:13f1cf17f620
41 content = "</body></html>" 41 content = "</body></html>"
42 print content 42 print content
43 43
44 def writeLayers(mapfile, layers, extent): 44 def writeLayers(mapfile, layers, extent):
45 basename = os.path.basename(mapfile) 45 basename = os.path.basename(mapfile)
46 png = mapfile.replace(".map", "_arcpy.png")
46 print '''<li>Layer: <strong>%s</strong></li> 47 print '''<li>Layer: <strong>%s</strong></li>
47 <br> 48 <br>
49 <a target="bild" href="%s"><img witdth="80" height="60" border="" src="%s"></a>
48 Anzahl der Layer: %s 50 Anzahl der Layer: %s
49 ''' % (basename, len(layers)) 51 ''' % (basename, png, png, len(layers))
50 i = 0 52 i = 0
51 print "<ul>" 53 print "<ul>"
52 while i < len(layers): 54 while i < len(layers):
53 urlmapfile = url + '?map=' + mapfile 55 urlmapfile = url + '?map=' + mapfile
54 urlmapfile += '&template=openlayers&mode=browse&layers=' + layers[i] 56 urlmapfile += '&template=openlayers&mode=browse&layers=' + layers[i]
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)