Skip to content

Commit 81f9c73

Browse files
committedMar 22, 2015
Backport of missing type definitions in delimited text provider
1 parent 6566ae3 commit 81f9c73

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/providers/delimitedtext/qgsdelimitedtextprovider.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider( QString uri )
8484
, mBuildSpatialIndex( false )
8585
, mSpatialIndex( 0 )
8686
{
87-
QgsDebugMsg( "Delimited text file uri is " + uri );
87+
mNativeTypes
88+
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "integer", QVariant::Int, 0, 10 )
89+
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "double precision", QVariant::Double, -1, -1, -1, -1 )
90+
<< QgsVectorDataProvider::NativeType( tr( "Text, unlimited length (text)" ), "text", QVariant::String, -1, -1, -1, -1 )
91+
;
92+
93+
QgsDebugMsg( "Delimited text file uri is " + uri );
8894

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

0 commit comments

Comments
 (0)
Please sign in to comment.