[MXD2map-commits] bsh.mxd-konverter: r227:58d8ac962683
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Jul 28 11:13:56 CEST 2011
details: bsh.mxd-konverter/rev/58d8ac962683
changeset: 227:58d8ac962683
user: Stephan Holl <stephan.holl at intevation.de>
date: Wed Jul 27 13:45:21 2011 +0200
description:
Replaced position of GetCaps-Link
diffstat:
contrib/python/generateHTML.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 18cb0b709df8 -r 58d8ac962683 contrib/python/generateHTML.py
--- a/contrib/python/generateHTML.py Wed Jul 27 10:18:26 2011 +0200
+++ b/contrib/python/generateHTML.py Wed Jul 27 13:45:21 2011 +0200
@@ -45,22 +45,22 @@
def writeLayers(mapfile, layers, extent):
basename = os.path.basename(mapfile)
png = mapfile.replace(".map", "_arcpy.png")
- print '''<li>Layer: <strong>%s</strong></li>
+ gc = getcaps + '&map=' + mapfile
+ print '''<li>Layer: <strong>%s</strong> | <a target='_getcaps' href='%s'>GetCapabilities</a></li>
<br>
<a target="bild" href="file://%s"><img witdth="80" height="60" border="" src="file://%s"></a>
Anzahl der Layer: %s
-''' % (basename, png, png, len(layers))
+''' % (basename, gc, png, png, len(layers))
i = 0
print "<ul>"
while i < len(layers):
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, gc)
+ print "<li><a target='_new' href='%s'>%s</a> | <a target='_getmap' href='%s'>WMS GetMap</a></li>" % (urlmapfile, layers[i], gm)
i=i+1
print "</ul>"
More information about the MXD2map-commits
mailing list