Skip to content
Permalink
Browse files
[BUGFIX] Extend field type description
  • Loading branch information
rldhont committed Feb 23, 2016
1 parent 5e8feb6 commit 2ad32f1635d39fd90bdf0c10fc98f467f6b4f5d3
Showing 1 changed file with 6 additions and 0 deletions.
@@ -460,6 +460,12 @@ void QgsWFSProjectParser::describeFeatureType( const QString& aTypeName, QDomEle
geomElem.setAttribute( "type", "integer" );
else if ( attributeType == QVariant::Double )
geomElem.setAttribute( "type", "double" );
else if ( attributeType == QVariant::Bool )
geomElem.setAttribute( "type", "boolean" );
else if ( attributeType == QVariant::Date )
geomElem.setAttribute( "type", "date" );
else if ( attributeType == QVariant::DateTime )
geomElem.setAttribute( "type", "dateTime" );
else
geomElem.setAttribute( "type", "string" );

3 comments on commit 2ad32f1

@nyalldawson
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably should add Time types here too, a growing number of providers support those

@rldhont
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot it, thanks

@rldhont
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made in 05471f5

Please sign in to comment.