Skip to content

Commit 703c4f5

Browse files
committed
feat(examples): add example with global config use (for now branch use)
1 parent 539147d commit 703c4f5

File tree

2 files changed

+341
-0
lines changed

2 files changed

+341
-0
lines changed
Lines changed: 281 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,281 @@
1+
[qgis]
2+
3+
# If true, QGIS will automatically check for new versions on startup and notify users if a new version is available.
4+
# This setting controls the default value for that setting. Users may still manually enable or disable this check
5+
# through the QGIS settings dialog.
6+
checkVersion=true
7+
8+
# If true, users may control whether the version check is enabled or disabled through the QGIS settings dialog. (The default
9+
# check behavior is determined by the 'checkVersion' setting). If false, no version checking will be performed and
10+
# users will NOT have an option to enable this check in the settings dialog.
11+
# This setting is intended for use in enterprise installs where QGIS version management is handled centrally.
12+
allowVersionCheck=true
13+
14+
# If true, added layer names will be automatically capitalized and underscores replaced with spaces
15+
formatLayerName=false
16+
17+
# If set to true then directories will be automatically monitored and refreshed when their contents change outside of QGIS.
18+
# This monitoring can be expensive, especially for remote or network drives, in which case setting this option to false
19+
# can result in a speedup of the QGIS interface.
20+
monitorDirectoriesInBrowser=true
21+
22+
[digitizing]
23+
24+
# Snapping enabled by default
25+
default-snap-enabled=false
26+
27+
# Default snapping tolerance (distance)
28+
default-snapping-tolerance=12.0
29+
30+
# Default snap to type
31+
# Vertex, VertexAndSegment, Segment
32+
default-snap-type=Vertex
33+
34+
# Default snapping unit
35+
# LayerUnits, Pixels, ProjectUnits
36+
default-snapping-tolerance-unit=Pixels
37+
38+
# Snap on invisible feature
39+
snap-invisible-feature=false
40+
41+
[connections]
42+
43+
# Default XYZ tile servers to include
44+
xyz\items\OpenStreetMap\authcfg=
45+
xyz\items\OpenStreetMap\password=
46+
xyz\items\OpenStreetMap\referer=
47+
xyz\items\OpenStreetMap\url=https://tile.openstreetmap.org/{z}/{x}/{y}.png?{usage}
48+
xyz\items\OpenStreetMap\username=
49+
xyz\items\OpenStreetMap\zmax=19
50+
xyz\items\OpenStreetMap\zmin=0
51+
xyz\items\OpenStreetMap\tile-pixel-ratio=1
52+
53+
xyz\items\Mapzen Global Terrain\authcfg=
54+
xyz\items\Mapzen Global Terrain\password=
55+
xyz\items\Mapzen Global Terrain\referer=
56+
xyz\items\Mapzen Global Terrain\url=https://s3.amazonaws.com/elevation-tiles-prod/terrarium/{z}/{x}/{y}.png?{usage}
57+
xyz\items\Mapzen Global Terrain\username=
58+
xyz\items\Mapzen Global Terrain\zmax=15
59+
xyz\items\Mapzen Global Terrain\zmin=0
60+
xyz\items\Mapzen Global Terrain\interpretation=terrariumterrain
61+
62+
xyz\items\Plan IGN\authcfg=
63+
xyz\items\Plan IGN\password=
64+
xyz\items\Plan IGN\referer=
65+
xyz\items\Plan IGN\url=https://data.geopf.fr/tms/1.0.0/GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2/{z}/{x}/{y}.png
66+
xyz\items\Plan IGN\username=
67+
xyz\items\Plan IGN\zmax=15
68+
xyz\items\Plan IGN\zmin=0
69+
70+
[qgis]
71+
72+
# The image format selected by default when adding a WMS, i.e. image/png. If empty, the first available format is used
73+
WMSDefaultFormat=""
74+
75+
# application stylesheet
76+
77+
# Padding (in pixels) to add to toolbar icons, if blank then default padding will be used
78+
stylesheet\toolbarSpacing=
79+
80+
# If true, new projects are using relative paths. If false, new projects default to absolute paths.
81+
defaultProjectPathsRelative=true
82+
83+
# Max image cache size in bytes.
84+
# The cache is used for caching symbology and layout images,
85+
# If high resolution images are used for printing layout, then this
86+
# value should be increased accordingly.
87+
# If 0, will use a default value calculated based on the system memory (which defaults to 100mb)
88+
maxImageCacheSize=0
89+
90+
[app]
91+
92+
# Whether the user should be asked to save a layer in case of one or more MemoryLayers
93+
# when a project is closed.
94+
# Default to true, set to false to disable this dialog/question.
95+
askToSaveMemoryLayers=true
96+
97+
# Maximum number of recent projects to show on the welcome page
98+
maxRecentProjects=20
99+
100+
# Minimum time (in seconds) for a background task to execute in order for a system
101+
# notification to be shown when the task completes.
102+
minTaskLengthForSystemNotification=5
103+
104+
# Whether to show the distance panned message in the status bar after a map pan operation
105+
# occurs. Set to false to disable the message.
106+
showPanDistanceInStatusBar=true
107+
108+
# Whether to prompt users for a selection when multiple possible transformation paths exist
109+
# when transforming coordinates. If false, a reasonable choice will be estimated by default
110+
# without asking users. If true, users are always required to make this choice themselves.
111+
projections\promptWhenMultipleTransformsExist=true
112+
113+
# Default CRS for newly created projects. Accepts "auth:code" style strings (e.g. EPSG:4326),
114+
# PROJ strings (must be prefixed with PROJ4:, e.g. "PROJ4:+proj ...."), or WKT strings (must
115+
# be prefixed with WKT:, e.g. "WKT:<wkt string>")
116+
# This is only used when projections\newProjectCrsBehavior is set to UsePresetCrs
117+
projections\defaultProjectCrs=EPSG:4326
118+
119+
# Specifies the method to set the CRS for a newly created project. Valid options are
120+
# "UseCrsOfFirstLayerAdded" - sets the project CRS to match the CRS of the first layer added to the project
121+
# "UsePresetCrs" - always use a preset CRS, see projections\defaultProjectCrs
122+
projections\newProjectCrsBehavior=UseCrsOfFirstLayerAdded
123+
124+
# Specifies the behavior when adding a layer with unknown/invalid CRS to a project
125+
# "NoAction" - take no action and leave as unknown CRS
126+
# "PromptUserForCrs" - user is prompted for a CRS choice
127+
# "UseProjectCrs" - copy the current project's CRS
128+
# "UseDefaultCrs" - use the default layer CRS set via QGIS options
129+
projections\unknownCrsBehavior=NoAction
130+
131+
# If the inherent inaccuracy in a selected CRS exceeds this threshold value (in meters),
132+
# a warning message will be shown to the user advising them to select an alternative
133+
# CRS if higher positional accuracy is required
134+
projections\crsAccuracyWarningThreshold=0.0
135+
136+
# If set to true, a warning icon will be shown next to any layer where the layer's CRS exceeds
137+
# the accuracy warning threshold value (see crsAccuracyWarningThreshold)
138+
projections\crsAccuracyIndicator=false
139+
140+
[app]
141+
142+
# Specifies a manual bearing correction to apply to bearings reported by a GPS
143+
# device, for use when a map canvas is set to match rotation to the GPS bearing
144+
# or when showing the GPS bearing line
145+
gps\bearingAdjustment=0
146+
147+
# Set to "true" to automatically correct GPS reported bearings for true north
148+
# when a map canvas is set to match rotation to the GPS bearing
149+
# or when showing the GPS bearing line
150+
gps\correctForTrueNorth=false
151+
152+
153+
[gps]
154+
155+
# Desired flow control mode for serial port GPS connections
156+
# "NoFlowControl" - no flow control
157+
# "HardwareControl" - hardware flow control (RTS/CTS)
158+
# "SoftwareControl" - software flow control (XON/XOFF)
159+
flow-control=NoFlowControl
160+
161+
# Desired parity checking mode for serial port GPS connections
162+
# "NoParity" - No parity bit it sent. This is the most common parity setting. Error detection is handled by the communication protocol.
163+
# "EvenParity" - The number of 1 bits in each character, including the parity bit, is always even.
164+
# "OddParity" - The number of 1 bits in each character, including the parity bit, is always odd. It ensures that at least one state transition occurs in each character.
165+
# "SpaceParity" - Space parity. The parity bit is sent in the space signal condition. It does not provide error detection information.
166+
# "MarkParity" - Mark parity. The parity bit is always set to the mark signal condition (logical 1). It does not provide error detection information.
167+
parity=NoParity
168+
169+
# Desired data bits in a frame for serial port GPS connections
170+
# "Data5" - The number of data bits in each character is 5. It is used for Baudot code. It generally only makes sense with older equipment such as teleprinters.
171+
# "Data6" - The number of data bits in each character is 6. It is rarely used.
172+
# "Data7" - The number of data bits in each character is 7. It is used for true ASCII. It generally only makes sense with older equipment such as teleprinters.
173+
# "Data8" - The number of data bits in each character is 8. It is used for most kinds of data, as this size matches the size of a byte. It is almost universally used in newer applications.
174+
data-bits=Data8
175+
176+
# Desired number of stop bits in a frame for serial port GPS connections
177+
# "OneStop" - 1 stop bit.
178+
# "OneAndHalfStop" - 1.5 stop bits. This is only for the Windows platform.
179+
# "TwoStop" - 2 stop bits.
180+
stop-bits=OneStop
181+
182+
# Default for GPS leap seconds correction as of 2019-06-19
183+
leapSecondsCorrection=18
184+
185+
[core]
186+
187+
# Whether or not to anonymize newly created projects
188+
# If set to true, then project metadata items like AUTHOR and CREATION DATE
189+
# will not be automatically populated when a new project is created.
190+
projects\anonymize_new_projects=false
191+
192+
# Whether or not to anonymize projects when saving
193+
# If set to true, then username information will not be stored in saved projects
194+
projects\anonymize_saved_projects=false
195+
196+
# News feed settings
197+
# Set to true to disable the QGIS news feed on the welcome page
198+
NewsFeed\http00008000\disabled=false
199+
200+
# Optionally, set to an ISO-939-1 two letter language code to filter the QGIS news feed by language
201+
NewsFeed\http00008000\lang=
202+
203+
# Optionally, set to a specific user latitude and longitude to filter the QGIS news feed to remove
204+
# local news outside of the users geographic area
205+
NewsFeed\http00008000\lat=
206+
NewsFeed\http00008000\long=
207+
208+
# When new projects are created, default to planimetric measurement.
209+
measure\planimetric=false
210+
211+
# When set to a non-zero value, places a global limit on the maximum number of label candidates which
212+
# are generated for point features. Setting this limit to a low (non-zero) value can improve map rendering
213+
# time, at the expense of worse label placement or potentially missing map labels. A value of 0 indicates
214+
# that no limit is present.
215+
rendering\label_candidates_limit_points=0
216+
217+
# When set to a non-zero value, places a global limit on the maximum number of label candidates which
218+
# are generated for line features. Setting this limit to a low (non-zero) value can improve map rendering
219+
# time, at the expense of worse label placement or potentially missing map labels. A value of 0 indicates
220+
# that no limit is present.
221+
rendering\label_candidates_limit_lines=0
222+
223+
# When set to a non-zero value, places a global limit on the maximum number of label candidates which
224+
# are generated for polygon features. Setting this limit to a low (non-zero) value can improve map rendering
225+
# time, at the expense of worse label placement or potentially missing map labels. A value of 0 indicates
226+
# that no limit is present.
227+
rendering\label_candidates_limit_polygons=0
228+
229+
[colors]
230+
# These colors are used in logs.
231+
default=
232+
info=
233+
success=
234+
warning=#dc7d00
235+
critical=#c80000
236+
237+
[help]
238+
# Default help location to include
239+
# for now this is online version of the User Guide for latest (LTR) release
240+
helpSearchPath=https://docs.qgis.org/$qgis_short_version/$qgis_locale/docs/user_manual/
241+
242+
[providers]
243+
# Whether deprecated data providers should be shown in the QGIS UI (e.g. db2)
244+
# Warning: these providers are NOT supported and they will be dropped in a future QGIS
245+
# version. Commercial users requiring on these providers should contact the QGIS
246+
# project ASAP and arrange for ongoing funding of the provider to prevent their
247+
# removal and restore them to fully supported status.
248+
showDeprecated=false
249+
250+
# Default timeout for PostgreSQL servers (seconds)
251+
PostgreSQL\default_timeout=30
252+
253+
[gui]
254+
# Maximum number of entries to show in Relation Reference widgets. Too large a number here can
255+
# cause performance issues, as the records must all be loaded from the related table on display.
256+
maxEntriesRelationWidget=100
257+
258+
# Path to default image to use for layout north arrows
259+
# Acceptable formats include local paths, http(s) urls, or even base64 encoded SVGs (prefixed with base64:....)
260+
LayoutDesigner\defaultNorthArrow=:/images/north_arrows/layout_default_north_arrow.svg
261+
262+
# Default font to use in layout designer
263+
LayoutDesigner\defaultFont=
264+
265+
[geometry_validation]
266+
# A comma separated list of geometry validations to enable by default for newly added layers
267+
# Available checks: QgsIsValidCheck,QgsGeometryGapCheck,QgsGeometryOverlapCheck,QgsGeometryMissingVertexCheck
268+
default_checks=
269+
270+
# Enable problem resolution for geometry errors
271+
# This feature is experimental and has known issues.
272+
enable_problem_resolution=false
273+
274+
275+
# Path to (or command name for) the GPSBabel executable file
276+
gpsbabelPath=gpsbabel
277+
278+
[proxy]
279+
# # URL list for which proxy configuration doesn't apply. In the case of these URLs, the default system proxy configuration
280+
# # is applied
281+
# proxyExcludedUrls=http://intranet,http://anotherproxy
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/qgis-deployment/qgis-deployment-toolbelt-cli/refs/heads/main/docs/schemas/scenario/qdt_scenario.json
2+
3+
metadata:
4+
title: "Demonstration scenario of QGIS Deployment Toolbelt, with update of QGIS settings for all profiles"
5+
id: qdt-demo-scenario-global-config
6+
description: >-
7+
Demonstration scenario of QGIS Deployment Toolbelt capabilities, with update of QGIS settings for all profiles.
8+
9+
# Toolbelt settings
10+
settings:
11+
# LOCAL_WORK_DIR: ~/.cache/qgis-deployment-toolbelt/demo/
12+
# QGIS_EXE_PATH:
13+
# linux: /usr/bin/qgis
14+
# mac: /usr/bin/qgis
15+
# windows: "%PROGRAMFILES%/QGIS/3_28/bin/qgis-ltr-bin.exe"
16+
SCENARIO_VALIDATION: true
17+
18+
# Deployment workflow, step by step
19+
steps:
20+
- name: Find installed QGIS
21+
uses: qgis-installation-finder
22+
with:
23+
version_priority:
24+
- "3.40"
25+
- "3.34"
26+
- "3.28"
27+
- "3.38"
28+
- "3.36"
29+
- "3.32"
30+
search_paths:
31+
- "%PROGRAMFILES%/QGIS"
32+
if_not_found: warning
33+
34+
- name: Download profiles from remote git repository
35+
uses: qprofiles-downloader
36+
with:
37+
source: https://github.com/qgis-deployment/qgis-deployment-toolbelt-cli.git
38+
protocol: git_remote
39+
branch: feat/qglobal_config_manager
40+
41+
- name: Download profiles from remote git repository
42+
uses: qprofiles-synchronizer
43+
with:
44+
sync_mode: overwrite
45+
46+
- name: Download plugins
47+
uses: qplugins-downloader
48+
with:
49+
force: false
50+
threads: 5
51+
52+
- name: Synchronize plugins
53+
uses: qplugins-synchronizer
54+
with:
55+
action: create_or_restore
56+
57+
- name: Handle the qgis_global_settings.ini file (applied for all profiles)
58+
uses: qglobal-config-manager
59+
with:
60+
src: ./examples/global_config/qgis_global_settings.ini

0 commit comments

Comments
 (0)