Mercurial > dive4elements > river
diff 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 |
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