Skip to content

Commit

Permalink
Merge pull request #706 from nsidc/style-unit-suffix-validator
Browse files Browse the repository at this point in the history
Style unit suffix validation
  • Loading branch information
mfisher87 authored Aug 10, 2023
2 parents a569b3b + ca1248d commit 4309130
Show file tree
Hide file tree
Showing 38 changed files with 8,881 additions and 5,459 deletions.
Binary file added doc/_images/qgis_symbology_legend_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 22 additions & 1 deletion doc/contributor/how-to/contribute-styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ following process:

* Download (or build) and open the most recent version of the project in QGIS.
* In the 'Layers' menu, double click on the layer you wish to edit.
* Open the 'symbology' tab.
* Open the 'Symbology' tab.
* Make your desired style changes.
* In the lower-left corner, click the 'Style' dropdown.
* In this menu, select 'Save Style...'
Expand All @@ -25,6 +25,27 @@ following process:
`foo.qml`, then populate `style='foo'`.


## Continuous colormap considerations

Continuous colormaps, since QGIS 3.18, support displaying a gradient legend.

A colormap is continuous if its interpolation mode is set to "Linear" (in the QML, the
value is `"INTERPOLATE"`).

!["Linear" interpolation selected in the QGIS symbology
menu](/_images/qgis_symbology_linear_interpolation.png)

These continuous legends will not display the units we populated in the "Label unit suffix"
field for QGreenland v2, so some extra effort has to be taken to display them in the new
continuous legend. In the "Legend Settings" menu, ensure:

* Any units are populated in the "Suffix" field
* "Orientation" is set to "Horizontal"

![QGIS "Legend Settings" menu with "Suffix" set to "m/s" and "Orientation" set to
"Horizontal"](/_images/qgis_symbology_legend_settings.png)


## Troubleshooting

### Layers using my style are displaying font warnings in QGIS on some operating systems
Expand Down
162 changes: 140 additions & 22 deletions qgreenland/ancillary/styles/albedo.qml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4309130

Please sign in to comment.