Skip to content

Commit

Permalink
Interpret 'decimal' fields as double in WFS provider.
Browse files Browse the repository at this point in the history
Fixes #11864.
  • Loading branch information
Roel committed Jan 5, 2016
1 parent 17ed9d1 commit 97b8a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wfs/qgswfsprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 97b8a72

Please sign in to comment.