Skip to content

Commit

Permalink
Merge pull request #2646 from Roel/wfs_decimal
Browse files Browse the repository at this point in the history
Interpret 'decimal' fields as double in WFS provider.
  • Loading branch information
m-kuhn committed Jan 8, 2016
2 parents e0a557a + 97b8a72 commit 95a56b9
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 95a56b9

Please sign in to comment.