# HG changeset patch # User Andre Heinecke # Date 1359124714 -3600 # Node ID e9880b224c2fc2593b2dd2300ec2617ec82554fd # Parent 9b03cf6b85c93b656ecb057d4731c7e3b8ef54ea (Importer) Add comment about OFT types diff -r 9b03cf6b85c9 -r e9880b224c2f flys-backend/contrib/shpimporter/utils.py --- 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