mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
implement #1526
git-svn-id: http://svn.osgeo.org/qgis/trunk@10099 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
d033b0f887
commit
a5c2aecd82
@ -117,9 +117,15 @@ QgsVectorFileWriter::QgsVectorFileWriter( const QString& shapefileName,
|
|||||||
int ogrPrecision = -1;
|
int ogrPrecision = -1;
|
||||||
switch ( attrField.type() )
|
switch ( attrField.type() )
|
||||||
{
|
{
|
||||||
|
case QVariant::LongLong:
|
||||||
|
ogrType = OFTString;
|
||||||
|
ogrWidth = 21;
|
||||||
|
break;
|
||||||
|
|
||||||
case QVariant::String:
|
case QVariant::String:
|
||||||
ogrType = OFTString;
|
ogrType = OFTString;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case QVariant::Int:
|
case QVariant::Int:
|
||||||
ogrType = OFTInteger;
|
ogrType = OFTInteger;
|
||||||
ogrWidth = 10;
|
ogrWidth = 10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user