annotate 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
rev   line source
208
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
1 #!/usr/bin/env python
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
2 #
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
3 # (C) 2011, Intevation GmbH, Stephan Holl <stephan.holl@intevation.de>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
4 #
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
5 #
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
6 # Generate a HTML-Page based on a recursive folder structure of generated
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
7 # mapfiles from MXD2map
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
8 #
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
9 #
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
10 # Usage: generateHTML.py > output.html
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
11
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
12
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
13 import os
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
14
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
15 # this is intended to run in the folder where the generates mapfiles are
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
16 # stored:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
17 rootdir = os.getcwd() + '/map-test-2'
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
18 debug = False
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
19
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
20 # adopt for you needs:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
21 url = 'http://localhost/cgi-bin/mapserv.exe'
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
22 getmap = url + '?Request=GetMap&Service=WMS&Version=1.1.1'
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
23 getmap += '&srs=EPSG:4326&width=800&height=600&format=image/png&styles='
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
24
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
25 def writeHeader():
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
26 print '''<html>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
27 <head>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
28 <title>MXD2map-examples</title>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
29 <style>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
30 body {
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
31 font-family: arial, sans-serif;
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
32 font-size: 12pt;
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
33 }
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
34 </style>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
35 </head>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
36 <body>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
37 <h1>Verfuegbare MXD-Dateien</h1>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
38 '''
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
39
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
40 def writeFooter():
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
41 content = "</body></html>"
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
42 print content
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
43
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
44 def writeLayers(mapfile, layers, extent):
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
45 basename = os.path.basename(mapfile)
217
13f1cf17f620 [mq]: arcpy_image
Stephan Holl <stephan.holl@intevation.de>
parents: 216
diff changeset
46 png = mapfile.replace(".map", "_arcpy.png")
208
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
47 print '''<li>Layer: <strong>%s</strong></li>
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
48 <br>
221
a44d442577ca Fixes correct paths for Browser-output, added target for GROUP-output
Stephan Holl <stephan.holl@intevation.de>
parents: 217
diff changeset
49 <a target="bild" href="file://%s"><img witdth="80" height="60" border="" src="file://%s"></a>
208
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
50 Anzahl der Layer: %s
217
13f1cf17f620 [mq]: arcpy_image
Stephan Holl <stephan.holl@intevation.de>
parents: 216
diff changeset
51 ''' % (basename, png, png, len(layers))
208
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
52 i = 0
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
53 print "<ul>"
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
54 while i < len(layers):
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
55 urlmapfile = url + '?map=' + mapfile
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
56 urlmapfile += '&template=openlayers&mode=browse&layers=' + layers[i]
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
57 gm = getmap + '&map=' + mapfile + '&layers=' + layers[i]
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
58 if extent:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
59 ext = str(extent).strip('[\'\'\\r\\n]')
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
60 gm += '&bbox='+''.join(ext)
224
bef2e9522741 Target of GetMap distinct
Stephan Holl <stephan.holl@intevation.de>
parents: 222
diff changeset
61 print "<li><a target='_new' href='%s'>%s</a> | <a target='_getmap' href='%s'>WMS GetMap</a></li>" % (urlmapfile, layers[i], gm)
208
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
62 i=i+1
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
63 print "</ul>"
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
64
216
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
65 def generateArcImage(mapfile):
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
66 basename = os.path.basename(mapfile)
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
67 mxdfile = mapfile.replace(".map",".mxd")
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
68 output = mapfile.replace(".map", "_arcpy.png")
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
69 if debug:
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
70 print "MXDfile: %s\nOutput: %s " % (mxdfile, output)
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
71
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
72 if not output:
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
73 import arcpy
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
74 mxd = arcpy.mapping.MapDocument(mxdfile)
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
75 df = arcpy.mapping.ListDataFrames(mxd)[0]
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
76 arcpy.mapping.ExportToPNG(mxd, output, df, df_export_width=800,
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
77 df_export_height=600, world_file=True)
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
78 del mxd
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
79
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
80
208
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
81 def writeGroups(mapfile,groups):
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
82 if len(groups) > 1:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
83 print "Anzahl der Gruppen: %s" % len(groups)
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
84 i = 0
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
85 print "<ul>"
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
86 while i < len(groups):
222
316a2b3d4126 added switch for replacing backslashes in win32
Stephan Holl <stephan.holl@intevation.de>
parents: 221
diff changeset
87 if os.name == "nt":
316a2b3d4126 added switch for replacing backslashes in win32
Stephan Holl <stephan.holl@intevation.de>
parents: 221
diff changeset
88 mapfile = mapfile.replace('\\', '/')
208
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
89 urlmapfile = url + '?map=' + mapfile
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
90 urlmapfile += '&template=openlayers&mode=browse&layers=' + groups[i]
221
a44d442577ca Fixes correct paths for Browser-output, added target for GROUP-output
Stephan Holl <stephan.holl@intevation.de>
parents: 217
diff changeset
91 print "<li><a target='_group' href='%s'>%s</a></li>" % (urlmapfile, groups[i])
208
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
92 i=i+1
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
93 print "</ul>"
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
94
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
95 def main():
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
96 writeHeader()
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
97 for root, subFolders, files in os.walk(rootdir):
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
98 for file in files:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
99 f = os.path.join(root, file)
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
100 if os.path.isfile(f):
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
101 basename, extension = os.path.splitext(f)
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
102 if extension.lower() == ".map":
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
103 if "orig" in f:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
104 # do not generate links for -orig.map-files
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
105 continue
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
106 if debug:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
107 print "Bearbeite Dokument %s" % f
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
108 #read file and search for wms_title
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
109 layers = []
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
110 groups = []
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
111 extent = []
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
112 for line in open(f):
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
113 if "wms_title" in line:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
114 #print line
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
115 la = line.strip()[12:].replace('"','')
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
116 if la != "Layers":
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
117 layers.append(la)
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
118 if "GROUP" in line:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
119 gr = line.strip()[6:].replace('"','')
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
120 if gr not in groups:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
121 groups.append(gr)
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
122 if "EXTENT" in line:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
123 ext = line[9:].replace('"','').replace(' ', ',')
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
124 extent.append(ext)
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
125
216
d0acdab62b03 imported patch arcpy-erweiterung
Stephan Holl <stephan.holl@intevation.de>
parents: 208
diff changeset
126 generateArcImage(f)
208
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
127 print "<ul>"
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
128 writeLayers(f, layers, extent)
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
129 print "</ul>"
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
130
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
131 # write groups
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
132 print "<ul>"
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
133 writeGroups(f, groups)
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
134 print "</ul>"
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
135 if debug:
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
136 print "Layer %s hat %s Layer" % (f, len(layers))
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
137 print "Layer %s hat %s Gruppen" % (f, len(groups))
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
138
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
139 writeFooter()
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
140
0c58db91311c * contrib/python/generateHTML.py: New. Script for generating a
Stephan Holl <stephan.holl@intevation.de>
parents:
diff changeset
141 main()
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)