70873 Commits

Author SHA1 Message Date
Nyall Dawson
31d1df320a Move projection/transformation related files to core/proj
Minor cleanup
2021-05-08 07:49:27 +10:00
nirvn
0ee3de2d7b [text renderer] Fix handling of semi-opaque font colors (i.e. rgba) 2021-05-08 07:25:21 +10:00
Even Rouault
1a3be589d3
Merge pull request #43117 from agiudiceandrea/fix-42716-release-on-cancel
Release datasource when cancelling loading of OGR sublayers
2021-05-07 22:12:45 +02:00
Nyall Dawson
2c75fd0ca1 Sipify 2021-05-07 19:48:19 +10:00
Nyall Dawson
98f0bcbd36 Add fill/brush symbol support to embedded symbol renderer 2021-05-07 19:48:19 +10:00
Matthias Kuhn
8651055336
Merge pull request #43083 from troopa81/fix_pg_inor_text
[Postgres] Use IN clause instead of OR for whereClause on text primary keys
2021-05-07 11:35:04 +02:00
Julien Cabieces
9832e56448 [Postgres] Use IN clause instead of OR for whereClause on text primary
keys
2021-05-07 10:20:40 +02:00
Nyall Dawson
ef9dd06d3e Add cmake flag to optionally disable spatialite support
If turned off, disables the spatialite, wfs, virtual providers and the
offline editing plugin as a result.

Intended for development purposes only, as the spatialite linkage can
be problematic when building against non-system proj/gdal versions
2021-05-07 16:21:19 +10:00
Nyall Dawson
3248cc5786 More efficient test 2021-05-07 11:45:07 +10:00
Nyall Dawson
e9cf180dac [api] Add methods for retrieving datum ensemble details for a
QgsCoordinateReferenceSystem

Requires proj >= 8.0
2021-05-07 11:45:07 +10:00
MorriganR
a4e4997e72 QgsFeatureId as const
Co-authored-by: Alessandro Pasotti <elpaso@itopen.it>
2021-05-07 09:23:34 +10:00
MorriganR
84232a2eca fix N+1 problem for Scale Tool 2021-05-07 09:23:34 +10:00
rldhont
bb5871c8c6 [Processing][Test] QgsProcessingParameterVectorLayer description string - Deactivated tests
QgsProcessingParameterVectorLayer multi data types does not work as QgsProcessingParameterFeatureSource
2021-05-07 08:41:51 +10:00
rldhont
cde42b8bab [Processing][Test] QgsProcessingParameterRasterLayer description string 2021-05-07 08:41:51 +10:00
rldhont
9438291a11 [Processing][Test] QgsProcessingParameterVectorLayer description string 2021-05-07 08:41:51 +10:00
rldhont
873307fa06 [Processing][Test] QgsProcessingParameterFeatureSource description string 2021-05-07 08:41:51 +10:00
Andrea Giudiceandrea
a21a1e64ed
Release datasource when cancelling loading of OGR sublayers 2021-05-07 00:24:32 +02:00
Nyall Dawson
abd53648f0 Update src/core/symbology/qgsmapinfosymbolconverter.cpp
Co-authored-by: Paul Blottiere <blottiere.paul@gmail.com>
2021-05-07 06:38:09 +10:00
Nyall Dawson
74aa98aacf Update test 2021-05-07 06:38:09 +10:00
Nyall Dawson
585802bdbc Remove unused variables 2021-05-07 06:38:09 +10:00
Nyall Dawson
1a4d7b0288 Improved conversion of MapInfo line symbols
Many MapInfo line symbols don't translate well into OGR styles, so
in order to improve the quality of the conversion this commit introduces
a new QgsMapInfoSymbolConverter class which contains utility functions
for converting MapInfo symbols by ID to their QGIS equivalent.

Implemented for line symbols only for now.
2021-05-07 06:38:09 +10:00
Alessandro Pasotti
f9014ada2c
Merge pull request #43101 from elpaso/simplify-shader-clone
Simplify shader clone (use copy ctor)
2021-05-06 16:33:20 +02:00
Alessandro Pasotti
3c8b24dcc2 Simplify shader clone (use copy ctor) 2021-05-06 14:43:41 +02:00
Nyall Dawson
6a9133c747 [layouts] When determining whether a layout requires rasterization
in order to export correctly, skip over any items which aren't visible

