88120 Commits

Author SHA1 Message Date
Matthias Kuhn
3b2e984384 Add github action 2024-10-07 17:08:17 +02:00
Matthias Kuhn
11c70a7e60 Build with vcpkg deps 2024-10-07 17:08:17 +02:00
qgis-bot
2febb72730 auto sipify 🍺 2024-10-07 11:58:50 +00:00
Denis Rouzaud
050e57a31d Update src/gui/settings/qgssettingseditorwidgetwrapperimpl.cpp
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
2024-10-07 13:55:31 +02:00
Denis Rouzaud
1df584d1c0 also set the widget value when configuring editor 2024-10-07 13:55:31 +02:00
Denis Rouzaud
c75588d84a settings edtior wrappers: add direct constructor + add combo box editor for strings
this improves the usage from Python plugins
2024-10-07 13:55:31 +02:00
qgis-bot
789fd9c3b7 auto sipify 🍺 2024-10-07 07:36:05 +00:00
Nyall Dawson
3bc87911a1 Regenerate primary key when making layer permanent if layer property set
Respect the OnConvertFormatRegeneratePrimaryKey layer property when
making a temporary layer permanent.

This ensures that processing outputs which require primary key
regeneration will correctly get new primary keys when they are
initially run with a memory layer output, and then later that
memory layer is made permanent

