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

Don't use the The Word Which Must Not Be Used #59017

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

rouault
Copy link
Contributor

@rouault rouault commented Oct 8, 2024

I limited the renaming to things that are not in the public API and are not setting names. This is probably more than we strictly need to do, but at least this will help doing potential future similar 'grep' exercises.

I limited the renaming to things that are not in the public API and
are not setting names. This is probably more than we strictly need to
do, but at least this will help doing potential future similar 'grep'
exercises.
@github-actions github-actions bot added this to the 3.40.0 milestone Oct 8, 2024
@rouault
Copy link
Contributor Author

rouault commented Oct 8, 2024

@nyalldawson What is the procedure to make spell_check happy?

@nyalldawson
Copy link
Collaborator

@rouault can you approve qgis/QGIS-Documentation#9296 too?

What is the procedure to make spell_check happy?

This particular misspell has been a long-standing issue, which isn't easy/possible to fix before 4.0. Just ignore it, as it will trip every time the layout exporter header is modified...

Copy link

github-actions bot commented Oct 8, 2024

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 0e5a2a5)

🪟 Windows Qt6 builds

Download Windows Qt6builds of this PR for testing.
(Built from commit 0e5a2a5)

@nyalldawson nyalldawson merged commit 9f605a6 into qgis:master Oct 9, 2024
35 of 36 checks passed
@qgis-bot
Copy link
Collaborator

qgis-bot commented Oct 9, 2024

The backport to release-3_34 failed:

The process '/usr/bin/git' failed with exit code 1
stderr
error: could not apply 0e5a2a54e74... Don't use the The Word Which Must Not Be Used
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".
hint: Disable this message with "git config advice.mergeConflict false"

