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

Fix inconcequent use of DPI at generating the WMS legend #52015

Merged
merged 11 commits into from
Mar 6, 2023

Conversation

signedav
Copy link
Contributor

@signedav signedav commented Feb 24, 2023

  • Consider DPI of QgsWmsRenderContext what is the OGC default (0.28 mm per pixel) or the passed WMS parameter - this is done by creating the QgsRenderContext by the mapSettings (with BBOX) or applying the dotsPerMm to the scaleFactor.

  • Additionally the image size needs to be calculated according to the QgsRenderContext now, what means it needs to be generated before.

  • Distance area when using defaultMapUnitsPerMm to consider the correct CRS and care about meter based crs. This fixes WMS legend symbol missing for "Meters at Scale" symbology and projected CRS  #50366

Replaces #51772

- Consider DPI of QgsWmsRenderContext what is the OGC default (0.28 mm per pixel) or the passed WMS parameter - this is done by creating the QgsRenderContext by the mapSettings (with BBOX) or applying the dotsPerMm to the scaleFactor.

- Additionally the image size needs to be calculated according to the QgsRenderContext now, what means it needs to be generated before.

- The QPainter needs to be applied after to the context (since it's not passed by creating the context anymore).
… context settings according to the mapSettings since it NEVER has a BBOX (since of RULE)
@github-actions github-actions bot added this to the 3.30.0 milestone Feb 24, 2023
@@ -186,6 +208,18 @@ namespace QgsWms
QgsLegendSettings settings = legendSettings();
QgsLayerTreeModelLegendNode::ItemContext ctx;
ctx.painter = painter.get();

// create context
QgsRenderContext context = QgsRenderContext::fromQPainter( painter.get() );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block is identical to the one above?
Can it be deduplicated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that. Would you make a new method just for that? I decided against it, but would be fine for me.

Copy link
Member

@m-kuhn m-kuhn Feb 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a certain risk of forgetting upgrades in the future. It aligns well with configureMapSettings(). I would.

@signedav
Copy link
Contributor Author

I need to replace a bunch of control_images now. What is the appropriated way with variants and masks?

@nyalldawson
Copy link
Collaborator

need to replace a bunch of control_images now

If they are changes that are permanent and not platform specific, just replace the existing reference images directly and don't add variants or masks.

I don't know if you've capacity for it, but all the server legend tests are broken in that they don't use the correct standard qgis test font and use tiny font sizes. They are really fragile as a result. If you're going to replace all the reference images and can find the time to do so, also changing the font to the standard test font in bold at least size 12 point would be a massive improvement.

@signedav
Copy link
Contributor Author

signedav commented Feb 27, 2023

You mean by adding those parameters LAYERFONTBOLD, LAYERFONTSIZE, LAYERFONTFAMILY (and same ITEM) to the request of every getlegendgraphic-testcase? @nyalldawson?

Yes. I can do that.

…labels and having not yet a fix font with "LAYERFONTBOLD": "TRUE", "LAYERFONTSIZE": "12", "LAYERFONTFAMILY": self.fontFamily, "ITEMFONTBOLD": "TRUE", "ITEMFONTSIZE": "12", "ITEMFONTFAMILY": self.fontFamily
@signedav signedav requested a review from m-kuhn March 3, 2023 09:47
Copy link
Member

@m-kuhn m-kuhn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor change request left

@nyalldawson nyalldawson modified the milestones: 3.30.0, 3.32 (feature) Mar 6, 2023
@YoannQDQ YoannQDQ modified the milestones: 3.32 (feature), 3.32.0 Mar 6, 2023
@signedav
Copy link
Contributor Author

signedav commented Mar 6, 2023

This can be merged right? And backported to 3.30..?

@m-kuhn
Copy link
Member

m-kuhn commented Mar 6, 2023

Yes, I have also tagged it for backport to LTR (remove label if you think it's a bad idea)

@signedav signedav merged commit 632edab into qgis:master Mar 6, 2023
@qgis-bot
Copy link
Collaborator

qgis-bot commented Mar 7, 2023

The backport to queued_ltr_backports failed:

The process '/usr/bin/git' failed with exit code 1
stderr
error: could not apply d3448f1836... update controll images
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".

stdout
Auto-merging src/server/services/wms/qgswmsrenderer.cpp
[backport-52015-to-queued_ltr_backports 857856bbce] Fix inconcequent use of DPI at generating the WMS legend
 Author: signedav <david@opengis.ch>
 Date: Fri Feb 24 13:33:11 2023 +0100
 1 file changed, 27 insertions(+), 9 deletions(-)
Auto-merging src/server/services/wms/qgswmsrenderer.cpp
[backport-52015-to-queued_ltr_backports d90e782861] Fix DPI on getLegendGraphic concerning a RULE. It should not take the context settings according to the mapSettings since it NEVER has a BBOX (since of RULE)
 Author: signedav <david@opengis.ch>
 Date: Fri Feb 24 13:36:16 2023 +0100
 1 file changed, 12 insertions(+)
Auto-merging src/server/services/wms/qgswmsrenderer.cpp
[backport-52015-to-queued_ltr_backports 1040550222] Append distance area when using defaultMapUnitsPerMm to consider the correct CRS and care about meter based crs. This fixes #50366
 Author: signedav <david@opengis.ch>
 Date: Fri Feb 24 14:00:36 2023 +0100
 1 file changed, 4 insertions(+)
Auto-merging tests/src/python/test_qgsserver_wms_getlegendgraphic.py
[backport-52015-to-queued_ltr_backports ce10e31668] tests for meter based default scales
 Author: signedav <david@opengis.ch>
 Date: Fri Feb 24 14:01:32 2023 +0100
 15 files changed, 2010 insertions(+), 18 deletions(-)
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale/variant1/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale_2056/variant1/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale_2056.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale_2056/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale_2056.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule/variant1/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule_2056/variant1/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule_2056.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule_2056/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule_2056.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled/variant1/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled_2056/variant1/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled_2056.png
 create mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled_2056/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled_2056.png
 create mode 100644 tests/testdata/qgis_server/test_project_meters_at_scaledsymbols.qgs
 create mode 100644 tests/testdata/qgis_server/test_project_meters_at_scaledsymbols_2056.qgs
Auto-merging src/server/services/wms/qgswmsrenderer.cpp
[backport-52015-to-queued_ltr_backports bec52b9e10] deduplicate duplicate code
 Author: signedav <david@opengis.ch>
 Date: Fri Feb 24 17:18:22 2023 +0100
 2 files changed, 20 insertions(+), 14 deletions(-)
Auto-merging tests/src/python/test_qgsserver_wms_getlegendgraphic.py
[backport-52015-to-queued_ltr_backports 761d04a1d5] Update of PyQgsServerWMSGetLegendGraphic on all image requests using labels and having not yet a fix font  with "LAYERFONTBOLD": "TRUE", "LAYERFONTSIZE": "12", "LAYERFONTFAMILY": self.fontFamily, "ITEMFONTBOLD": "TRUE", "ITEMFONTSIZE": "12", "ITEMFONTFAMILY": self.fontFamily
 Author: signedav <david@opengis.ch>
 Date: Wed Mar 1 12:28:00 2023 +0100
 1 file changed, 183 insertions(+), 27 deletions(-)
[backport-52015-to-queued_ltr_backports a79c9a2add] dont make variants for new tests
 Author: signedav <david@opengis.ch>
 Date: Wed Mar 1 12:34:50 2023 +0100
 12 files changed, 0 insertions(+), 0 deletions(-)
 rename tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale/{variant1 => }/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale.png (100%)
 delete mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale.png
 rename tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale_2056/{variant1 => }/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale_2056.png (100%)
 delete mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale_2056/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_DefaultScale_2056.png
 rename tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule/{variant1 => }/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule.png (100%)
 delete mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule.png
 rename tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule_2056/{variant1 => }/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule_2056.png (100%)
 delete mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule_2056/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_Rule_2056.png
 rename tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled/{variant1 => }/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled.png (100%)
 delete mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled.png
 rename tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled_2056/{variant1 => }/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled_2056.png (100%)
 delete mode 100644 tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled_2056/variant2/WMS_GetLegendGraphic_MetersAtScaleSymbol_Scaled_2056.png
Auto-merging tests/src/python/test_qgsserver_wms_getlegendgraphic.py
[backport-52015-to-queued_ltr_backports d8a8a15008] fix missing comma and dont make font settings on rule
 Author: signedav <david@opengis.ch>
 Date: Wed Mar 1 13:31:41 2023 +0100
 1 file changed, 3 insertions(+), 15 deletions(-)
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ITEMFONTCOLOR/variant1/WMS_GetLegendGraphic_ITEMFONTCOLOR.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ITEMFONTCOLOR/variant1/WMS_GetLegendGraphic_ITEMFONTCOLOR.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ITEMFONTCOLOR/variant2/WMS_GetLegendGraphic_ITEMFONTCOLOR.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ITEMFONTCOLOR/variant2/WMS_GetLegendGraphic_ITEMFONTCOLOR.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR/variant1/WMS_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR/variant1/WMS_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR/variant2/WMS_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR/variant2/WMS_GetLegendGraphic_ITEMFONTCOLOR_and_LAYERFONTCOLOR.png left in tree.
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ItemFont/WMS_GetLegendGraphic_ItemFont.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ItemFont/WMS_GetLegendGraphic_ItemFont.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ItemFont/WMS_GetLegendGraphic_ItemFont.png
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LAYERFONTCOLOR/variant1/WMS_GetLegendGraphic_LAYERFONTCOLOR.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LAYERFONTCOLOR/variant1/WMS_GetLegendGraphic_LAYERFONTCOLOR.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LAYERFONTCOLOR/variant2/WMS_GetLegendGraphic_LAYERFONTCOLOR.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LAYERFONTCOLOR/variant2/WMS_GetLegendGraphic_LAYERFONTCOLOR.png left in tree.
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LayerFont/WMS_GetLegendGraphic_LayerFont.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LayerFont/WMS_GetLegendGraphic_LayerFont.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LayerFont/WMS_GetLegendGraphic_LayerFont.png
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LayerSpace/WMS_GetLegendGraphic_LayerSpace.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LayerSpace/WMS_GetLegendGraphic_LayerSpace.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LayerSpace/WMS_GetLegendGraphic_LayerSpace.png
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LayerTitleSpace/WMS_GetLegendGraphic_LayerTitleSpace.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LayerTitleSpace/WMS_GetLegendGraphic_LayerTitleSpace.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_LayerTitleSpace/WMS_GetLegendGraphic_LayerTitleSpace.png
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Legend_Placeholder_Icon/variant1/WMS_GetLegendGraphic_Legend_Placeholder_Icon.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Legend_Placeholder_Icon/variant1/WMS_GetLegendGraphic_Legend_Placeholder_Icon.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Legend_Placeholder_Icon/variant2/WMS_GetLegendGraphic_Legend_Placeholder_Icon.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Legend_Placeholder_Icon/variant2/WMS_GetLegendGraphic_Legend_Placeholder_Icon.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_NoWidthNoHeight/variant1/WMS_GetLegendGraphic_NoWidthNoHeight.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_NoWidthNoHeight/variant1/WMS_GetLegendGraphic_NoWidthNoHeight.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_NoWidthNoHeight/variant2/WMS_GetLegendGraphic_NoWidthNoHeight.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_NoWidthNoHeight/variant2/WMS_GetLegendGraphic_NoWidthNoHeight.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type1/variant1/WMS_GetLegendGraphic_Regression32020_type1.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type1/variant1/WMS_GetLegendGraphic_Regression32020_type1.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type1/variant2/WMS_GetLegendGraphic_Regression32020_type1.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type1/variant2/WMS_GetLegendGraphic_Regression32020_type1.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type1_and_3/variant1/WMS_GetLegendGraphic_Regression32020_type1_and_3.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type1_and_3/variant1/WMS_GetLegendGraphic_Regression32020_type1_and_3.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type1_and_3/variant2/WMS_GetLegendGraphic_Regression32020_type1_and_3.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type1_and_3/variant2/WMS_GetLegendGraphic_Regression32020_type1_and_3.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2/variant1/WMS_GetLegendGraphic_Regression32020_type2.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2/variant1/WMS_GetLegendGraphic_Regression32020_type2.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2/variant2/WMS_GetLegendGraphic_Regression32020_type2.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2/variant2/WMS_GetLegendGraphic_Regression32020_type2.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2_3857/variant1/WMS_GetLegendGraphic_Regression32020_type2_3857.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2_3857/variant1/WMS_GetLegendGraphic_Regression32020_type2_3857.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2_3857/variant2/WMS_GetLegendGraphic_Regression32020_type2_3857.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2_3857/variant2/WMS_GetLegendGraphic_Regression32020_type2_3857.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2_and_3/variant1/WMS_GetLegendGraphic_Regression32020_type2_and_3.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2_and_3/variant1/WMS_GetLegendGraphic_Regression32020_type2_and_3.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2_and_3/variant2/WMS_GetLegendGraphic_Regression32020_type2_and_3.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_Regression32020_type2_and_3/variant2/WMS_GetLegendGraphic_Regression32020_type2_and_3.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_DefaultMapUnitsPerMillimeter/variant1/WMS_GetLegendGraphic_ScaleSymbol_DefaultMapUnitsPerMillimeter.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_DefaultMapUnitsPerMillimeter/variant1/WMS_GetLegendGraphic_ScaleSymbol_DefaultMapUnitsPerMillimeter.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_DefaultMapUnitsPerMillimeter/variant2/WMS_GetLegendGraphic_ScaleSymbol_DefaultMapUnitsPerMillimeter.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_DefaultMapUnitsPerMillimeter/variant2/WMS_GetLegendGraphic_ScaleSymbol_DefaultMapUnitsPerMillimeter.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_DefaultScale_2056/variant1/WMS_GetLegendGraphic_ScaleSymbol_DefaultScale_2056.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_DefaultScale_2056/variant1/WMS_GetLegendGraphic_ScaleSymbol_DefaultScale_2056.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_DefaultScale_2056/variant2/WMS_GetLegendGraphic_ScaleSymbol_DefaultScale_2056.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_DefaultScale_2056/variant2/WMS_GetLegendGraphic_ScaleSymbol_DefaultScale_2056.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Max/variant1/WMS_GetLegendGraphic_ScaleSymbol_Max.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Max/variant1/WMS_GetLegendGraphic_ScaleSymbol_Max.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Max/variant2/WMS_GetLegendGraphic_ScaleSymbol_Max.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Max/variant2/WMS_GetLegendGraphic_ScaleSymbol_Max.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Min/variant1/WMS_GetLegendGraphic_ScaleSymbol_Min.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Min/variant1/WMS_GetLegendGraphic_ScaleSymbol_Min.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Min/variant2/WMS_GetLegendGraphic_ScaleSymbol_Min.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Min/variant2/WMS_GetLegendGraphic_ScaleSymbol_Min.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_01/variant1/WMS_GetLegendGraphic_ScaleSymbol_Scaled_01.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_01/variant1/WMS_GetLegendGraphic_ScaleSymbol_Scaled_01.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_01/variant2/WMS_GetLegendGraphic_ScaleSymbol_Scaled_01.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_01/variant2/WMS_GetLegendGraphic_ScaleSymbol_Scaled_01.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_02/variant1/WMS_GetLegendGraphic_ScaleSymbol_Scaled_02.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_02/variant1/WMS_GetLegendGraphic_ScaleSymbol_Scaled_02.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_02/variant2/WMS_GetLegendGraphic_ScaleSymbol_Scaled_02.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_02/variant2/WMS_GetLegendGraphic_ScaleSymbol_Scaled_02.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_2056/variant1/WMS_GetLegendGraphic_ScaleSymbol_Scaled_2056.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_2056/variant1/WMS_GetLegendGraphic_ScaleSymbol_Scaled_2056.png left in tree.
CONFLICT (modify/delete): tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_2056/variant2/WMS_GetLegendGraphic_ScaleSymbol_Scaled_2056.png deleted in d3448f1836 (update controll images) and modified in HEAD.  Version HEAD of tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ScaleSymbol_Scaled_2056/variant2/WMS_GetLegendGraphic_ScaleSymbol_Scaled_2056.png left in tree.
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ShowFeatureCount/WMS_GetLegendGraphic_ShowFeatureCount.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ShowFeatureCount/WMS_GetLegendGraphic_ShowFeatureCount.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_ShowFeatureCount/WMS_GetLegendGraphic_ShowFeatureCount.png
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_rulelabel_false/WMS_GetLegendGraphic_rulelabel_false.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_rulelabel_false/WMS_GetLegendGraphic_rulelabel_false.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_rulelabel_false/WMS_GetLegendGraphic_rulelabel_false.png
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_rulelabel_notset/WMS_GetLegendGraphic_rulelabel_notset.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_rulelabel_notset/WMS_GetLegendGraphic_rulelabel_notset.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_rulelabel_notset/WMS_GetLegendGraphic_rulelabel_notset.png
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_rulelabel_true/WMS_GetLegendGraphic_rulelabel_true.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_rulelabel_true/WMS_GetLegendGraphic_rulelabel_true.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_rulelabel_true/WMS_GetLegendGraphic_rulelabel_true.png
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_test/WMS_GetLegendGraphic_test.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_test/WMS_GetLegendGraphic_test.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server/WMS_GetLegendGraphic_test/WMS_GetLegendGraphic_test.png
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server_accesscontrol/WMS_GetLegendGraphic_Country/WMS_GetLegendGraphic_Country.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server_accesscontrol/WMS_GetLegendGraphic_Country/WMS_GetLegendGraphic_Country.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server_accesscontrol/WMS_GetLegendGraphic_Country/WMS_GetLegendGraphic_Country.png
warning: Cannot merge binary files: tests/testdata/control_images/qgis_server_accesscontrol/WMS_GetLegendGraphic_Hello/WMS_GetLegendGraphic_Hello.png (HEAD vs. d3448f1836 (update controll images))
Auto-merging tests/testdata/control_images/qgis_server_accesscontrol/WMS_GetLegendGraphic_Hello/WMS_GetLegendGraphic_Hello.png
CONFLICT (content): Merge conflict in tests/testdata/control_images/qgis_server_accesscontrol/WMS_GetLegendGraphic_Hello/WMS_GetLegendGraphic_Hello.png

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-queued_ltr_backports queued_ltr_backports
# Navigate to the new working tree
cd .worktrees/backport-queued_ltr_backports
# Create a new branch
git switch --create backport-52015-to-queued_ltr_backports
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick 10aa91a6a6a64ab8fcafc7c8ef8a0a1eacef85e8,e667ca423636c84cc3ef8dd411461eb233d2a269,6ec0c75d6de011cc5d808631ed3c6dd00348d197,e1d43b01a860951bb3a4ba280b66320003a6d0c3,cc3c2ec0228ccf453cc3aa4a06f69d35f4663c9a,c90f7579fa670b6293bf94f1c3a4e57e7d2bd38b,2be8f073080aedc9e86e28b0a987c27195345b9d,7574039fd54045cff29c6af8c9c7cf3dc9804bb1,d3448f18369228fea891fd362a1a9fe14e5c4d76,1042c66e26b11659e248a86fbe9db882289b9071,a85019498fc6dd2d547b2cb06b1657dc687071a2
# Push it to GitHub
git push --set-upstream origin backport-52015-to-queued_ltr_backports
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-queued_ltr_backports

Then, create a pull request where the base branch is queued_ltr_backports and the compare/head branch is backport-52015-to-queued_ltr_backports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport queued_ltr_backports Queued Backports failed backport The automated backport attempt failed, needs a manual backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WMS legend symbol missing for "Meters at Scale" symbology and projected CRS
5 participants