-
Notifications
You must be signed in to change notification settings - Fork 30
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
How to make a new style recognized by a layer? #116
Comments
The If it works with |
I modified it like this:
This follows the edal spec. Why doesnt it work? |
I have copied and pasted that into a file named I got a global image of wind barbs as expected. I'm using version ncWMS v2.4.2-SNAPSHOT, as seen on the admin page. When I make the request: The returned document contains the following:
I'm afraid I have no idea why it is not working on your machine - everything you've done is correct and works perfectly on my installation. |
Thanks for you time in checking it out. I have a couple questions:
|
One thing I would recommend doing would be copying a style verbatim, just giving it a different name in your |
We can close this issue as 2.4.2 is a part of the other issue. |
I created a new style which is just a copy of vector_wind_barbs.xml and made some minor tweaks and then place it in the .styles folder and then restarted ncWMS server.
My sld file is called i4windbarbs.xml so in my WMS params I specified 'STYLES': 'i4windbarbs/default'
I also tried:
'STYLES': 'i4windbarbs'
I always get the error:
2019-03-20 16:05:47 WARN WmsServlet:2639 - Wms Exception caught: "The layer hist/winddir does not support
the style i4windbarbs" from:uk.ac.rdg.resc.edal.wms.GetMapStyleParams:385
The layer works fine with
'STYLES': 'default-arrows/default'
but I dont want arrows.
The get metadata query shows this:
"supportedStyles": [
"default-arrows",
"default-scalar",
"arrows",
"colored_contours",
"contours",
"fat_arrows",
"meteorological_arrows",
"meteorological_fat_arrows",
"meteorological_triangle_arrows",
"raster",
"triangle_arrows",
"upstream_dots"
],
The documentation says:
"Once you have created these templates, you may either place them in a subdirectory of the main config directory named .styles, or override the styleDirs context parameter, similar to the palettes directory above"
But it does not work for me. How do I add a style so that it will be recognized or allowed with a layer?
The text was updated successfully, but these errors were encountered: