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

Transforms sometimes are not sorted correctly #1188

Closed
offtherailz opened this issue Oct 21, 2016 · 0 comments · Fixed by #1191
Closed

Transforms sometimes are not sorted correctly #1188

offtherailz opened this issue Oct 21, 2016 · 0 comments · Fixed by #1191
Assignees
Milestone

Comments

@offtherailz
Copy link
Member

When create a new task, applying the presets, sometimes the transformations are not sorted correctly.

@offtherailz offtherailz added this to the 0.4 milestone Oct 21, 2016
@offtherailz offtherailz self-assigned this Oct 21, 2016
offtherailz added a commit to offtherailz/MapStore2 that referenced this issue Oct 21, 2016
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]
                 }]
             }
            }
        }

    }
```
offtherailz added a commit that referenced this issue Oct 24, 2016
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]
                 }]
             }
            }
        }

    }
```
@ghost ghost removed the in progress label Oct 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant