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

Style unit suffix validation #706

Merged
merged 19 commits into from
Aug 10, 2023
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 won't display the units we populated in the "Label unit suffix"
MattF-NSIDC marked this conversation as resolved.
Show resolved Hide resolved
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