Open brancomat opened 4 years ago
Hi, Yes exactly ii is possible to create some json files with rules and styles and have Magics to use them in the skinny wms .. I am going to create a repo on github with exmaples a "tiny" bit of documentation Sylvie
Thank you, in the meantime we tried to boil down our generic question to a couple of more specific points:
how are json styles file read? are there specific names or hierarchies? A wild guess: when the contour_automatig_setting
variable it set it seems to read the default syles and then the subdir with the name of the variable, is it correct?
the semantic of the "match
" array, i.e. how to express logical and
/or
in matches and what fields is it possibile to use
Hello, I'll try to answer your questions:
Any progress with showing a minimal example of using custom styles? Tried setting the arguments to Styler, but no changes visible. Any example on how to make a custom style for a shortName in a grib file would be much appreciated.
Also tried with setting MAGICS_STYLE_PATH to a path with some styles, but no difference.
If I understand correctly, skinnywms uses magics' default styles in
/usr/share/magics/styles/
, but it's possible to use a different path with the--style
parameter.Is there any documentation or best practices for the
json
files in that directory? Particularly on matching products/levels with the desired style. It seems that there are generic style (contour) definitions and other files with a match between a combination of levels/parameters and those styles.Thank you.