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

WMS defaultStyle not working #149

Closed
cath222ou opened this issue Sep 30, 2019 · 1 comment · Fixed by #221
Closed

WMS defaultStyle not working #149

cath222ou opened this issue Sep 30, 2019 · 1 comment · Fixed by #221
Assignees

Comments

@cath222ou
Copy link

cath222ou commented Sep 30, 2019

I have defined a default style in DefaultStyle parameter for WMS. However, when I do a GetMap request without style name, the style is 'default' and not the style define in DefaultStyle parameter.

Below, this is the style part of layer on my configuration file with DefaultStyle defined to 'official' style:

    defaultStyle = "official"
    styles = [
		{
            name = "official"
            title = "Official"
            type = "colormapconf"
            color-map = ${color-maps.dem2}
            legends = [
                {
                    format = "image/png"
                    width = 36
                    height = 36
                    online-resource = {
                        type = "simple"
                        href = "http://dy0a51yzxbhxw.cloudfront.net/images/canada-icon.png"
                    }
                }
            ]

Below, are different GetMap requests (one without style name, one with style name 'default' and one with style name 'officiel'). You can see on images when I do GetMap without style name, this is the same result as when i do GetMap with 'default' style name. However, when I do GetMap without style name, I was expecting the result was the DefaultStyle (official).

SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:3857&BBOX=-15311418.827202465,10517168.037228156,-7966581.2070160909,11455987.670955122&WIDTH=877&HEIGHT=112&LAYERS=arcticdem2m&STYLES=&EXCEPTIONS=XML&FORMAT=image/png&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE

image

SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:3857&BBOX=-15311418.827202465,10517168.037228156,-7966581.2070160909,11455987.670955122&WIDTH=877&HEIGHT=112&LAYERS=arcticdem2m&STYLES=default&EXCEPTIONS=XML&FORMAT=image/png&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE

image

SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&CRS=EPSG:3857&BBOX=-15311418.827202465,10517168.037228156,-7966581.2070160909,11455987.670955122&WIDTH=877&HEIGHT=112&LAYERS=arcticdem2m&STYLES=official&EXCEPTIONS=XML&FORMAT=image/png&BGCOLOR=0xFEFFFF&TRANSPARENT=TRUE

image

Thank you

Sorry for the wrong label. Is not a "release" label.

@echeipesh echeipesh added bug and removed release labels Oct 9, 2019
@moradology moradology self-assigned this Feb 25, 2020
@moradology
Copy link
Collaborator

No sweat about the labels and thank you for making the issue!

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.

3 participants