Martin Dobias
90910b0447
Patch QgsProviderMetadata in Python to avoid API break
...
In C++ we do not support QgsProviderMetadata(key, description, createFunc) anymore,
but for python code we can have a patched class that still supports createFunc.
Why not keep the variant with createFunc in C++ as well? Because... SIP!
With newly added virtual methods in QgsProviderMetadata, SIP started to generate
a sip-specific subclass to handle derived classes in Python, however due to the variant
with PyObject* and custom MethodCode it was getting confused about what constructors
are available in C++ and failing to compile.
2019-06-21 18:27:36 +02:00
Martin Dobias
8c4ef42ec9
Remove description() from QgsProviderGuiMetadata - it is not needed there
2019-06-21 17:00:08 +02:00
Martin Dobias
8ed0bb38d1
Start using QgsProjectStorageGuiRegistry + its providers (gpkg projects work again)
...
Also deprecate gui methods in QgsProjectStorage but keep compatibility
2019-06-21 16:28:21 +02:00
Martin Dobias
437f635949
Revert api changes in gui registries to fix some tests
2019-06-20 16:00:06 +02:00
Martin Dobias
ab261b675e
Doxy fix + remove extra QgsProviderMetadata constructor
2019-06-20 14:50:30 +02:00
Martin Dobias
c396d70d14
Doxygen fixes and api break fixes
2019-06-20 14:15:07 +02:00
Martin Dobias
7659dd8b8b
Misc fixes for provider registry/metadata deprecated functions
2019-06-20 12:32:44 +02:00
Martin Dobias
6918bac9df
Revert API break and move WidgetMode back to QgsProviderRegistry
2019-06-20 10:49:36 +02:00
Martin Dobias
a6b837b745
code layout fixes
2019-06-20 00:09:20 +02:00
Martin Dobias
78f69ad5a6
Added sip files for newly added classes
2019-06-19 23:09:13 +02:00
Martin Dobias
f6049e01d0
Misc fixes to get the branch compiling & running with Python
...
- grass data item provider fixes
- removed QgsProviderMetadata constructor (with std::function / PyObject) due to sip errors (api break)
- reverted DataCapability move to Qgis - back to QgsDataProvider (avoiding api breaks)
- WidgetMode enum documentation
- sipify monkey patching fix
- renamed WidgetMode's "None" to "Normal" value - in python None has special meaning (api break)
2019-06-19 23:02:11 +02:00
Peter Petrik
62d615c2cd
[QEP 149] Introduce static data providers [API BREAK]
...
- adds QgsProviderGuiRegistry and QgsProviderGuiMetadata
- adds QgsProjectStorageGuiRegistry
- requires providerMetadataFactory for dynamic data providers
- requires providerMetadataGuiFactory for dynamic data providers (GUI only)
- removes QgsProviderRegistry::WidgetMode
2019-06-18 15:15:36 +02:00
Matthias Kuhn
24e56a810c
Merge pull request #30176 from jgrocha/redmine2github
...
References to issues.qgis.org updated
2019-06-17 11:34:12 +02:00
Nyall Dawson
de672e3127
Allow storing layer WKB type in QgsMimeDataUtils::Uri
2019-06-17 18:17:10 +10:00
Juergen E. Fischer
72af468228
translation string fixes
2019-06-17 09:40:29 +02:00
Nyall Dawson
b8dcafbf10
[processing] Fix missing default value for Select by Expression
...
Fixes #30218
2019-06-17 06:27:17 +10:00
Nyall Dawson
52d22b8050
QgsDataSourceURI doxygen improvements
2019-06-16 10:00:59 +10:00
Alex
a02a4ede6e
Allow calculating aggregates using a subset of fids only
2019-06-16 07:00:26 +10:00
Nyall Dawson
b25fa7a2e3
Try to fix crash on travis
2019-06-15 15:05:48 +10:00
Nyall Dawson
fbd243be65
[processing] Port map layer selection combobox widget to c++
...
And:
- fix enable state of selected features only after changing between
map layers with/without selections
- fix state of selected features only when running an algorithm
from the history list, e.g. respect original setting for
selected features only (or not)
- ensure no duplicate changed signals are sent, and correctly
emit changed signals in all applicable circumstances
- handle drag and dropped layers from browser panel (UX fix)
- soak with unit tests
2019-06-15 15:05:48 +10:00
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
Alexander Bruy
3a0fb544b3
[processing] fix method name
2019-06-13 15:46:26 +03: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
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
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
Matthias Kuhn
40b3e82886
Add missing sip file
2019-06-11 21:12:19 +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
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
Harrissou Sant-anna
502e18fa24
Update tests for gdal warp
2019-06-11 13:43:38 +10:00
Harrissou Sant-anna
1e2b59afc4
Make the target crs optional in gdal warp algorithm [needs-docs]
2019-06-11 13:43:38 +10:00
Alessandro Pasotti
103ef762ca
Factor out generateId for layers and fix QLR mutiple layers id import
2019-06-10 17:58:22 +02:00
Alessandro Pasotti
a295701023
ResolveLayer returns a layer instance instead of an ID
2019-06-10 15:39:52 +02:00
Alessandro Pasotti
13099cc4fa
Merge pull request #30137 from elpaso/bugfix-gh30131-postgres-json
...
Fix json hanlding of bools and complete json(b) PG support
2019-06-10 14:22:14 +02:00
Alessandro Pasotti
f9b50b5b38
Move layer resolver into a static method
2019-06-10 14:10:11 +02:00
Alessandro Pasotti
dcc779a62d
Added a test and fix layer config in the wrapper too
2019-06-10 12:32:30 +02:00
Harrissou Sant-anna
352423e443
Update help Url for Core plugins in official doc
2019-06-10 08:24:55 +10:00
Alessandro Pasotti
79219dae23
Forward port of histogram binding fix with a bonus test
...
Fwd port of PR #30033
Fixes #29700
With a new test for the bug.
2019-06-09 10:25:50 +02:00
Alessandro Pasotti
d2a93501f2
Remove empty lines
2019-06-08 20:32:02 +02:00
Alessandro Pasotti
3ea542a433
Fix json hanlding of bools and complete json(b) PG support
...
Fixes #30131 and add tests for jsonutils
2019-06-08 20:29:48 +02:00
Even Rouault
b1e4a270e5
Merge pull request #30103 from boundlessgeo/master-wfs-conn-dlg
...
Fix some issues with WFS connection dialog
2019-06-07 11:34:20 +02:00
Martin Varga
f4e11bf7d5
[processing] tiles_xyz: maximize map preview
2019-06-07 11:09:41 +02:00