stdout
Auto-merging python/PyQt6/core/auto_additions/qgslayoutexporter.py
CONFLICT (content): Merge conflict in python/PyQt6/core/auto_additions/qgslayoutexporter.py
Auto-merging python/PyQt6/core/auto_additions/qgsmapsettingsutils.py
CONFLICT (content): Merge conflict in python/PyQt6/core/auto_additions/qgsmapsettingsutils.py
Auto-merging python/PyQt6/core/auto_generated/layout/qgslayoutitem.sip.in
CONFLICT (content): Merge conflict in python/PyQt6/core/auto_generated/layout/qgslayoutitem.sip.in
Auto-merging python/PyQt6/core/auto_generated/providers/qgsprovidersublayerdetails.sip.in
CONFLICT (modify/delete): python/core/auto_additions/qgslayoutexporter.py deleted in HEAD and modified in 0e5a2a54e74 (Don't use the The Word Which Must Not Be Used).  Version 0e5a2a54e74 (Don't use the The Word Which Must Not Be Used) of python/core/auto_additions/qgslayoutexporter.py left in tree.
Auto-merging python/core/auto_additions/qgsmapsettingsutils.py
CONFLICT (content): Merge conflict in python/core/auto_additions/qgsmapsettingsutils.py
Auto-merging python/core/auto_generated/layout/qgslayoutitem.sip.in
CONFLICT (content): Merge conflict in python/core/auto_generated/layout/qgslayoutitem.sip.in
Auto-merging python/core/auto_generated/providers/qgsprovidersublayerdetails.sip.in
Auto-merging src/app/layout/qgslayoutdesignerdialog.cpp
CONFLICT (content): Merge conflict in src/app/layout/qgslayoutdesignerdialog.cpp
Auto-merging src/app/layout/qgslayoutdesignerdialog.h
Auto-merging src/app/qgsmapsavedialog.cpp
Auto-merging src/core/layout/qgslayoutexporter.cpp
CONFLICT (content): Merge conflict in src/core/layout/qgslayoutexporter.cpp
Auto-merging src/core/layout/qgslayoutexporter.h
Auto-merging src/core/layout/qgslayoutgeopdfexporter.cpp
Auto-merging src/core/layout/qgslayoutgeopdfexporter.h
CONFLICT (content): Merge conflict in src/core/layout/qgslayoutgeopdfexporter.h
Auto-merging src/core/layout/qgslayoutitem.h
CONFLICT (content): Merge conflict in src/core/layout/qgslayoutitem.h
Auto-merging src/core/layout/qgslayoutitemmap.h
Auto-merging src/core/maprenderer/qgsmaprenderertask.cpp
Auto-merging src/core/maprenderer/qgsmaprenderertask.h
Auto-merging src/core/providers/qgsprovidersublayerdetails.h
Auto-merging src/core/qgsabstractgeopdfexporter.cpp
CONFLICT (content): Merge conflict in src/core/qgsabstractgeopdfexporter.cpp
Auto-merging src/core/qgsabstractgeopdfexporter.h
CONFLICT (content): Merge conflict in src/core/qgsabstractgeopdfexporter.h
Auto-merging src/core/qgsmapsettingsutils.cpp
Auto-merging src/core/qgsmapsettingsutils.h
Auto-merging src/gui/layout/qgsgeopdflayertreemodel.h
Auto-merging src/gui/layout/qgslayoutpdfexportoptionsdialog.cpp
CONFLICT (content): Merge conflict in src/gui/layout/qgslayoutpdfexportoptionsdialog.cpp
Auto-merging src/gui/layout/qgslayoutpdfexportoptionsdialog.h
CONFLICT (content): Merge conflict in src/gui/layout/qgslayoutpdfexportoptionsdialog.h
Auto-merging src/server/services/wms/qgswmsparameters.cpp
Auto-merging src/server/services/wms/qgswmsparameters.h
CONFLICT (content): Merge conflict in src/server/services/wms/qgswmsparameters.h
Auto-merging src/server/services/wms/qgswmsrenderer.cpp
CONFLICT (content): Merge conflict in src/server/services/wms/qgswmsrenderer.cpp
Auto-merging src/ui/layout/qgslayoutitemwidgetbase.ui
CONFLICT (content): Merge conflict in src/ui/layout/qgslayoutitemwidgetbase.ui
Auto-merging src/ui/qgsmapsavedialog.ui
Auto-merging tests/src/core/testqgsgeopdfexport.cpp
CONFLICT (content): Merge conflict in tests/src/core/testqgsgeopdfexport.cpp
Auto-merging tests/src/core/testqgslayoutgeopdfexport.cpp
CONFLICT (content): Merge conflict in tests/src/core/testqgslayoutgeopdfexport.cpp

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-release-3_34 release-3_34
# Navigate to the new working tree
cd .worktrees/backport-release-3_34
# Create a new branch
git switch --create backport-59017-to-release-3_34
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick 0e5a2a54e74db10ce1520e165d8544f10f7e67dc
# Push it to GitHub
git push --set-upstream origin backport-59017-to-release-3_34
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-release-3_34

Then, create a pull request where the base branch is release-3_34 and the compare/head branch is backport-59017-to-release-3_34.

@qgis-bot qgis-bot added the failed backport The automated backport attempt failed, needs a manual backport label Oct 9, 2024
@nyalldawson
Copy link
Collaborator

working on a backport now...

