recreate old during filter behaviour for backwardscompatibility

This commit is contained in:
Jannes Bolling
2020-10-19 10:37:13 +02:00
parent b271536b8b
commit 6b86c5f78d
2 changed files with 2 additions and 2 deletions

View File

@@ -1105,7 +1105,7 @@ function writeDuringFilter(node, filter, objectStack) {
const context = parent['context'];
const version = context['version'];
writePropertyName(version, node, filter.propertyName);
writeExpression(FESNS[version], 'ValueReference', node, filter.propertyName);
const timePeriod = createElementNS(GMLNS, 'TimePeriod');
node.appendChild(timePeriod);

View File

@@ -735,7 +735,7 @@ describe('ol.format.WFS', function () {
' typeName="states" srsName="EPSG:4326">' +
' <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">' +
' <ogc:During>' +
' <ogc:PropertyName>date_prop</ogc:PropertyName>' +
' <fes:ValueReference xmlns:fes="http://www.opengis.net/fes">date_prop</fes:ValueReference>' +
' <gml:TimePeriod xmlns:gml="http://www.opengis.net/gml">' +
' <gml:begin>' +
' <gml:TimeInstant>' +