Changeset 388 for trunk/info/info/alkisn/alkisgebaeudenw.php
- Timestamp:
- 06/12/17 13:29:45 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/info/info/alkisn/alkisgebaeudenw.php
r387 r388 8 8 2016-12-05 Array-Behandlung ax_gebaeude.name 9 9 2017-06-08 Validierung Eingabeparameter, Feinkorrekturen 10 2017-06-19 Tool-Tip GebÀudefunktion 10 11 */ 11 12 session_start(); … … 102 103 103 104 // G e b a e u d e 104 $sqlg ="SELECT g.gml_id, g.name, g.bauweise, g.gebaeudefunktion, h.v AS bauweise_beschreibung, u.v AS bezeichner, g.zustand, z.v AS bzustand,105 $sqlg ="SELECT g.gml_id, g.name, g.bauweise, g.gebaeudefunktion, h.v AS bauweise_beschreibung, u.v AS bezeichner, u.d AS gfktd, g.zustand, z.v AS bzustand, 105 106 round(st_area(g.wkb_geometry)::numeric,2) AS gebflae, "; // GEB-Flaeche komplett auch die Fl. ausserhalb des FS 106 107 $sqlg.="round(st_area(ST_Intersection(g.wkb_geometry,f.wkb_geometry))::numeric,2) AS schnittflae, "; // wie viel vom GEB liegt im FS? … … 131 132 echo "\n<tr>\n" 132 133 ."\n\t<td class='head' title='ggf. Gebäudename'>Name</td>" 133 ."\n\t<td class='heads fla' title='Schnitt sfläche'><img src='ico/sortd.png' width='10' height='10' alt='' title='Sortierung (absteigend)'>Fläche</td>"134 ."\n\t<td class='head' title=' Gebäudefläche'> </td>"134 ."\n\t<td class='heads fla' title='Schnittfläche zwischen Flurstück und Gebäude'><img src='ico/sortd.png' width='10' height='10' alt='' title='Sortierung (absteigend)'>Fläche</td>" 135 ."\n\t<td class='head' title='gesamte Gebäudefläche, liegt teilweise auf Nachbar-Flurstück'> </td>" 135 136 ."\n\t<td class='head' title='Gebäudefunktion ist die zum Zeitpunkt der Erhebung vorherrschend funktionale Bedeutung des Gebäudes'>Funktion</td>" 136 137 ."\n\t<td class='head' title='Bauweise ist die Beschreibung der Art der Bauweise'>Bauweise</td>" … … 147 148 // Mehrfachbelegung nur theoretisch. Entklammern reicht. Mal mit und mal ohne "" drum !? 148 149 /* SELECT name FROM ax_gebaeude WHERE NOT name IS NULL AND array_length(name, 1) > 1; */ 149 $gzus=$rowg["zustand"]; 150 $gzustand=$rowg["bzustand"]; 150 $gfktk=htmlentities($rowg["gebaeudefunktion"], ENT_QUOTES, "UTF-8"); // Geb.-Funktion Key 151 $gfktv=htmlentities($rowg["bezeichner"], ENT_QUOTES, "UTF-8"); // Geb.Funktion Value 152 $gfktd=htmlentities($rowg["gfktd"], ENT_QUOTES, "UTF-8"); // GebÀude-Funktion-Description 153 $gzus=htmlentities($rowg["zustand"], ENT_QUOTES, "UTF-8"); 154 $gzustand=htmlentities($rowg["bzustand"], ENT_QUOTES, "UTF-8"); 151 155 152 156 // 3 FÀlle unterscheiden: … … 168 172 169 173 echo "\n<tr>" 170 ."\n\t<td class='".$gstyle."'>"; 174 ."\n\t<td class='".$gstyle."'>"; // Sp. 1 Name 171 175 if ($gnam != "") {echo "<span title='Gebäudename'>".$gnam."</span><br>";} 172 176 echo "\n\t</td>"; 173 177 174 echo "\n\t<td class='fla'>".$f1."</td>" 178 echo "\n\t<td class='fla'>".$f1."</td>" // Sp. 2 175 179 ."\n\t<td class='".$gstyle."'>".$f2."</td>"; // FlÀchenangaben 176 180 177 echo "\n\t<td class='".$gstyle."' >";178 if ($showkey) {echo "<span class='key'>".$ rowg["gebaeudefunktion"]."</span> ";}179 echo $ rowg["bezeichner"]."</td>";181 echo "\n\t<td class='".$gstyle."' title='".$gfktd."'>"; // Sp. 3 Funktion 182 if ($showkey) {echo "<span class='key'>".$gfktk."</span> ";} 183 echo $gfktv."</td>"; 180 184 181 185 echo "\n\t<td class='".$gstyle."'>";
Note: See TracChangeset
for help on using the changeset viewer.