@@ -19,7 +19,7 @@
except NameError:
pass
try:
QgsLayoutExporter.PdfExportSettings.__attribute_docs__ = {'dpi': 'Resolution to export layout at. If dpi <= 0 the default layout dpi will be used.', 'rasterizeWholeImage': 'Set to ``True`` to force whole layout to be rasterized while exporting.\n\nThis option is mutually exclusive with forceVectorOutput.', 'forceVectorOutput': 'Set to ``True`` to force vector object exports, even when the resultant appearance will differ\nfrom the layout. If ``False``, some items may be rasterized in order to maintain their\ncorrect appearance in the output.\n\nThis option is mutually exclusive with rasterizeWholeImage.', 'appendGeoreference': 'Indicates whether PDF export should append georeference data\n\n.. versionadded:: 3.10', 'exportMetadata': "Indicates whether PDF export should include metadata generated\nfrom the layout's project's metadata.\n\n.. versionadded:: 3.2", 'flags': 'Layout context flags, which control how the export will be created.', 'textRenderFormat': 'Text rendering format, which controls how text should be rendered in the export (e.g.\nas paths or real text objects).\n\n.. versionadded:: 3.4.3', 'simplifyGeometries': 'Indicates whether vector geometries should be simplified to avoid redundant extraneous detail,\nsuch as vertices which are not visible at the specified dpi of the output.\n\n.. versionadded:: 3.10', 'writeGeoPdf': '``True`` if GeoPDF files should be created, instead of normal PDF files.\n\nWhilst GeoPDF files can include some desirable properties like the ability to interactively\nquery map features, they also can result in lower-quality output files, or forced rasterization\nof layers.\n\n.. note::\n\n Requires builds based on GDAL 3.0 or greater.\n\n.. versionadded:: 3.10', 'exportLayersAsSeperateFiles': '``True`` if individual layers from the layout should be rendered to separate PDF files.\n\nThis option allows for separation of logic layout layers to individual PDF files. For instance,\nif this option is ``True``, then a separate PDF file will be created per layer per map item in the\nlayout. Additionally, separate PDF files may be created for other complex layout items, resulting\nin a set of PDF files which contain logical atomic components of the layout.\n\nThis option is designed to allow the PDF files to be composited back together in an external\napplication (e.g. Adobe Illustrator) as a non-QGIS, post-production step.\n\n.. versionadded:: 3.14', 'useIso32000ExtensionFormatGeoreferencing': '``True`` if ISO3200 extension format georeferencing should be used.\n\nThis is a recommended setting which results in Geospatial PDF files compatible\nwith the built-in Acrobat geospatial tools.\n\nIf PdfExportSettings.writeGeoPdf is ``False`` than this option has no effect.', 'useOgcBestPracticeFormatGeoreferencing': '``True`` if OGC "best practice" format georeferencing should be used.\n\n.. warning::\n\n This results in GeoPDF files compatible with the TerraGo suite of tools, but\n can break compatibility with the built-in Acrobat geospatial tools (yes, GeoPDF\n format is a mess!).\n\nIf PdfExportSettings.writeGeoPdf is ``False`` than this option has no effect.', 'includeGeoPdfFeatures': '``True`` if feature vector information (such as attributes) should be exported during GeoPDF exports.\n\nIf PdfExportSettings.writeGeoPdf is ``False`` than this option has no effect.', 'exportThemes': "Optional list of map themes to export as GeoPDF layer groups.\n\nIf set, map item's which are not assigned a specific map theme will iterate through all listed\nthemes and a GeoPDF layer group will be created for each.\n\nIf PdfExportSettings.writeGeoPdf is ``False`` than this option has no effect.", 'predefinedMapScales': 'A list of predefined scales to use with the layout. This is used\nfor maps which are set to the predefined atlas scaling mode.\n\n.. versionadded:: 3.10'}
QgsLayoutExporter.PdfExportSettings.__attribute_docs__ = {'dpi': 'Resolution to export layout at. If dpi <= 0 the default layout dpi will be used.', 'rasterizeWholeImage': 'Set to ``True`` to force whole layout to be rasterized while exporting.\n\nThis option is mutually exclusive with forceVectorOutput.', 'forceVectorOutput': 'Set to ``True`` to force vector object exports, even when the resultant appearance will differ\nfrom the layout. If ``False``, some items may be rasterized in order to maintain their\ncorrect appearance in the output.\n\nThis option is mutually exclusive with rasterizeWholeImage.', 'appendGeoreference': 'Indicates whether PDF export should append georeference data\n\n.. versionadded:: 3.10', 'exportMetadata': "Indicates whether PDF export should include metadata generated\nfrom the layout's project's metadata.\n\n.. versionadded:: 3.2", 'flags': 'Layout context flags, which control how the export will be created.', 'textRenderFormat': 'Text rendering format, which controls how text should be rendered in the export (e.g.\nas paths or real text objects).\n\n.. versionadded:: 3.4.3', 'simplifyGeometries': 'Indicates whether vector geometries should be simplified to avoid redundant extraneous detail,\nsuch as vertices which are not visible at the specified dpi of the output.\n\n.. versionadded:: 3.10', 'writeGeoPdf': '``True`` if geospatial PDF files should be created, instead of normal PDF files.\n\nWhilst geospatial PDF files can include some desirable properties like the ability to interactively\nquery map features, they also can result in lower-quality output files, or forced rasterization\nof layers.\n\n.. note::\n\n Requires builds based on GDAL 3.0 or greater.\n\n.. versionadded:: 3.10', 'exportLayersAsSeperateFiles': '``True`` if individual layers from the layout should be rendered to separate PDF files.\n\nThis option allows for separation of logic layout layers to individual PDF files. For instance,\nif this option is ``True``, then a separate PDF file will be created per layer per map item in the\nlayout. Additionally, separate PDF files may be created for other complex layout items, resulting\nin a set of PDF files which contain logical atomic components of the layout.\n\nThis option is designed to allow the PDF files to be composited back together in an external\napplication (e.g. Adobe Illustrator) as a non-QGIS, post-production step.\n\n.. versionadded:: 3.14', 'useIso32000ExtensionFormatGeoreferencing': '``True`` if ISO3200 extension format georeferencing should be used.\n\nThis is a recommended setting which results in Geospatial PDF files compatible\nwith the built-in Acrobat geospatial tools.\n\nIf PdfExportSettings.writeGeoPdf is ``False`` than this option has no effect.', 'useOgcBestPracticeFormatGeoreferencing': '``True`` if OGC "best practice" format georeferencing should be used.\n\n.. warning::\n\n This results in geospatial PDF files compatible with a unnamed suite of tools starting with Terra and ending with Go, but\n can break compatibility with the built-in Acrobat geospatial tools (yes, Geospatial PDF\n format is a mess!).\n\nIf PdfExportSettings.writeGeoPdf is ``False`` than this option has no effect.', 'includeGeoPdfFeatures': '``True`` if feature vector information (such as attributes) should be exported during Geospatial PDF exports.\n\nIf PdfExportSettings.writeGeoPdf is ``False`` than this option has no effect.', 'exportThemes': "Optional list of map themes to export as Geospatial PDF layer groups.\n\nIf set, map item's which are not assigned a specific map theme will iterate through all listed\nthemes and a Geospatial PDF layer group will be created for each.\n\nIf PdfExportSettings.writeGeoPdf is ``False`` than this option has no effect.", 'predefinedMapScales': 'A list of predefined scales to use with the layout. This is used\nfor maps which are set to the predefined atlas scaling mode.\n\n.. versionadded:: 3.10'}

Choose a reason for hiding this comment

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

Sometimes the G of Geospatial is capitalised, but oftentimes not.

@@ -21,7 +21,7 @@ according to a specific data provider.

It is possible that multiple data providers may be able to utilize the same underlying
sub layer in a single dataset, yet will interpret this layer differently. For instance, a layer
in a GeoPDF document can be interpreted as either a vector layer by the OGR data provider or a raster
in a Geospatial PDF document can be interpreted as either a vector layer by the OGR data provider or a raster

Choose a reason for hiding this comment

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

In this instance, the G is capitalised whereas in most others, it is not.

3nids added a commit to kadas-albireo/kadas-albireo2 that referenced this pull request Nov 7, 2024
3nids added a commit to kadas-albireo/kadas-albireo2 that referenced this pull request Nov 8, 2024
* Upgrade QGIS to 3.40

* Update portfile.cmake

* add == operator for KadasItemPos

* geopdf -> geospatialpdf

follow-up qgis/QGIS#59017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed backport The automated backport attempt failed, needs a manual backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants