From c28b1ecd197cbc74b5aa51f62bafaf0bc8e2d270 Mon Sep 17 00:00:00 2001 From: Lorenzo Natali Date: Fri, 21 Oct 2016 16:53:23 +0200 Subject: [PATCH] Fix #1188 Add presets for the whole task Importer provides the possibility to update the whole tranform chain updating the "transformChain" entry in the task. Allowing this in the task, we can configure presets like this to allow correct transforms preset: ``` { "state": "READY", "data": { "format": "GeoTIFF" }, "changes": { "task": { "transformChain": { "type": "raster", "transforms": [{ "type": "GdalWarpTransform", "options": [ "-t_srs", "EPSG:4326", "-co", "TILED=YES", "-co", "BLOCKXSIZE=512", "-co", "BLOCKYSIZE=512"] }, { "type": "GdalAddoTransform", "options": [ "-r", "average"], "levels" : [2, 4, 8, 16, 32, 64, 128] }] } } } } ``` --- web/client/api/geoserver/Importer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/client/api/geoserver/Importer.js b/web/client/api/geoserver/Importer.js index a8a7b41029..c03248e07e 100644 --- a/web/client/api/geoserver/Importer.js +++ b/web/client/api/geoserver/Importer.js @@ -30,7 +30,7 @@ var Api = { updateTask: function( geoserverBaseUrl, importId, taskId, element, body, options) { let url = geoserverBaseUrl + "imports/" + importId + "/tasks/" + taskId; // element can be target, layer, transforms... - if (element) { + if (element && element !== "task") { url += "/" + element; } return axios.put(url, body, options);