comparison flys-backend/contrib/shpimporter/uesg.py @ 5276:170f514a4f29

SCHEMA CHANGE: lookup table for floodmaps and source-field added, Importer adapted to new directory names
author Tom Gottfried <tom@intevation.de>
date Wed, 13 Mar 2013 18:39:28 +0100
parents c5187ab9f571
children 3f35d9db48c1
comparison
equal deleted inserted replaced
5275:911f62917753 5276:170f514a4f29
5 5
6 from importer import Importer 6 from importer import Importer
7 7
8 8
9 TABLE_NAME="floodmaps" 9 TABLE_NAME="floodmaps"
10 PATH="Hydrologie/UeSG/Berechnung" 10 PATH="Hydrologie/UeSG"
11 NAME="UESG" 11 NAME="UESG"
12 12
13 13
14 class UESG(Importer): 14 class UESG(Importer):
15 15
40 if path.find("Aktuell") > 0: 40 if path.find("Aktuell") > 0:
41 kind = kind + 10 41 kind = kind + 10
42 else: 42 else:
43 kind = kind + 20 43 kind = kind + 20
44 44
45 if path.find("Land") > 0: 45 if path.find("Bundesl") > 0:
46 kind = kind + 2 46 kind = kind + 2
47 else: 47 else:
48 kind = kind + 1 48 kind = kind + 1
49 else: 49 else:
50 kind = kind + 200 50 kind = kind + 200

http://dive4elements.wald.intevation.org