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

Ability to create style in workspace with SLD version 1.1.0 #209

Open
nilgundag opened this issue Mar 6, 2017 · 1 comment
Open

Ability to create style in workspace with SLD version 1.1.0 #209

nilgundag opened this issue Mar 6, 2017 · 1 comment

Comments

@nilgundag
Copy link

nilgundag commented Mar 6, 2017

GeoServerRESTStyleManager has many overloaded methods to publish a style in a workspace. Yet all of them assumes content type "application/vnd.ogc.sld+xml".

Functionality to check sld version is already available in the same class.

if(!this.checkSLD10Version(sldBody)){
    contentType = GeoServerRESTPublisher.Format.SLD_1_1_0.getContentType();
}

It should be trivial to update all methods to check SLD version and use the corresponding content type.

@wumpz
Copy link
Contributor

wumpz commented Apr 10, 2017

I provided a publish method with a format parameter and try to guess the format from the givens file extention within my fork. You could try this modification but its still alpha with all the other changes I introduced (at least for my needs).

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

No branches or pull requests

2 participants