[362] | 1 | <?php |
---|
| 2 | /* alkisinlaybaurecht.php - Inlay fuer Template: Baurecht |
---|
| 3 | ALKIS-Buchauskunft, Kommunales Rechenzentrum Minden-Ravensberg/Lippe (Lemgo). |
---|
| 4 | Ähnlich alkisbaurecht, aber nur Basisdaten, kein Footer und keine Flurstücks-Verschneidung. |
---|
| 5 | |
---|
| 6 | Version: |
---|
| 7 | 2016-02-24 Version fuer norGIS-ALKIS-Import |
---|
| 8 | */ |
---|
| 9 | session_start(); |
---|
| 10 | $cntget = extract($_GET); |
---|
| 11 | require_once("alkis_conf_location.php"); |
---|
| 12 | if ($auth == "mapbender") {require_once($mapbender);} |
---|
| 13 | ?> |
---|
| 14 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
| 15 | <html> |
---|
| 16 | <head> |
---|
| 17 | <meta name="author" content="b600352" > |
---|
| 18 | <meta http-equiv="cache-control" content="no-cache"> |
---|
| 19 | <meta http-equiv="pragma" content="no-cache"> |
---|
| 20 | <meta http-equiv="expires" content="0"> |
---|
| 21 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
| 22 | <title>ALKIS Bau-, Raum- oder Bodenordnungsrecht</title> |
---|
| 23 | <link rel="stylesheet" type="text/css" href="alkisauszug.css"> |
---|
| 24 | <link rel="shortcut icon" type="image/x-icon" href="ico/Gericht.ico"> |
---|
| 25 | <script type="text/javascript"> |
---|
| 26 | function imFenster(dieURL) { |
---|
| 27 | var link = encodeURI(dieURL); |
---|
| 28 | window.open(link,'','left=30,top=30,width=680,height=800,resizable=yes,menubar=no,toolbar=no,location=no,status=no,scrollbars=yes'); |
---|
| 29 | } |
---|
| 30 | </script> |
---|
| 31 | </script> |
---|
| 32 | </head> |
---|
| 33 | <body> |
---|
| 34 | |
---|
| 35 | <?php |
---|
| 36 | $con = pg_connect("host=".$dbhost." port=" .$dbport." dbname=".$dbname." user=".$dbuser." password=".$dbpass); |
---|
| 37 | if (!$con) echo "<p class='err'>Fehler beim Verbinden der DB</p>\n"; |
---|
| 38 | |
---|
| 39 | $sql ="SELECT r.ogc_fid, r.name, r.stelle, r.bezeichnung AS rechtbez, a.v AS adfbez, d.bezeichnung AS stellbez, round(st_area(r.wkb_geometry)::numeric,0) AS flae |
---|
| 40 | FROM ax_bauraumoderbodenordnungsrecht r |
---|
| 41 | LEFT JOIN alkis_wertearten a ON cast(r.artderfestlegung AS character varying)=a.k AND a.element='ax_bauraumoderbodenordnungsrecht' AND a.bezeichnung='artderfestlegung' |
---|
| 42 | LEFT JOIN ax_dienststelle d ON r.land=d.land AND r.stelle=d.stelle WHERE r.gml_id= $1 ;"; |
---|
| 43 | |
---|
| 44 | $v = array($gmlid); |
---|
| 45 | $res = pg_prepare("", $sql); |
---|
| 46 | $res = pg_execute("", $v); |
---|
| 47 | |
---|
| 48 | if (!$res) { |
---|
| 49 | echo "\n<p class='err'>Fehler bei Baurecht.</p>\n"; |
---|
| 50 | if ($debug > 2) {echo "<p class='err'>SQL=<br>".$sql."<br>$1 = ".$gmlid."</p>\n";} |
---|
| 51 | } |
---|
| 52 | echo "\n<h2><img src='ico/Gericht.png' width='16' height='16' alt=''> Bau-, Raum- oder Bodenordnungsrecht</h2>\n"; |
---|
| 53 | |
---|
| 54 | if ($row = pg_fetch_array($res)) { |
---|
| 55 | echo "\n<table>" |
---|
| 56 | ."\n<tr>" |
---|
| 57 | ."\n\t<td class='li'>Art der Festlegung:</td>\n\t<td>" |
---|
| 58 | ."<span class='wichtig'>".$row["adfbez"]."</span></td>" |
---|
| 59 | ."\n</tr>"; |
---|
| 60 | $enam=$row["name"]; |
---|
| 61 | if ($enam != "") { |
---|
| 62 | echo "\n<tr>" |
---|
| 63 | ."\n\t<td class='li'>Eigenname des Gebietes:</td>\n\t<td>".$enam."</td>" |
---|
| 64 | ."\n</tr>"; |
---|
| 65 | } |
---|
| 66 | echo "\n<tr>" |
---|
| 67 | ."\n\t<td class='li'>Verfahrensnummer:</td>\n\t<td>".$row["rechtbez"]."</td>" |
---|
| 68 | ."\n</tr>"; |
---|
| 69 | $stell=$row["stelle"]; |
---|
| 70 | if ($stell != "") { |
---|
| 71 | echo "\n<tr>" |
---|
| 72 | ."\n\t<td class='li'>Dienststelle:</td>\n\t<td>".$row["stellbez"]."</td>" |
---|
| 73 | ."\n</tr>"; |
---|
| 74 | } |
---|
| 75 | echo "\n<tr>" |
---|
| 76 | ."\n\t<td class='li'>Fläche:</td>"; |
---|
| 77 | $flae=number_format($row["flae"],0,",",".")." m²"; |
---|
| 78 | echo "\n\t<td>".$flae."</td>" |
---|
| 79 | ."\n</tr>" |
---|
| 80 | ."\n</table>"; |
---|
| 81 | } else { |
---|
| 82 | echo "\n<p class='err'>Fehler! Kein Treffer bei gml_id=".$gmlid."</p>"; |
---|
| 83 | } |
---|
| 84 | |
---|
| 85 | echo "\n<p class='nwlink'>" |
---|
| 86 | ."\n\t<a href='javascript:imFenster(\"alkisbaurecht.php?gkz=".$gkz."&gmlid=".$gmlid."\")' " |
---|
| 87 | ."' title='Bau-, Raum- oder Bodenordnungsrecht'>Weitere Auskunft <img src='ico/Gericht.png' width='16' height='16' alt=''></a>" |
---|
| 88 | ."\n</p>"; |
---|
| 89 | |
---|
| 90 | ?> |
---|
| 91 | |
---|
| 92 | </body> |
---|
| 93 | </html> |
---|