20208 Commits

Author SHA1 Message Date
nicogodet
f6e20c3e0b fix tiny mistakes 2021-10-07 08:31:54 +10:00
vcloarec
99a832ef1e fix null temporal properties 2021-10-05 22:45:47 -04:00
Nyall Dawson
b48d7dcc9f Don't reset mesh layer styling when changing data source for layer
This breaks fixing mesh layer paths when restoring projects with
broken mesh layers -- fixing the path causes the existing style
to be lost.

Fixes #45391
2021-10-05 22:45:47 -04:00
Augustin Trancart
061b810dac Fix behaviour of triggers when logging an existing layer
When adding logging via db manager to an existing layer, all the
time_start of existing features are still null. When we modify one
feature for the first time, the update trigger fires and insert a row
for the past state of the feature. In turn, this fires the INSERT
trigger for this row, and the execution goes inside the `if
NEW.time_start is NULL`, which set the end timestamp to NULL, making the
old row still visible in the _current view.

In other word, the insert trigger makes the assumption that a null start
timestamp means now, which is not true in the case described above.

This commit fixes this assumption by initially setting it to `-infinity`
for existing rows.
2021-10-06 12:00:39 +10:00
PeterPetrik
0150ab8708 fix #41870 force UTF-8 encoding for prj files 2021-10-06 06:10:30 +10:00
Nyall Dawson
d6dae3e16a Add api for map canvas/map tools to retrieve layers by ID, including
layers which have been set for a canvas but which AREN'T part of
QgsProject::instance()

Required to fix test failure in labeling map tools, but ultimately
a necessary piece of API to ensure that map tools aren't so tightly
bound to QgsProject::instance()
2021-10-05 12:21:56 +10:00
Mario Locati
1abf47f73f Fixed the endpoint URL 2021-10-05 10:50:42 +10:00
Mario Locati
708a89e345 Addition of the INGV endpoint 2021-10-05 10:50:42 +10:00
Juergen E. Fischer
bc757fe331 also build pyi with sip-build (followup 6fd34ca92b3e2bc) 2021-10-04 12:56:23 +02:00
Alessandro Pasotti
5a572dacaa Fix DB manager postgis double query
Fixes #45318
2021-10-02 07:18:18 +10:00
Nyall Dawson
b54001c358 Copy output image format and output size to QgsRenderContext
These QgsMapSettings properties are useful to rendering operations
to use when they need to create temporary QImages during the
rendering
2021-10-02 07:16:40 +10:00
Loïc Bartoletti
6c76bb1219 sipify 2021-10-01 09:53:06 +02:00
vcloarec
812bbf9e96 other approach 2021-10-01 09:53:05 +02:00
Loïc Bartoletti
efb082b520 sipify 2021-10-01 09:53:05 +02:00
Loïc Bartoletti
bf745b7d96 Add QgsMapTool::toLayerCoordinates which acepts QgsPoint 2021-10-01 09:53:04 +02:00
Loïc Bartoletti
994d1a4abf
Merge pull request #45303 from kadas-albireo/master
Assorted cmake improvements
2021-10-01 09:02:43 +02:00
Sandro Mani
c5bb41dc01 PyQt5 cmake improvements 2021-09-30 12:13:29 +02:00
Juergen E. Fischer
f76af64fba msvc build fixes 2021-09-29 23:49:33 +02:00
Juergen E. Fischer
b843556719 fix msvc build 2021-09-28 21:40:49 +02:00
Even Rouault
08ad87f123
Merge pull request #45262 from nyalldawson/provider
Always pass on transform context to providers, even minimal ones
2021-09-28 21:20:53 +02:00
Loïc Bartoletti
98ff01ea1c
Fix Z/M dimension URI via DB Manager. Fixes #34894 (#45223) 2021-09-28 21:14:45 +02:00
mhugent
de5ab2948f
Merge pull request #45037 from mhugent/mvt_expressions_interpolate
Mvt expressions interpolate
2021-09-28 10:49:35 +02:00
Nyall Dawson
bbd8a5c902 Add option not to overwrite existing property in
QgsAuxiliaryLayer::createProperty(*)

Instead, if a property already exists it will be upgraded to
an expression based property of the form:

    coalesce("new aux field", 'existing' || 'property' || 'expression')

(i.e. allow per-feature value overrides from the auxiliary field,
but by default fallback to the existing property definition)

