Skip to content

Commit 4f65820

Browse files
committed
Fetch name of geometry ID property for filter XML from plugin configuration
1 parent 42e1862 commit 4f65820

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/server/sendDataToGeoserver.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,8 +436,10 @@ function getFilterXml(geometryIds) {
436436
}
437437

438438
function getGeometryFilterXml(geometryId) {
439+
const geometryIdPropertyName = getPluginConfiguration().wfs_geometry_id_field_name;
440+
439441
return '<ogc:PropertyIsEqualTo>'
440-
+ '<ogc:PropertyName>ouuid</ogc:PropertyName>'
442+
+ '<ogc:PropertyName>' + geometryIdPropertyName + '</ogc:PropertyName>'
441443
+ '<ogc:Literal>' + geometryId + '</ogc:Literal>'
442444
+ '</ogc:PropertyIsEqualTo>';
443445
}

0 commit comments

Comments
 (0)