55870 Commits

Author SHA1 Message Date
Nyall Dawson
78a606188c Expose some more auth manager methods to Python
These methods either
- only wrap QSettings values (so there's no added security gained
by not exposing them -- it's currently easily possible to achieve
the same results via direct QSettings manipulation)

OR

- are required to allow fully automated QGIS deployment/startup
scripts which rely on auth manager functionality
2019-06-14 08:54:44 +10:00
Harrissou Sant-anna
8fdfd7daf8 Add "styles" to the package algorithm tags
and harmonize error message
2019-06-14 06:53:48 +10:00
Jorge Gustavo Rocha
598582e17d add --version|-v command line option 2019-06-13 19:50:17 +01:00
Alexander Bruy
3a0fb544b3 [processing] fix method name 2019-06-13 15:46:26 +03:00
Alessandro Pasotti
79d90a9ad7
Merge pull request #30192 from elpaso/pg-oid
Use Oid alias instead of unsigned int in PG provider
2019-06-13 14:35:50 +02:00
nirvn
9984dc71f0 [arcgis] Browser and source selector should only return appropriate layer type 2019-06-13 16:41:53 +07:00
Alessandro Pasotti
f82016624b Use Oid alias instead of unsigned int in PG provider
for consistency only, no bytecode changes are expected
2019-06-13 09:26:20 +02:00
Alessandro Pasotti
ffe3c31c5c
Merge pull request #30184 from elpaso/bugfix-gh30041-pg-oid-overflow
An attempt to fix oid overflow in regclass
2019-06-13 08:49:45 +02:00
Matthias Kuhn
586d216735
Merge pull request #30185 from m-kuhn/update_on_split
Update default values with "apply on update" on split
2019-06-13 07:01:21 +02:00
Nyall Dawson
1c5ebe8ebd Spelling 2019-06-13 04:57:37 +10:00
Nyall Dawson
cf63a7af97 [needs-docs] Allow dragging project layers from legend over map layer comboboxes to select
Greatly assists with usability of the combobox with large projects,
especially those with multiple copies of layers with the same name...
2019-06-13 04:57:37 +10:00
Nyall Dawson
d56ddc25fb Minor refactor of QgsMapLayerProxyModel 2019-06-13 04:57:37 +10:00
Nyall Dawson
760af67d0f Cleanup handling of QgsMimeDataUtils::Uri corresponding to project layers
And add tests
2019-06-13 04:57:37 +10:00
Nyall Dawson
54434a6f41 Allow double-clicking items in data source select dialog to choose them 2019-06-13 04:56:45 +10:00
Nyall Dawson
5bc50ff820 [processing] Fix iterating mode when output is a temporary layer
Credit to @volaya for this fix!

Fixes #29340
2019-06-13 02:43:06 +10:00
Alessandro Pasotti
c94310df56 Cast long from count features instead of int 2019-06-12 18:25:17 +02:00
Alessandro Pasotti
c90583c0db Some more Oid type fixes 2019-06-12 17:08:20 +02:00
Jorge Gustavo Rocha
2243f864bb
Update BUGS
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
2019-06-12 14:43:13 +01:00
Matthias Kuhn
492ce0c9f1 Recalculate "evaluate on update" default expressions always
... no mather what attributes are provided. Default values with evaluate on update
should really just always be calculated.

Fix #30164
Fix #29683
2019-06-12 13:11:38 +02:00
Matthias Kuhn
3113a961c1 Micro optimization 2019-06-12 13:11:38 +02:00
Alessandro Pasotti
ad8c5a6d98 An attempt to fix oid overflow in regclass
QGIS was using int to store oids, but oids are 4 byte unsigned ints.

This is an attempt to partially fix #30041
2019-06-12 12:28:52 +02:00
Nyall Dawson
0224b8e4ff If the first layers loaded into a project is non-valid (e.g. qlrs
pointing to a broken path), then defer the default zoom to the layer's extent
until AFTER the layer path is fixed

