Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1188 Add presets for the whole task #1191

Merged
merged 1 commit into from
Oct 24, 2016

Conversation

offtherailz
Copy link
Member

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, so it fix #1188:

{
        "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]
                 }]
             }
            }
        }

    }

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]
                 }]
             }
            }
        }

    }
```
@coveralls
Copy link

Coverage Status

Coverage increased (+0.09%) to 80.887% when pulling c28b1ec on offtherailz:iss1188 into e2ef856 on geosolutions-it:master.

@offtherailz offtherailz merged commit a064741 into geosolutions-it:master Oct 24, 2016
@offtherailz offtherailz deleted the iss1188 branch March 16, 2017 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transforms sometimes are not sorted correctly
2 participants