comparison flys-backend/contrib/shpimporter/utils.py @ 4882:e9880b224c2f

(Importer) Add comment about OFT types
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 25 Jan 2013 15:38:34 +0100
parents b1d7e600b43b
children b457532dae63
comparison
equal deleted inserted replaced
4881:9b03cf6b85c9 4882:e9880b224c2f
30 return unicode.encode(unicode(path, sys.getfilesystemencoding()), "UTF-8") 30 return unicode.encode(unicode(path, sys.getfilesystemencoding()), "UTF-8")
31 except UnicodeDecodeError: 31 except UnicodeDecodeError:
32 # Probably Windows iso-8859-x names so lets try again 32 # Probably Windows iso-8859-x names so lets try again
33 return unicode.encode(unicode(path, "iso-8859-15"), "UTF-8") 33 return unicode.encode(unicode(path, "iso-8859-15"), "UTF-8")
34 34
35
36 # 0 OFTInteger, Simple 32bit integer
37 # 1 OFTIntegerList, List of 32bit integers
38 # 2 OFTReal, Double Precision floating point
39 # 3 OFTRealList, List of doubles
40 # 4 OFTString, String of ASCII chars
41 # 5 OFTStringList, Array of strings
42 # 6 OFTWideString, deprecated
43 # 7 OFTWideStringList, deprecated
44 # 8 OFTBinary, Raw Binary data
45 # 9 OFTDate, Date
46 # 10 OFTTime, Time
47 # 11 OFTDateTime, Date and Time
48
49
35 def copyFields(src, target, mapping): 50 def copyFields(src, target, mapping):
36 """ 51 """
37 Checks the mapping dictonary for key value pairs to 52 Checks the mapping dictonary for key value pairs to
38 copy from the source to the destination feature. 53 copy from the source to the destination feature.
39 54

http://dive4elements.wald.intevation.org