Skip to content
Permalink
Browse files

implement #1526

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10099 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Feb 3, 2009
1 parent cdd8a34 commit 689b2ec99aa0ad842136832887b5bbe9b4304e83
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgsvectorfilewriter.cpp
@@ -117,9 +117,15 @@ QgsVectorFileWriter::QgsVectorFileWriter( const QString& shapefileName,
int ogrPrecision = -1;
switch ( attrField.type() )
{
case QVariant::LongLong:
ogrType = OFTString;
ogrWidth = 21;
break;

case QVariant::String:
ogrType = OFTString;
break;

case QVariant::Int:
ogrType = OFTInteger;
ogrWidth = 10;

0 comments on commit 689b2ec

Please sign in to comment.
You can’t perform that action at this time.