Avoids the situation where a user:
- loads a broken qlr
- canvas goes to a invalid extent, since the first loaded layer has an invalid extent
- user fixes the layer path, but there's no visible changes -- because the canvas
is pointing to some random location
2019-06-12 18:25:57 +10:00
Matthias Kuhn
a4eb6b0bdc
Merge pull request #30128 from m-kuhn/30118
Keep rubberband while attribute dialog is open
2019-06-12 10:00:52 +02:00
Matthias Kuhn
83c8b5bf16
Merge pull request #30173 from olivierdalang/dbmanager_fix_generic_geom
[dbmanager] allow to import GEOMETRY tables
2019-06-12 09:54:57 +02:00
Matthias Kuhn
655649a853
Update src/gui/qgsmaptoolcapture.h 2019-06-12 08:27:41 +02:00
Nyall Dawson
4ff8429f7a [processing] Port "Points along geometry" to QgsFeatureBasedAlgorithm
(and c++), allow distance/start/end offset to be dynamic, avoid
algorithm "hangs" when inappropriately small (or 0) distances
are used
2019-06-12 10:08:51 +07:00
Jorge Gustavo Rocha
38c8e757aa References to issues.qgis.org updated 2019-06-12 00:10:43 +01:00
Nyall Dawson
e0eedc5fa1 [processing] Make batch processing HTML report more useful
Include the input parameter values in the report, otherwise the
results are just a meaningless list of values which can't be
associated with any particular set of inputs

Also correctly handle boolean and other output types
2019-06-12 07:03:57 +10:00
Nyall Dawson
d10db05b5a [processing] Nicer strings, default values for select/extract by attribute 2019-06-12 07:03:30 +10:00
Nyall Dawson
43904df6c4 [processing] Fix exception in select by expression using not equal to operator
Fixes #30135
2019-06-12 07:03:30 +10:00
Nyall Dawson
06a25df107 Write error in red 2019-06-12 07:02:56 +10:00
Nyall Dawson
46f364a431 Use a custom proj error handler to collect descriptive coordinate
operation creation errors, and report these back to users

Because these errors contain useful information for users to debug,
e.g. "Source and target ellipsoid do not belong to the same celestial
body"
2019-06-12 07:02:56 +10:00
Nyall Dawson
d35197f317 Silence some clazy warnings 2019-06-12 07:02:56 +10:00
Nyall Dawson
296bfde4d0 Don't create a provider registry instance only to delete it
Clears up more debugging noise in crssync
2019-06-12 07:02:56 +10:00
Nyall Dawson
5855204581 Silence noisy crssync under proj 6 2019-06-12 07:02:56 +10:00
Nyall Dawson
56f16ace6b Fix unnecessary proj transform construction under proj 6 in certain circumstances 2019-06-12 07:02:56 +10:00
Nyall Dawson
d2961af452 Fix datum transform prompt is not always showing after adding new layers
to a project

Fixes #29306
2019-06-12 07:02:11 +10:00
Matthias Kuhn
2283c97633 Fix takeRubberBand 2019-06-11 21:15:23 +02:00
Matthias Kuhn
635582e89e Use QObjectUniquePtr 2019-06-11 21:14:40 +02:00
Matthias Kuhn
e422aa68e7 RAII 2019-06-11 21:12:19 +02:00
Matthias Kuhn
40b3e82886 Add missing sip file 2019-06-11 21:12:19 +02:00
Matthias Kuhn
ddc93419df Simplify code 2019-06-11 21:12:19 +02:00
Matthias Kuhn
3fcb085c49 Keep rubberband while attribute dialog is open
Fix #30118
2019-06-11 21:12:19 +02:00
Matthias Kuhn
1628f85c9a Code style 2019-06-11 21:12:19 +02:00
Matthias Kuhn
b34539ad6f
Merge pull request #30155 from m-kuhn/qobjectuniqueptr
QObjectUniquePtr
2019-06-11 21:07:34 +02:00
Matthias Kuhn
a9e3950841
Merge pull request #30079 from olivierdalang/fix_cad_graphical_glitches
[cad] fix graphical glitches
2019-06-11 17:38:46 +02:00
Matthias Kuhn
3f136b8920 Use QgsApplication for test 2019-06-11 15:37:59 +02:00
Matthias Kuhn
b55f22119e Add deleteLater test 2019-06-11 11:21:21 +02:00
Alessandro Pasotti
e740688faa
Merge pull request #30151 from elpaso/bugfix-gh30115-value-relation-widget-match-name-if-id-fails
When loading a QLR, try to match the layer name if id does not
2019-06-11 11:20:30 +02:00
Alessandro Pasotti
2d45ba8d68 Move the QgsProject singleton problem one step up 2019-06-11 09:22:31 +02:00