88022 Commits

Author SHA1 Message Date
Nyall Dawson
0777e7683f Complete EPSG distance unit mapping by adding historic distance units
Ensures we don't perform a lossy conversion of units from the EPSG
CRS database to QGIS units
2024-09-17 14:00:35 +10:00
Denis Rouzaud
7b5d8bea57 fix bad parsing of match list with strings + avoid useless warning 2024-09-17 08:46:27 +10:00
Mathieu Pellerin
bdc2e10384 Disable checkable state for the add feature button for geometryless layers, it makes it clearer the button can be repeatedly pressed 2024-09-17 08:45:03 +10:00
qgis-bot
01292c394d auto sipify 🍺 2024-09-16 21:45:08 +00:00
ViperMiniQ
0b60784285 fix qgsrastercalculator widgets not expanding with window, switch to grid layout 2024-09-17 07:41:55 +10:00
Ben
98905ef6e0 Reset to current master and minor edits 2024-09-17 07:41:14 +10:00
qgis-bot
e9798f0796 auto sipify 🍺 2024-09-16 18:05:27 +00:00
Denis Rouzaud
336000754e
Enable QgsClipper::trimFeature on arm architectures (#58762)
This was apparently a left over from android build on 32 bits.
2024-09-16 20:02:15 +02:00
Alessandro Pasotti
6c52cb20f0
Merge pull request #58719 from elpaso/bugfix-authstorage-api-qt6
Auth storage API fix debug code with QT6
2024-09-16 17:29:00 +02:00
Alessandro Pasotti
a0ec39af65
Update src/core/auth/qgsauthconfigurationstoragedb.cpp
Co-authored-by: Julien Cabieces <julien.cabieces@oslandia.com>
2024-09-16 14:32:11 +02:00
qgis-bot
fce8f62ea1 auto sipify 🍺 2024-09-16 07:36:01 +00:00
Alessandro Pasotti
7ddaa05432
Merge pull request #58717 from ismailsunni/fix-56715-add-apply-calculation-button
Fix 56715 add apply calculation button
2024-09-16 09:32:48 +02:00
qgis-bot
09ec5e2c7d auto sipify 🍺 2024-09-16 07:29:34 +00:00
Nyall Dawson
6cd965c491 Fix test 2024-09-16 17:26:24 +10:00
Nyall Dawson
c726ecd139 Add test mask 2024-09-16 17:26:24 +10:00
Nyall Dawson
a492cb22fb [feature] Support horizontal alignment in HTML labels
For multi-line labels, this allows use of either:

- HTML <p align="xxx"> attributes
- CSS "text-align: xxx"
- HTML <center>some text</center> tags

Supported alignments are left, right, center and justify

Horizontal alignment can be used in all contexts where
HTML text is rendered, EXCEPT for curved labels (since they
are restricted to single-line text)

Sponsored by City of Freiburg im Breisgau
2024-09-16 17:26:24 +10:00
qgis-bot
14bcece730 auto sipify 🍺 2024-09-16 06:55:32 +00:00
Nyall Dawson
1fc5ae33aa Add missing sip cast for QgsFilledLineSymbolLayer 2024-09-16 16:52:20 +10:00
Nyall Dawson
64ab8f6fd4 Update src/core/qgsrenderchecker.cpp 2024-09-16 11:14:45 +10:00
Nyall Dawson
ff79e1e42f Update src/core/qgsrenderchecker.cpp 2024-09-16 11:14:45 +10:00
Nyall Dawson
10e6f0d2e2 Update src/core/qgsrenderchecker.cpp 2024-09-16 11:14:45 +10:00
Thomas Wessel
fefe44fcff qgsrenderchecker.cpp, checks for env.var. QGIS_TEST_REPORT 2024-09-16 11:14:45 +10:00
Dr. Dystopia
4e8e5da6fb Replace sorting implementation 2024-09-16 11:13:39 +10:00
Mathieu Pellerin
18d44e65f6 Fix handling of empty field name in QgsFields' lookupField function 2024-09-16 11:13:21 +10:00
Andrea Giudiceandrea
016a33f43f [processing] Fix warning in postprocessing 2024-09-16 09:31:55 +10:00
Even Rouault
d3d46e71c3 [Lint] qgslocatormodel.cpp: remove compiler warning and tidy code
- gcc 11.4 (false-positively) warns about the `switch ( entry.type )`` at
  line 83 to potentially fallback to ``case Description``. Rework a bit
  to workaround that
- in data(), ``mResults.at( index.row() )`` is repeated many times. Just
  create a variable that is a reference to it to make code more compact
  and readable
- in lessThan(), sourceModel() is called many times. Compilers are not
  smart enough to realize that the return will always be the same, so
  just store it once in a local variable. Also use a typedef to make
  code more compact
2024-09-16 09:30:13 +10:00
Andrea Giudiceandrea
ab611a9a19 [pocessing] QVariant->QMetaType in "Select by attribute"
QgsField.type() returns QMetaType.Type
2024-09-16 08:48:01 +10:00
Andrea Giudiceandrea
81fb58f997 [processing] Fix deprecated QgsField constructor
Using QMetaType.Type in place of QVariant types for:
- "Check validity" qgis:checkvalidity
- "Climb along line" qgis:climbalongline
- "Add geometry attributes" qgis:exportaddgeometrycolumns
- "Advanced Python field calculator" qgis:advancedpythonfieldcalculator
- "Find projection" qgis:findprojection
- "Distance to nearest hub (line to hub)" qgis:distancetonearesthublinetohub
- "Distance to nearest hub (points)"  qgis:distancetonearesthubpoints
- "Concave hull (k-nearest neighbor)" qgis:knearestconcavehull
- "Minimum bounding geometry" qgis:minimumboundinggeometry
- "Distance matrix" qgis:distancematrix
- "Generate points (pixel centroids) along line" qgis:generatepointspixelcentroidsalongline
- "Random points along line" qgis:randompointsalongline
- "Random points in layer bounds" qgis:randompointsinlayerbounds
- "Random points inside polygons" qgis:randompointsinsidepolygons
- "Regular points" qgis:regularpoints
- "Statistics by categories" qgis:statisticsbycategories
- "Text to float" qgis:texttofloat
- "Topological coloring" qgis:topologicalcoloring
2024-09-16 08:48:01 +10:00
Matthias Kuhn
7814e128c5
Merge pull request #58726 from Simon-Lopez/master
Use CMake's SQLite targets
2024-09-15 07:58:19 +02:00
Mathieu Pellerin
4109c8dd8c [clipboard] Do not add a geometry column when copying features from a non-geometry/table layer 2024-09-15 06:24:54 +10:00
Mathieu Pellerin
fcf436c20c [ui][rasters] Fix additional nodata value widget's handling of large double values 2024-09-15 06:23:53 +10:00
Mathieu Pellerin
6d95bfef6b [layouts] Fix computation of atlas rectangle for rotated map items when no atlas geometry available 2024-09-15 06:23:29 +10:00
qgis-bot
59bd89d380 auto sipify 🍺 2024-09-14 03:29:36 +00:00
Even Rouault
6938ba093f [OGR provider] Fix changeAttributeValues() on GeoJSON files for GDAL 3.9.1 and 3.9.2
Running the tests/src/python/test_provider_ogr.py tests against GDAL
master raised a number of failures. I've now realized that the GeoJSON
driver of GDAL 3.9.1 has still a broken implementation of
UpdateFeature().
Now this will *really* fixed per
https://github.com/OSGeo/gdal/pull/10794 for 3.9.3
In the meantime disable using UpdateFeature for GeoJSON for GDAL < 3.9.3

Fixes https://github.com/qgis/QGIS/pull/57736#discussion_r1636226384
2024-09-14 13:26:29 +10:00
Nyall Dawson
59d2308a50 Test mask 2024-09-14 13:25:59 +10:00
Nyall Dawson
b7d18c009a Fix dox 2024-09-14 13:25:59 +10:00
Nyall Dawson
566b2f7286 Ensure label cache is invalidated when a vector layer renderer
affects the labeling and is re-drawn
2024-09-14 13:25:59 +10:00
Nyall Dawson
c50c923261 Add API to determine if feature renderer affects labeling results 2024-09-14 13:25:59 +10:00
Nyall Dawson
beda21c9bd Use labeling engine to render linear referencing labels
Where possible, we now use the labeling engine to register and
render labels from a linear referencing symbol layer. This ensures
that the linear referencing labels correctly participate in
the map labeling problem, including forcing other map labels
to be repositioned to avoid overlaps.
2024-09-14 13:25:59 +10:00
Nyall Dawson
957de0c311 Expose private QgsTextRenderer method for drawing document at point
This allows more efficient rendering when the document and metrics
have already been calculated
2024-09-14 13:25:59 +10:00
Nyall Dawson
372da5c4fa Add API to retrieve label providers from QgsLabelingEngine 2024-09-14 13:25:59 +10:00
Ivan Barsukov
d0dedde547 Fixed typo in allowCommitChanged 2024-09-14 06:01:01 +10:00
Even Rouault
995a1cb9cf [OGR provider] Issue syncToDisk() after [add/delete/rename]Attributes()
Fixes #58669
2024-09-14 06:00:02 +10:00
Even Rouault
14b75673ec test_provider_ogr.py: do not alter source test data, to keep 'git status' clean 2024-09-14 05:58:44 +10:00
Simon Lopez
c06c7c938e Use CMake's SQLite targets
This uses the same targets and variables introduced in
the FindSQLite3 module in CMake starting with version 3.14.

The other CMakeFiles.txt are modified accordingly.
2024-09-13 20:59:46 +02:00
Denis Rouzaud
2d5136af2e
[mvt] support nested match lists for colors 2024-09-13 19:20:34 +02:00
Denis Rouzaud
fb9ed2ae7e
[mvt] use symbol opacity for line layers when the color already has opacity 2024-09-13 19:08:04 +02:00
qgis-bot
e7c0455296 auto sipify 🍺 2024-09-13 15:42:50 +00:00
Denis Rouzaud
281726250f
Merge pull request #58354 from gacarrillor/save_functions_in_project
[feature] Allow users to save expression functions in QGIS project file
2024-09-13 17:39:40 +02:00
qgis-bot
e25bc2089b auto sipify 🍺 2024-09-13 14:55:52 +00:00