recreate old during filter behaviour for backwardscompatibility
This commit is contained in:
@@ -1105,7 +1105,7 @@ function writeDuringFilter(node, filter, objectStack) {
|
|||||||
const context = parent['context'];
|
const context = parent['context'];
|
||||||
const version = context['version'];
|
const version = context['version'];
|
||||||
|
|
||||||
writePropertyName(version, node, filter.propertyName);
|
writeExpression(FESNS[version], 'ValueReference', node, filter.propertyName);
|
||||||
const timePeriod = createElementNS(GMLNS, 'TimePeriod');
|
const timePeriod = createElementNS(GMLNS, 'TimePeriod');
|
||||||
|
|
||||||
node.appendChild(timePeriod);
|
node.appendChild(timePeriod);
|
||||||
|
|||||||
@@ -735,7 +735,7 @@ describe('ol.format.WFS', function () {
|
|||||||
' typeName="states" srsName="EPSG:4326">' +
|
' typeName="states" srsName="EPSG:4326">' +
|
||||||
' <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">' +
|
' <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc">' +
|
||||||
' <ogc:During>' +
|
' <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:TimePeriod xmlns:gml="http://www.opengis.net/gml">' +
|
||||||
' <gml:begin>' +
|
' <gml:begin>' +
|
||||||
' <gml:TimeInstant>' +
|
' <gml:TimeInstant>' +
|
||||||
|
|||||||
Reference in New Issue
Block a user