Skip to content

Commit

Permalink
[BUGFIX] Extend field type description
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Feb 23, 2016
1 parent 5e8feb6 commit 2ad32f1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/qgswfsprojectparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" );

Expand Down

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.