comparison flys-backend/contrib/shpimporter/uesg.py @ 3654:59ca5dab2782

Shape importer: use python's OptionParse to read user specific configuration from command line. flys-backend/trunk@5231 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 22 Aug 2012 11:55:55 +0000
parents b0132e1b9719
children f1c01fecf194
comparison
equal deleted inserted replaced
3653:20d249e1589f 3654:59ca5dab2782
3 from importer import Importer 3 from importer import Importer
4 4
5 5
6 TABLE_NAME="floodmaps" 6 TABLE_NAME="floodmaps"
7 PATH="Hydrologie/UeSG/Berechnung" 7 PATH="Hydrologie/UeSG/Berechnung"
8 NAME="UESG"
8 9
9 10
10 class UESG(Importer): 11 class UESG(Importer):
11 12
12 def getPath(self, base): 13 def getPath(self, base):
13 return "%s/%s" % (base, PATH) 14 return "%s/%s" % (base, PATH)
14 15
15 16
16 def getTablename(self): 17 def getTablename(self):
17 return TABLE_NAME 18 return TABLE_NAME
19
20
21 def getName(self):
22 return NAME
18 23
19 24
20 def isGeometryValid(self, geomType): 25 def isGeometryValid(self, geomType):
21 if geomType == 3 or geomType == 6: 26 if geomType == 3 or geomType == 6:
22 return True 27 return True

http://dive4elements.wald.intevation.org