20186 Commits

Author SHA1 Message Date
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
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
Loïc Bartoletti
1623d8e5a0 sipify 2021-09-24 08:54:47 +10:00
Even Rouault
d69d8e5cec qgsfileutils: add method to know if we are close to the limit of simultaneously opened files (refs #43620) 2021-09-24 08:30:51 +10:00
Alexander Bruy
1e2bb8e053 fix tests 2021-09-24 08:24:31 +10:00
BergWerkGIS
82b2f2745c add tests 2021-09-24 08:24:31 +10:00
BergWerkGIS
fd3143ce23 add expected fixtures 2021-09-24 08:24:31 +10:00
BergWerkGIS
6c45715345 add cost columns to test network 2021-09-24 08:24:31 +10:00
BergWerkGIS
38ac086670 mark 'method' parameter as optional 2021-09-24 08:24:31 +10:00
BergWerkGIS
b55db15f85 Processing: v.net.alloc add 'method' parameter 2021-09-24 08:24:31 +10:00
Nyall Dawson
139cc2d3b4 Dynamically change x/y constraint precision based on geographic/non
geographic crs
2021-09-24 08:13:32 +10:00
Nyall Dawson
a94dd8b3c1 Allow CAD dock to be used for geographic CRS, but only allow
the x/y/z/m constraints to be set (not distance or angle based
constraints)
2021-09-24 08:13:32 +10:00
Nyall Dawson
cfaf56cb4b Add a minimal data provider for vector tile layers
Fixes #45153
2021-09-23 12:59:48 +10:00
Peter Petrik
46dbf8a0c4
Merge pull request #45186 from vcloarec/fixForcingLine
Improve mesh editing force by line UI and fixes
2021-09-22 12:38:29 +02:00
Loïc Bartoletti
6562817f39 QgsFeature::setId improve documentation with a warning. fixes #44898 2021-09-22 17:24:13 +10:00
Nyall Dawson
e6b39077a2
Promote QgsCoordinateTransform::TransformDirection to enum class, move to Qgis
This enum was forcing an include of qgscoordinatetransform.h within the
widely used qgsabstractgeometry.h header, causing an absolute explosion
of includes of a bunch of very heavy header classes all across QGIS. By
removing the forced include we can avoid a ton of unwanted includes
and make wider use of forward declarations...
2021-09-22 16:40:49 +10:00
vcloarec
939eca2055 Sipify 2021-09-21 23:47:43 -04:00
Nyall Dawson
0593a7b701 Fix geometry generator when used as symbol for annotation item 2021-09-22 11:45:01 +10:00
Nyall Dawson
57b2761c4c Fix doxygen warning 2021-09-22 11:45:01 +10:00
Nyall Dawson
72d238cc53 Ensure geometry generator symbol layer works correctly outside
of vector layer renderers

Fixes #39159
2021-09-22 11:45:01 +10:00
Sandro Santilli
acf302e7cd Add a distanceWithin method to the QgsGeometryEngine virtual class
And use it from QgsVectorLayerFeatureIterator

References #472

The current implementation is really just a wrapper around distance()
but opens the door for future improvements
2021-09-22 08:36:06 +10:00
Nyall Dawson
07111661b0 Fix color customisation is lost when configuring renderers using
geometry generators

Fixes #38377
2021-09-22 06:21:37 +10:00
Peter Petrik
b4ec12041f
Merge pull request #45140 from vcloarec/tuneMeshEditingWithAdvancedZvalue
Adapt mesh editing following new CAD Z value
2021-09-21 08:11:11 +02:00
Peter Petrik
ef2f404293
Merge pull request #45142 from vcloarec/verticesFacesCount
fix face/vertex count during editing
2021-09-21 08:10:39 +02:00