These don't affect the output in any way, so showing warnings about
forced rasterization is misleading
2021-05-06 18:23:36 +10:00
Nyall Dawson
5eb2d7244b Add unit tests for methods 2021-05-06 18:23:36 +10:00
Nyall Dawson
dce9c15f57 [layouts] Move methods for determining if a layout requires
rasterization or contains advanced effects to QgsLayoutExporter
instead of QgsLayoutDesignerDialog

This places them in a re-usable, testable location instead of
in private code
2021-05-06 18:23:36 +10:00
Nyall Dawson
be2c5382cb Add utility function QgsSymbolLayerUtils::condenseFillAndOutline
Attempts to condense a fill and outline layer, by moving the
outline layer to the fill symbol's stroke if possible.
2021-05-06 18:23:09 +10:00
Matthias Kuhn
6991f2cce3
Merge pull request #43093 from zy6p/patch_qtextstream
Fix QTextStream encode with UTF-8
2021-05-06 08:29:13 +01:00
knowmore
a06e9d275b Fix QTextStream encode with UTF-8 2021-05-06 14:17:02 +08:00
Paul Blottiere
346bffc5a1
Merge pull request #43085 from DelazJ/patch-21
Remove duplicate word and fix labels
2021-05-05 19:45:17 +02:00
Harrissou Sant-anna
411e33ec01
Fix GUI labels case 2021-05-05 17:33:25 +02:00
Harrissou Sant-anna
e659eb0aa4
Remove unnecessary colon 2021-05-05 17:33:13 +02:00
Harrissou Sant-anna
ce56e39f1b
Remove duplicate word 2021-05-05 16:59:10 +02:00
Matthias Kuhn
bf2a8b11ed
Merge pull request #42890 from rldhont/unvirtualize-setdatasource
[API] Unvirtualize layer setDataSource method
2021-05-05 10:22:09 +01:00
MorriganR
c640f46509 last small fix 2021-05-05 18:12:47 +10:00
MorriganR
a69199c523 fixed small misunderstood 2021-05-05 18:12:47 +10:00
MorriganR
dcf20494f2 Add connect timeout for Postgres NOTIFY Listener 2021-05-05 18:12:47 +10:00
MorriganR
c4346f92e2 Fix crash when init a layer with invalid or not postgres data provider and Refresh on Notify Enabled 2021-05-05 18:12:47 +10:00
MorriganR
b7f990d77b Fix db login procedure for listener 2021-05-05 18:12:47 +10:00
vcloarec
89c069f695 address review 2021-05-05 09:03:13 +02:00
vcloarec
843eebc6ec do not use hybrid symbol layer type 2021-05-05 09:03:13 +02:00
vcloarec
4bb0dcab84 fix indentation and other minor 2021-05-05 09:03:13 +02:00
vcloarec
9a3ad85533 interpolated line symbol layer 2021-05-05 09:03:13 +02:00
Matthias Kuhn
ef3d9a2c32
Merge branch 'master' into unvirtualize-setdatasource 2021-05-05 08:01:26 +01:00
Nyall Dawson
02685f1224 [feature] Add "persist layer metadata" checkbox to export vector file dialog
When checked (as it is by default), any layer metadata present in the
source layer will be copied and stored in the newly created destination
file.

So e.g. when right clicking a layer a project (or browser) with metadata
attached and exporting to a new format, this option will ensure that
the metadata is nicely transferred over to the newly created gpkg.
2021-05-05 14:12:50 +10:00
Nyall Dawson
93b7a0c3d5 [api] Add option to QgsVectorFileWriter to store layer metadata for
created layer
2021-05-05 14:12:50 +10:00
Nyall Dawson
921e6fa1a1 Fix incorrect error message when .shp.xml metadata file doesn't exist 2021-05-05 14:12:50 +10:00
Martin Pergler
2fed93cdfd
Better help for format function
Added description of what syntax/parsing engine is used for the formatting. Motivated by https://github.com/qgis/QGIS/issues/42806, but in general a good idea so users can look up more in detail what is possible. Also uniformized spelling (placeholder vs placeholder).
2021-05-05 09:04:36 +10:00
Nyall Dawson
f5449a1fe9 (optionally) Store layer notes in QML/QLR and allow copying/pasting
when copying styles between layers

Sponsored by Alta Ehf
2021-05-05 08:44:22 +10:00
Nyall Dawson
7ec1abb725 Add some unit tests for layer notes 2021-05-05 08:44:22 +10:00