Navigation Menu

Skip to content

Commit

Permalink
DateTime support for WFS filters
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 24, 2018
1 parent 0b96fd9 commit c709f18
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/qgsogcutils.cpp
Expand Up @@ -2415,6 +2415,12 @@ QDomElement QgsOgcUtilsExprToFilter::expressionLiteralToOgcFilter( const QgsExpr
case QVariant::String:
value = node->value().toString();
break;
case QVariant::Date:
value = node->value().toDate().toString( Qt::ISODate );
break;
case QVariant::DateTime:
value = node->value().toDateTime().toString( Qt::ISODate );
break;

default:
mErrorMessage = QObject::tr( "Literal type not supported: %1" ).arg( node->value().type() );
Expand Down

0 comments on commit c709f18

Please sign in to comment.