18916 Commits

Author SHA1 Message Date
Peter Petrik
0a74eef133 ifdef out whole class on iOS 2021-01-28 06:18:20 +10:00
Peter Petrik
6a1bb9c01d fix sip 2021-01-28 06:18:20 +10:00
Peter Petrik
ed45bc1319 do not use QProcess on iOS 2021-01-28 06:18:20 +10:00
Nyall Dawson
d6c8133b92 Dox 2021-01-28 02:25:09 +10:00
Nyall Dawson
ddf6245f36 Move responsibility for retrieving lists of custom user CRSes to
QgsCoordinateReferenceSystemRegistry

This was the last bit of untested, direct sql database access relating
to custom projections. Now everything is nice and central and protected
by unit tests.
2021-01-28 02:25:09 +10:00
Nyall Dawson
8e26132404 More logic to QgsCoordinateReferenceSystemRegistry 2021-01-28 02:25:09 +10:00
Nyall Dawson
fae30b56ab Move logic for removing user crs to QgsCoordinateReferenceSystemRegistry 2021-01-28 02:25:09 +10:00
Nyall Dawson
2fe110c7c0 Add a method to refresh the definition of an existing QgsCoordinateReferenceSystem
object

Updates the definition and parameters of the coordinate reference system to their
latest values.

This only has an effect if the CRS is a user defined custom CRS, and the definition
of that custom CRS has changed. In this case the parameters of the object (such as the
proj and WKT string definitions, and other related properties) will be updated to
reflect the current definition of the custom CRS.

Any objects which store CRS objects should connect to the QgsApplication::coordinateReferenceSystemRegistry()'s
QgsCoordinateReferenceSystemRegistry::userCrsChanged() signal and call this method
on their stored CRS objects whenever the signal is emitted in order to update these
CRSes to their new definitions.

Refs #40704
2021-01-28 02:25:09 +10:00
Nyall Dawson
149925043c Add a new QgsCoordinateReferenceSystemRegistry singleton attached
to QgsApplication

In the long term all methods for retrieving available CRS details
should be moved here (instead of being scattered all over the place,
as they are now). But for now the logic for saving and updating
user CRS definitions has been moved here only.

The initial motivation is to create a central place where objects
can connect to in order to listen for when a user makes changes
to their custom projections.

Refs #40704
2021-01-28 02:25:09 +10:00
Nyall Dawson
c4818a0de7 Unlock composition using transformed previewed cache image of labeling
results as well as map layers

This extends the recent addition of smooth map updates for raster
layers to also apply to map labels. Now you'll see a scaled/transformed
version of the previous map render's labels while the new labeling
results are being generated in the background.

Avoids "flashy" redraws of map labels
2021-01-27 21:50:13 +10:00
Nyall Dawson
bb746c6266 Add API to pass approximate layer rendering time estimatation to
map layer renderers