Refs #44475
2021-09-28 13:25:54 +10:00
Nyall Dawson
094302d9e1 Correctly handle transform context for vector tile layers 2021-09-28 10:45:51 +10:00
Nyall Dawson
c3ac518912 Spelling 2021-09-28 08:57:44 +10:00
Nyall Dawson
51cb63feec Add a target dpi argument to QgsImageCache
This allows callers to specify the desired rendering resolution of the
image when they aren't explicitly requesting a preset image size.

It can be used for image drivers for formats which don't have a fixed
size (e.g. pdf) so that the image is rendered in the desired resolution.
2021-09-28 08:57:44 +10:00
Antoine
030bfd96b5 change the var with another 2021-09-27 16:13:20 +10:00
Nyall Dawson
b5fb85bf7a Add missing signals to QgsAuthSettingsWidget 2021-09-27 15:38:20 +10:00
Nyall Dawson
f2856db943 Implement a more robust way of limiting sizes for symbol preview icons 2021-09-27 11:42:33 +10:00
Nyall Dawson
4f3efc11f8 spelling 2021-09-27 11:42:33 +10:00
Nyall Dawson
d3792a9f16 Add QgsMapToPixel::isValid() to determine if a map to pixel is default
constructed with no parameters set or not
2021-09-27 11:42:33 +10:00
Nyall Dawson
2fc60fcd7f Fix compatibility of moved QFLAGS 2021-09-26 11:24:51 +10:00
Nyall Dawson
0ab6113e88 Promote QgsMapSettings and QgsRenderContext enums to enum class, move to Qgis 2021-09-26 11:24:51 +10:00
Antoine
68f003cb62 replace descriptionAsPythonString 2021-09-25 06:57:43 +10:00
Antoine
968db20b82 add \see and \since in comments 2021-09-25 06:57:43 +10:00
Antoine
968a5e8532 add method to get parameter description for python script 2021-09-25 06:57:43 +10:00
Nyall Dawson
f9def2d92b Move QgsMapToolCapture::layer to parent class (QgsMapToolAdvancedDigitizing) 2021-09-24 16:21:44 +10:00
Nyall Dawson
db4b0fed86 Move to core 2021-09-24 15:47:10 +10:00
Nyall Dawson
d1e43b63fb Add new class QgsRecentStyleHandler
Accessible via QgsGui::recentStyleHandler(), this is intended as
a place to store recently used style items (e.g. symbols).

Initially it's used just for annotation items so that newly
created annotation items are automatically set to the same style
as the most recently modified item of the same type (e.g. so
that users drawing many point annotations don't need to keep
setting it back to the same appearance)! But the api is kept
flexible for additional uses in future... (eg layout items)
2021-09-24 15:47:10 +10:00
Even Rouault
988d862fb5 New shapefile layer dialog: avoid accidental overwrite of a file whose extension is not specified
and avoid closing the dialog when the user doesn't confirm overwriting

Fixes #44299
2021-09-24 13:42:35 +10:00
Even Rouault
0e45d513a8 QgisApp::closeProject(): cancel canvas jobs before closing the project, to avoid rendering jobs to access deleted objects (fixes #44144) 2021-09-24 12:40:53 +10:00
Nyall Dawson
7027d72b3d Spelling 2021-09-24 12:15:43 +10:00
Nyall Dawson
806735ccae Implement responsive cancelation for more paint effect operations 2021-09-24 12:15:43 +10:00
Nyall Dawson
702e1cc2b8 Add QgsFeedback arguments to QgsImageOperation blur methods to support
responsive cancelation of operations
2021-09-24 12:15:43 +10:00
Nyall Dawson
d838ce709e Allow a QgsFeedback object to be associated with a render context,
for cancelation check support

While there is the existing QgsRenderContext::renderingStopped()
check, this doesn't play well with other parts of QGIS which utilise
a QgsFeedback object for cancelation support. By adding support
for a proper QgsFeedback object in render contexts then it becomes
trivial to pass this on to feature requests, expression contexts,
and other potentially expensive functions so that these can
all be canceled responsively too.

(At some stage in the future we should consider deprecating
QgsRenderContext::rendereringStopped(), but that's not done here)
2021-09-24 12:15:43 +10:00
Loïc Bartoletti
48c77a3bde more const 2021-09-24 11:17:54 +10:00
Loïc Bartoletti
e7568f24ef const qgsrectangle 2021-09-24 11:17:54 +10:00
Loïc Bartoletti
c63c630c16 const qgsgeometryutils 2021-09-24 11:17:54 +10:00
Loïc Bartoletti
9e363a4aea more const in qgscircle 2021-09-24 11:17:54 +10:00
Sandro Mani
6fd34ca92b Add sip5/sip6 sip-build support 2021-09-24 08:56:40 +10:00