Skip to content
Permalink
Browse files

DateTime support for WFS filters

  • Loading branch information
m-kuhn committed Aug 24, 2018
1 parent 0b96fd9 commit c709f18831034478d6ac6209437e7e3a49bf24d5
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/core/qgsogcutils.cpp
@@ -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() );

0 comments on commit c709f18

Please sign in to comment.
You can’t perform that action at this time.