Skip to content
Permalink
Browse files

Interpret 'decimal' fields as double in WFS provider.

Fixes #11864.
  • Loading branch information
Roel committed Jan 5, 2016
1 parent 17ed9d1 commit 97b8a72b8254a449127362cb153da8c137b74a97
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wfs/qgswfsprovider.cpp
@@ -972,7 +972,7 @@ int QgsWFSProvider::readAttributesFromSchema( QDomDocument& schemaDoc, QString&
else //todo: distinguish between numerical and non-numerical types
{
QVariant::Type attributeType = QVariant::String; //string is default type
if ( type.contains( "double", Qt::CaseInsensitive ) || type.contains( "float", Qt::CaseInsensitive ) )
if ( type.contains( "double", Qt::CaseInsensitive ) || type.contains( "float", Qt::CaseInsensitive ) || type.contains( "decimal", Qt::CaseInsensitive ) )
{
attributeType = QVariant::Double;
}

0 comments on commit 97b8a72

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