Changeset 352
- Timestamp:
- 03/10/15 17:59:48 (9 years ago)
- Location:
- trunk/import
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/nutzungsart_definition.sql
r346 r352 16 16 -- Stand 17 17 18 -- 2012-02-10 PostNAS 0 7, Umbenennung18 -- 2012-02-10 PostNAS 0.7, Umbenennung 19 19 -- 2013-11-15 In nutzung_class.class können NULL-Werte auftreten. 20 20 -- 2013-11-26 NULL wird durch Zahl "0" ersetzt, "NOT NULL" wieder aktivieren 21 21 -- 2014-08-26 erweiterte gml_id (wie in den primÀren Tabellen) 22 22 -- 2014-11-25 Version geaendert auf 0.8, EPSG Ãbergabe in Tabelle Nutzung 23 -- 2015-03-10 Massenhaft "ST_CurvePolygon" in "nutzung". 24 -- Quick 'n dirty: EinschrÀnkung des geometry-Typ löschen. 25 23 26 24 27 SET client_encoding = 'UTF-8'; … … 76 79 SELECT AddGeometryColumn('nutzung','wkb_geometry',:alkis_epsg,'POLYGON',2); 77 80 -- Vereinzelt auch vorkommende MULTIPOLYGON 81 -- 2015-03-10: Massenhaft "ST_CurvePolygon" ! 82 83 -- Quick 'n dirty: 84 ALTER TABLE nutzung DROP CONSTRAINT enforce_geotype_wkb_geometry; 85 78 86 79 87 -- 'class' ist nur innerhalb einer Gruppe ein sinvoller Index -
trunk/import/nutzungsart_laden.sql
r298 r352 22 22 -- Fehlende Werte aus konvertierten Daten ergÀnzen. Wenn dies in der Praxis wirklich 23 23 -- vorkommt, sollte das Lade-Script "nutzungsart_metadaten.sql" ergÀnzt werden. 24 24 -- 2015-03-10 Korrektur: bei ax_TagebauGrubeSteinbruch ist nutz_id = 5 25 -- EinschrÀnkung " AND st_geometrytype(wkb_geometry) = 'ST_Polygon' " deaktivieren, denn 26 -- es ist ein neuer Geometrietyp "ST_CurvePolygon" aufgetaucht. 25 27 26 28 SET client_encoding = 'UTF-8'; … … 48 50 FROM ax_wohnbauflaeche 49 51 WHERE endet IS NULL 50 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 51 52 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 53 ; 52 54 53 55 -- 02 REO: ax_IndustrieUndGewerbeflaeche … … 57 59 FROM ax_industrieundgewerbeflaeche 58 60 WHERE endet IS NULL 59 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 61 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 62 ; 60 63 61 64 … … 66 69 FROM ax_halde 67 70 WHERE endet IS NULL 68 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 71 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 72 ; 69 73 70 74 … … 75 79 FROM ax_bergbaubetrieb 76 80 WHERE endet IS NULL 77 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 81 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 82 ; 78 83 79 84 … … 82 87 INSERT INTO nutzung (gml_id, beginnt, nutz_id, class, info, zustand, name, bezeichnung, wkb_geometry) 83 88 SELECT gml_id, beginnt, 5, coalesce(abbaugut, 0), null, zustand, name, null, wkb_geometry 84 FROM ax_tagebaugrubesteinbruch 85 WHERE endet IS NULL 86 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 89 FROM ax_bergbaubetrieb 90 WHERE endet IS NULL 91 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 92 ; 87 93 88 94 … … 93 99 FROM ax_flaechegemischternutzung 94 100 WHERE endet IS NULL 95 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 101 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 102 ; 96 103 97 104 … … 102 109 FROM ax_flaechebesondererfunktionalerpraegung 103 110 WHERE endet IS NULL 104 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 111 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 112 ; 105 113 106 114 … … 111 119 FROM ax_sportfreizeitunderholungsflaeche 112 120 WHERE endet IS NULL 113 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 121 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 122 ; 114 123 -- weiteres Feld: name char(20)? 115 124 … … 121 130 FROM ax_friedhof 122 131 WHERE endet IS NULL 123 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 132 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 133 ; 124 134 125 135 … … 132 142 FROM ax_strassenverkehr 133 143 WHERE endet IS NULL 134 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 144 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 145 ; 135 146 136 147 … … 149 160 FROM ax_platz 150 161 WHERE endet IS NULL 151 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 162 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 163 ; 152 164 153 165 … … 158 170 FROM ax_bahnverkehr 159 171 WHERE endet IS NULL 160 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 172 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 173 ; 161 174 -- bahnkategorie ist alternativ ein geeignetes class-Feld 162 175 … … 168 181 FROM ax_flugverkehr 169 182 WHERE endet IS NULL 170 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 183 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 184 ; 171 185 172 186 … … 177 191 FROM ax_schiffsverkehr 178 192 WHERE endet IS NULL 179 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 193 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 194 ; 180 195 181 196 … … 188 203 FROM ax_landwirtschaft 189 204 WHERE endet IS NULL 190 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 205 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 206 ; 191 207 192 208 … … 197 213 FROM ax_wald 198 214 WHERE endet IS NULL 199 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 215 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 216 ; 200 217 201 218 … … 206 223 FROM ax_gehoelz 207 224 WHERE endet IS NULL 208 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 225 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 226 ; 209 227 210 228 … … 215 233 FROM ax_heide 216 234 WHERE endet IS NULL 217 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 235 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 236 ; 218 237 219 238 … … 224 243 FROM ax_moor 225 244 WHERE endet IS NULL 226 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 245 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 246 ; 227 247 228 248 … … 233 253 FROM ax_sumpf 234 254 WHERE endet IS NULL 235 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 255 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 256 ; 236 257 237 258 … … 242 263 FROM ax_unlandvegetationsloseflaeche 243 264 WHERE endet IS NULL 244 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 265 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 266 ; 245 267 246 268 -- (23 NummerierungslÃŒcke) … … 254 276 FROM ax_fliessgewaesser 255 277 WHERE endet IS NULL 256 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 278 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 279 ; 257 280 258 281 … … 263 286 FROM ax_hafenbecken 264 287 WHERE endet IS NULL 265 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 288 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 289 ; 266 290 267 291 … … 272 296 FROM ax_stehendesgewaesser 273 297 WHERE endet IS NULL 274 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 298 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 299 ; 275 300 276 301 … … 281 306 FROM ax_meer 282 307 WHERE endet IS NULL 283 AND st_geometrytype(wkb_geometry) = 'ST_Polygon'; 308 -- AND st_geometrytype(wkb_geometry) = 'ST_Polygon' 309 ; 284 310 285 311
Note: See TracChangeset
for help on using the changeset viewer.