changeset 4882:e9880b224c2f

(Importer) Add comment about OFT types
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 25 Jan 2013 15:38:34 +0100
parents 9b03cf6b85c9
children 186dd186d5bd
files flys-backend/contrib/shpimporter/utils.py
diffstat 1 files changed, 15 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-backend/contrib/shpimporter/utils.py	Fri Jan 25 15:37:43 2013 +0100
+++ b/flys-backend/contrib/shpimporter/utils.py	Fri Jan 25 15:38:34 2013 +0100
@@ -32,6 +32,21 @@
         # Probably Windows iso-8859-x names so lets try again
         return unicode.encode(unicode(path, "iso-8859-15"), "UTF-8")
 
+
+# 0 OFTInteger, Simple 32bit integer
+# 1 OFTIntegerList, List of 32bit integers
+# 2 OFTReal, Double Precision floating point
+# 3 OFTRealList, List of doubles
+# 4 OFTString, String of ASCII chars
+# 5 OFTStringList, Array of strings
+# 6 OFTWideString, deprecated
+# 7 OFTWideStringList, deprecated
+# 8 OFTBinary, Raw Binary data
+# 9 OFTDate, Date
+# 10 OFTTime, Time
+# 11 OFTDateTime, Date and Time
+
+
 def copyFields(src, target, mapping):
     """
     Checks the mapping dictonary for key value pairs to

http://dive4elements.wald.intevation.org