These renderers can then use the layer rendering time for the previous
map render job to refine their logic regarding when its appropriate
to start compositing the layer render
2021-01-27 21:50:13 +10:00
Morten Sickel
ead85b1004
Make the db managers import function more robust towards (some types of) invalid layers.
Fix #41152
2021-01-27 18:17:17 +10:00
Alessandro Pasotti
f4c21f5c9d
Merge pull request #41161 from elpaso/bugfix-gh41109-followup
Followup #41109: fix algorithms
2021-01-26 16:36:49 +01:00
Alessandro Pasotti
6e9389c4b2 Fix test result (because NULL is a distinct value like in PG SQL) 2021-01-26 13:17:17 +01:00
Alessandro Pasotti
9d18fe14f7 Fix basicstatisticsforfields tests 2021-01-26 09:58:53 +01:00
Denis Rouzaud
57c5a6fc26 make virtual methods protected so they can be overidden in Python 2021-01-25 20:43:34 +01:00
Ivan Ivanov
df17603ce8 Added docs for the virtual private methods in QgsAbstractRelationEditorWidget 2021-01-25 20:43:34 +01:00
Denis Rouzaud
30db6fa1c8 add method to get relation in QgsAbstractRelationEditorWidget 2021-01-25 20:43:34 +01:00
Matthias Kuhn
f180ef9d76
Merge pull request #41153 from dericke/db_manager_list_comprehension
Refactoring DB Manager Plugin to use list comprehensions and generators
2021-01-25 19:31:04 +01:00
Denis Rouzaud
375764d8df
make QgsAbstractRelationEditorWidget private virtual methods available in bindings (#41159) 2021-01-25 14:27:01 +01:00
Evan Derickson
d79100a204 List comprehension formatting 2021-01-24 16:34:35 -08:00
Evan Derickson
fe184e8e71 Formatting list comprehension 2021-01-24 16:34:03 -08:00
Evan Derickson
63e77371f6 List comprehensions to generators 2021-01-24 16:26:53 -08:00
Evan Derickson
8cd0f92139 Undo removal of else 2021-01-24 16:09:53 -08:00
Evan Derickson
beefb9ed45 Replace str format with str cast 2021-01-23 20:09:01 -08:00
Evan Derickson
4e41ee6db2 More list comprehensions, str.join() 2021-01-23 20:06:27 -08:00
Evan Derickson
4b50c1a7a7 For loops to list comprehension 2021-01-23 16:06:29 -08:00
Matthias Kuhn
a84f2a2065
Merge pull request #41009 from suricactus/dms_gui
Document management system a.k.a. polymorphic relations GUI
2021-01-22 08:39:35 +01:00
Martin Dobias
0cf985f671 Peter's review 2021-01-20 18:30:02 +01:00
Martin Dobias
302469450f Singleton, code cleanups, more tests, error reporting 2021-01-20 18:30:02 +01:00
Andrea Giudiceandrea
95f25cc079 [MetaSearch] Update UK and UNEP GRID CSW servers
The new CSW servers substitute the unavailable or unreliable and soon to be deactivated old ones.
2021-01-20 09:29:40 +10:00
Nyall Dawson
36f68e4fc9 Add mechanism for temporarily disabling all network caching
to QgsNetworkAccessManager, and add a checkbox in the network
logger panel to allow users to temporarily disable the network cache

This can be VERY useful when debugging QGIS network activity, or when
using QGIS to test server side changes.

This is a transient setting only, and is forgotten as soon as QGIS
is closed. That's by design -- we don't want users to accidentally
leave this enabled and cause unnecessary server load.
2021-01-20 09:28:16 +10:00
Nyall Dawson
10789b12fc Fix comparison sort order for points to path test 2021-01-20 09:08:35 +10:00
Nyall Dawson
9cba2489bc Use parent symbol type instead of layer geometry type to decide
which line symbol layer settings to show

Fixes fill symbol only related properties (like ring filters) show
for line symbols in some contexts.

Fixes #33398
Fixes #24131
2021-01-20 06:01:25 +10:00
Ivan Ivanov
ecd616b51b Add sip convert for QgsMapToolDigitizeFeature 2021-01-19 17:11:31 +02:00
nirvn
a84647cf30 follow up ab0eba2 : crash-free implementation 2021-01-19 14:53:53 +07:00
Nyall Dawson
ff730b6ee6 Add optimised method to QgsMapToPixelSimplifier which avoids clones
in unwanted circumstances and works on QgsAbstractGeometry objects
instead of QgsGeometry
2021-01-19 16:48:12 +10:00
Nyall Dawson
538a5ecefd Improve docs to make it clearer that QgsMapSettings::visibleExtent
is probably what you want, not QgsMapSettings::extent...
2021-01-19 11:04:55 +10:00
uclaros
9a2e9001a2 Fix failing test
Output feature order cannot be made backwards compatible so we're forced to modify the test to pass.
2021-01-19 05:09:48 +10:00
uclaros
43e673a143 Complete points to paths port 2021-01-19 05:09:48 +10:00
Ivan Ivanov
449e2757d9 Added QgsRelation::Type 2021-01-18 12:39:38 +02:00
Ivan Ivanov
6dc92b540c Support polymorphic relationship strength 2021-01-18 12:39:37 +02:00
Nyall Dawson
78cb67a95d Add method to convert QgsPointCloudAttributeCollection to QgsFields 2021-01-18 13:47:31 +10:00
Nyall Dawson
d6c0b2f0a8 Add method to get equivalent QVariant type for a point cloud attribute 2021-01-18 13:47:31 +10:00
Nyall Dawson
155ee72a17 Remove remnant docx 2021-01-18 13:47:31 +10:00
Belgacem
bec8fe5f2e rollback the existing implementation and use QgsHighlight 2021-01-18 08:54:56 +10:00
Belgacem
6de83cd662 initial highlighting implementation 2021-01-18 08:54:56 +10:00
nirvn
ab0eba218c [processing] Fix file download algorithm's temporary file missing proper extension 2021-01-18 08:35:05 +10:00
Alessandro Pasotti
47c1072c06
Merge pull request #41033 from elpaso/connections-api-queryresult-model-followup
Fix QgsQueryResultModel crash
2021-01-16 11:44:54 +01:00
Alessandro Pasotti
0290024f21 Remove unused MAX_CACHE_LAYERS 2021-01-16 06:40:33 +10:00