Fixes #58942
2024-10-07 09:32:46 +02:00
Nyall Dawson
594b466160 [api] Allow sink flags to be specified for QgsVectorFileWriterTask 2024-10-07 09:32:46 +02:00
Andrea Giudiceandrea
fefba6c472 Fix typos in QgsUnitTypes 2024-10-07 09:15:30 +02:00
Matthias Kuhn
e64640b404
Fixup leftovers from test env 2024-10-07 08:04:57 +02:00
qgis-bot
7a16fc4efb auto sipify 🍺 2024-10-07 05:27:55 +00:00
Denis Rouzaud
ec839e9d7c
rename settings editor widget wrappers (#58974)
to allow more than 1 widget type to be supported for each type of setting
2024-10-07 07:24:40 +02:00
Matthias Kuhn
699c004a5d
Merge pull request #58983 from m-kuhn/commentify
Isolate "post sticky comment" logic
2024-10-06 23:34:10 +02:00
Matthias Kuhn
c78be25fc0 Make code more solid 2024-10-06 20:51:21 +02:00
Matthias Kuhn
e9d122205d Isolate post sticky comment logic 2024-10-06 19:59:59 +02:00
ValPinna
93ce9bf5c9 Update qgsunittypes.cpp
A possible type founded during Translation
2024-10-06 05:28:51 +10:00
Nyall Dawson
f549811d78 Only use threaded legend hit test for preview renders
In other cases we'll need a blocking hit test anyway, and we
run a risk of deadlocks if a non-preview render is then started
on the main thread.

Fixes #58496
2024-10-04 13:42:38 +10:00
Harrissou Sant-anna
e8f1b343c4 Adjust tests 2024-10-04 07:24:02 +10:00
Harrissou Sant-anna
9618f28de3 Revert pluralization of strings with accuracy not being integer 2024-10-04 07:24:02 +10:00
Harrissou Sant-anna
8794efa961 Candidate strings for plural forms in translation 2024-10-04 07:24:02 +10:00
Martin Dobias
6853c3cefc Gently bump up the number of allowed mismatched pixels 2024-10-03 14:59:04 +02:00
Martin Dobias
58e47f19f4 Make coordinates in point cloud chunks independent from scene origin
Until now, coordinates of chunks of point clouds were using "world" coordinates,
i.e. they were relative to the 3D scene origin point. As a part of preparation
for large scene support (QEP #301), we need coordinates inside chunks to be
independent from the scene origin point. For each point cloud chunk, we pick
origin point as a corner of the chunk's 3D box, which should guarantee that
coordinates within chunk (floats) will have reasonable numerical precision.

I have also used the opportunity to simplify the code that handles point cloud
chunk coordinates: rather than having flipped coordinates (x,-z,y) inside chunks,
we are using map coordinates without flipping (x,y,z), only relative to the origin
point of the chunk. The flipping of axes is handled by QTransform attached
to each chunk. (Hopefully when all chunked entity implementations get updated,
we will be able to remove all the axis flipping everywhere by just removing
the rotation in associated QTransforms.)

There's also a fix for a crash, when point cloud uses coloring based on classification
and triangulation is enabled (the pointSize array was not getting populated for parent
nodes).
2024-10-03 14:59:04 +02:00
Martin Dobias
b1da5666e5 Allow early cancellation of point cloud chunk loader
If point cloud rendering uses triangulation, the chunk loader
now may get cancelled before triangulation actually starts.
(So if e.g. user changes 3d renderer's properties, the refresh is faster)
2024-10-03 14:59:04 +02:00
Alessandro Pasotti
5c142d8009
Merge pull request #58955 from elpaso/bugfix-gh58809-mssql-nvarchar-length
[mssql] Fix nvarchar length #58809
2024-10-03 14:17:54 +02:00
Jean Felder
b3aad567c8 qgswfsgetfeature: Use createFromUserInput everywhere for crs 2024-10-03 14:05:44 +02:00
Jean Felder
ba85632b10 qgswfsgetfeature: Properly handle ogc urns in post requests
There are 2 different parameters to check to define the output crs:
- the request parameter (`SRSNAME` from the request)
- the query crs parameter

For a `GET` request, if `SRSNAME` is set, both parameters are set and
equal.
For a `POST` request, only the query parameter is set if defined.

In `writeGetFeature()`, the `outputCrs` correctly takes into account
the query parameter. However, this is not the case for the output srs
name (`srsName`) which only takes into account the query CRS as an
auth id.
Therefore, the output srsName will always be defined as an authid
even if the parameter is an ogc urn.

This issue is fixed by first computing the output srs
name (`outputSrsName`) by taking
into account the query and the query parameters. Then, this name is
used to compute `outputCrs`.
2024-10-03 14:05:44 +02:00
Jean Felder
b77ccd8641 test_qgsserver_wfs: Add some post tests with version 1.1.0 2024-10-03 14:05:44 +02:00
Jean Felder
af0cf1dafc qgswfsgetfeature: Rename srsName to ouptutSrsName in startGetFeature
This makes it easier to understand its usage.
2024-10-03 14:05:44 +02:00
Jean Felder
d2dc34925d qgswfsgetfeature: Properly check axis inversion in startGetFeature
The axis inversion needs to be checked on the output crs, not the
input one.

The existing test does not detect this issue because the requested
output crs is the same as the input one.
To cover this case, a new test with a output crs different from the
input one is added.
2024-10-03 14:05:44 +02:00
Jean Felder
7504a550c1 qgswfsgetfeature: Fix outputCrs in startGetFeature if defined as ogc urn
The `srsName` used in `QgsWfsGetFeature::startGetFeature` can be
defined with the `urn:ogc:def:crs:EPSG::X` syntax. In that case, the
destination crs is not valid because it is created with the default
`QgsCoordinateReferenceSystem` constructor which does not handle this
syntax.
Therefore, in that case, the requested transformation fails and the
envelope coordinates are always in the input crs (the layer one).

This issue is fixed by using
`QgsCoordinateReferenceSystem::setDestinationCrs` which handles the
ogc urn syntax.

The test suite already covers the `urn:ogc:def:crs:EPSG::X` syntax
case. However, this issue is not detected because the requested output
crs is the same as the input one.
2024-10-03 14:05:44 +02:00
qgis-bot
3299ab193b auto sipify 🍺 2024-10-03 09:49:27 +00:00
Nyall Dawson
94ec0d9139 QgsMapLayer::setDataSource don't require layer name, provider
Make them optional, and default to current layer name/provider
when not specified
2024-10-03 19:46:08 +10:00
Alessandro Pasotti
25116f2076 Add QMetaType import 2024-10-03 11:15:03 +02:00
Alessandro Pasotti
3c9deaae57 [mssql] Fix nvarchar length #58809 2024-10-03 11:07:17 +02:00
Loïc Bartoletti
ebe818745a
Update CONTRIBUTING.md
Fix a typo: INSTALL.md vs install.md
2024-10-03 09:11:28 +02:00
qgis-bot
88c4e3fb19 auto sipify 🍺 2024-10-03 02:52:33 +00:00
Nyall Dawson
9df0811ef4 Update src/core/symbology/qgssymbol.cpp 2024-10-03 12:49:18 +10:00
Nyall Dawson
cae0b3edda Update src/core/symbology/qgssymbol.cpp
Co-authored-by: Julien Cabieces <julien.cabieces@oslandia.com>
2024-10-03 12:49:18 +10:00
Nyall Dawson
5c778c04b5 Fix clipped render when using geometry generator symbol in layout items
Fixes #58909
2024-10-03 12:49:18 +10:00
Nyall Dawson
a7a5f972ae Add render context flag to always disable symbol clipping 2024-10-03 12:49:18 +10:00
Tom Kralidis
afb31e66a5 do not translate log messages 2024-10-03 12:40:51 +10:00
Tom Kralidis
e9695d8007 update string translation 2024-10-03 12:40:51 +10:00
Tom Kralidis
e421f08331 add default 2024-10-03 12:40:51 +10:00
Tom Kralidis
f0d9167455 add default 2024-10-03 12:40:51 +10:00
Tom Kralidis
ee2c16c50b MetaSearch: add logging 2024-10-03 12:40:51 +10:00
qgis-bot
8f4da32b6b auto sipify 🍺 2024-10-02 22:13:35 +00:00
Alessandro Pasotti
85ccffecea [labeling] Fix SLD export of negative offset
Fix #58862
2024-10-03 08:10:12 +10:00
uclaros
fae8e82a6b clang-tidy 2024-10-03 08:09:24 +10:00
uclaros
87445ee772 tidy up includes 2024-10-03 08:09:24 +10:00