-
Notifications
You must be signed in to change notification settings - Fork 31
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
contours without sld #54
Comments
It depends what you mean by "without sld". You can define new custom styles and put them in The styles are written in SLD, but you don't need to pass But there is currently no way of specifying contour options as WMS arguments. |
There are styles coming in metadata one for contours and another for
colored contours, but if we choose that way we cant set contour
properties(styles e.g solid, dashed; contour line color, number of levels).
This was possible in ncwms 1.
…On Tue, May 19, 2020, 14:20 Guy Griffiths ***@***.***> wrote:
It depends what you mean by "without sld". You can define new custom
styles and put them in .ncWMS2/.styles as described here:
https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/06-development.html#styles
The styles are written in SLD, but you don't need to pass SLD_BODY as a
WMS argument to use them - they are just new named styles.
But there is currently no way of specifying contour options as WMS
arguments.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYXFJFVUHLEHEGSQYWLJKDRSJB6TANCNFSM4NCZFPOA>
.
|
Yes. If you want different contour styles, you need to define them in SLD and add them to |
Referring to the url example, you mentioned, from where it picks layerName,
opacity, scaleMin, scaleMax.and similarly if it is substituting, is it
possible to pass the number of levels and contour style.
…On Tue, May 19, 2020, 14:54 Guy Griffiths ***@***.***> wrote:
Yes. If you want different contour styles, you need to define them in SLD
and add them to .ncWMS2/.styles. Here's an example:
https://github.com/Reading-eScience-Centre/edal-java/blob/master/graphics/src/main/resources/styles/colored_contours.xml
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYXFJDB7YHBBZQAW23ZLR3RSJF3DANCNFSM4NCZFPOA>
.
|
No, the available placeholders are listed here: https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/06-development.html#styles |
Okay. That means we have to replace those placeholders and pass sld body in
wms request url.
…On Tue, May 19, 2020, 16:21 Guy Griffiths ***@***.***> wrote:
No, the available placeholders are listed here:
https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/06-development.html#styles
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYXFJBEFJBNAQSYPRZELLTRSJQC5ANCNFSM4NCZFPOA>
.
|
If you want to set them dynamically, then yes you'll either have to set |
Can you share example url with sld and placeholders.
Regards
Ghansham
…On Tue, May 19, 2020, 16:34 Guy Griffiths ***@***.***> wrote:
If you want to set them dynamically, then yes you'll either have to set
SLD_BODY or SLD. The latter is usually a better option, since some older
browsers have a character limit on URLs.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYXFJEAOUMO52U4YJC6BRDRSJRUJANCNFSM4NCZFPOA>
.
|
I'm not sure what you mean. If you specify |
Sorry about the confusion.suppose i create a style template for contours in
".styles" directory. Now can I pass this template name in sld parameter.
And where do I specify the placeholder values.. in the url itself? Thats
not clear.
…On Tue, May 19, 2020, 16:46 Guy Griffiths ***@***.***> wrote:
I'm not sure what you mean. If you specify SLD_BODY in the URL, you don't
have placeholders, you fill in the values you want. The example I attached
earlier should work - you just need to replace all of the placeholders
starting with $ with concrete values, and put it in the URL as SLD_BODY.
It replaces LAYERS and STYLES so you don't need them.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYXFJH7FYPHYODN75EY6LTRSJTALANCNFSM4NCZFPOA>
.
|
If you create a style template in If this is not sufficient (e.g. you want more placeholder values) then you use |
Ok got it. Very nice explanation. One last query. Does ncwms2 allow the
xmls to be fetched on client side so that sld body can be constructed as
passed as sld_body in the requested url?
One more thing, i observed that ncwms2 by default adds cors headers to the
json requests atleast. Am I right?
Regards
Ghansham
…On Tue, May 19, 2020, 17:08 Guy Griffiths ***@***.***> wrote:
If you create a style template in .styles, it will appear as a supported
style name. You specify the template name as STYLES=mycontourstyle. This
is how all of the included styles are defined (see
https://github.com/Reading-eScience-Centre/edal-java/tree/master/graphics/src/main/resources/styles).
When you do that, the placeholders listed here:
https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/06-development.html#styles
come from the URL arguments with the same names. For example
$numColorBands comes from the NUMCOLORBANDS URL argument.
If this is not sufficient (e.g. you want more placeholder values) then you
use SLD_BODY to specify the full SLD document. You can write a complete
XML style in the SLD_BODY URL argument. There are no placeholders. You
write the XML with the values you want.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYXFJBAE4BEDSGXZ5YASZTRSJVTHANCNFSM4NCZFPOA>
.
|
Is there a way to configure contour color and contour levels without sld.
It used to work in ncWMS1.
The text was updated successfully, but these errors were encountered: