Skip to content
Permalink
Browse files

Backport of missing type definitions in delimited text provider

  • Loading branch information
ccrook committed Mar 22, 2015
1 parent 6566ae3 commit 81f9c731f04240a730e41f0593897b55bf317e79
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/providers/delimitedtext/qgsdelimitedtextprovider.cpp
@@ -84,7 +84,13 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider( QString uri )
, mBuildSpatialIndex( false )
, mSpatialIndex( 0 )
{
QgsDebugMsg( "Delimited text file uri is " + uri );
mNativeTypes
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "integer", QVariant::Int, 0, 10 )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "double precision", QVariant::Double, -1, -1, -1, -1 )
<< QgsVectorDataProvider::NativeType( tr( "Text, unlimited length (text)" ), "text", QVariant::String, -1, -1, -1, -1 )
;

QgsDebugMsg( "Delimited text file uri is " + uri );

QUrl url = QUrl::fromEncoded( uri.toAscii() );
mFile = new QgsDelimitedTextFile();

0 comments on commit 81f9c73

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