41162 Commits

Author SHA1 Message Date
Alessandro Pasotti
e21630db42 Sipify 2017-09-04 21:08:11 +02:00
Alessandro Pasotti
04af8372a4 Fix build warnings 2017-09-04 20:38:06 +02:00
Alessandro Pasotti
884b58c56d Resistance is futile, you will be sipified 2017-09-04 17:35:48 +02:00
Alessandro Pasotti
d47fdbc79c Implement sourceSelectProviders() for all providers 2017-09-04 15:28:52 +02:00
Alessandro Pasotti
fd7bcb368d Updates tests for source select registry 2017-09-04 15:16:20 +02:00
Alessandro Pasotti
50e0a01008 Sip updates for source select provider and registry 2017-09-04 15:15:20 +02:00
Alessandro Pasotti
2d073d6faf Remove all hardcoded source selects: rely on the registry
The data source manager dialog is now clean from
hardcoded provider keys and there is a mean to
add items to the dialog via plugins (C++, providers
and Python).
2017-09-04 15:11:57 +02:00
Alessandro Pasotti
eb0d57072f Link gui 2017-09-04 13:12:02 +02:00
Alessandro Pasotti
1816087485 QgsSourceSelectProviderRegistry delayed initialization
Due to QgsGui being initialized after data provider.
2017-09-04 09:10:56 +02:00
Alessandro Pasotti
42bd913f57 Add sourceSelectProviders() to the ogr data provider
This is the first data provider real implementation,
all other data provider will follow.
2017-09-04 08:01:59 +02:00
Alessandro Pasotti
90f873086c Attach QgsSourceSelectProviderRegistry to QgsGui
And make it a singleton
2017-09-04 08:00:14 +02:00
Alessandro Pasotti
e8685996c4 Remove all specialized methods for adding the source selects
We now have a unified interface for all dialogs.
2017-09-03 21:38:55 +02:00
Alessandro Pasotti
fa71bc3ee5 Removed specialized signal that is now in the base class 2017-09-03 21:34:42 +02:00
Alessandro Pasotti
7cd7f1685f Added last missing signal replaceVectorLayer
This is only used by virtual layers, but it
might be handy for others too and now I can
start to remove all specialized source
select add methods from the datas source
manager dialog.

This is only the first step: next is looping
through the source select provider registry
to get all needed GUI elements for the dialog.
2017-09-03 21:30:45 +02:00
Alessandro Pasotti
d4868b3f82 Update sip file 2017-09-01 18:20:06 +02:00
Alessandro Pasotti
4c46f64647 Add QgsSourceSelectProviderRegistry with tests 2017-09-01 17:47:55 +02:00
Alessandro Pasotti
cd1c9b1e28 Add class QgsSourceSelectProvider and tests
This is the first step for QEP 101
2017-09-01 14:30:34 +02:00
Alessandro Pasotti
d9152429a1 Merge pull request #5101 from boundlessgeo/fix_pseudocolor_ramp_widget
Fix broken qgscolorramp button
2017-09-01 08:37:15 +02:00
Nyall Dawson
247d2657ca Fix invalid regular expression warnings 2017-09-01 09:00:57 +10:00
Nyall Dawson
1037d4752d Fix QFileSystemWatcher debug warning on startup 2017-09-01 08:59:45 +10:00
Nyall Dawson
15a48df644 Pass QString by const ref 2017-09-01 08:57:24 +10:00
Nyall Dawson
7ba1b1734b Add missing SIP_FACTORY 2017-09-01 08:56:57 +10:00
Nyall Dawson
42b3e0bb10 Fix another small leak 2017-09-01 08:48:15 +10:00
Nyall Dawson
e84543d0fc Fix memory leak 2017-09-01 08:40:22 +10:00
Nyall Dawson
75c65c590c Fix uninitialized/not copied member variable 2017-09-01 08:14:41 +10:00
Nyall Dawson
0be4c67346 Avoid Coverity unchecked return value warnings 2017-09-01 08:12:40 +10:00
Nyall Dawson
e68835f12e Fix some possible leaks in tests 2017-09-01 08:00:59 +10:00
Nyall Dawson
6bddc38276 Fix possible divide by 0 (Thanks to Coverity) 2017-09-01 07:57:16 +10:00
Nyall Dawson
ed5e4b69c7 Switch some dynamic_casts to qobject_casts 2017-09-01 07:56:22 +10:00
Nyall Dawson
e7ddfff09d Fix some Coverity null pointer dereference warnings 2017-09-01 07:54:20 +10:00
Nyall Dawson
9a07cd513a Add guard against nullptr dereference (Coverity warning) 2017-09-01 07:50:53 +10:00
Nyall Dawson
133d58fa89 Merge pull request #5089 from nyalldawson/hausdorff
Expose GEOS Hausdorff distance calculations to QgsGeometry, add expression function
2017-09-01 07:44:10 +10:00
Alessandro Pasotti
b6d86753e2 Fix broken qgscolorramp button
For a misterious reason ( the docs are not completely clear )
calling text() on the ramp QAction returned all string prefixed
with '&' causing the whole button to miss the changed ramp.

By calling iconText() instead we get the right name for
the ramp.
2017-08-31 18:01:18 +02:00
Alessandro Pasotti
4810c73e4d Keep XYZ connections synchronized in browser(s) and data source manager dialog 2017-08-31 15:14:47 +02:00
Alessandro Pasotti
341947e7e3 Merge pull request #5096 from boundlessgeo/server_ogr_multi_geom
[server] Rely on the provider to get the correct wkbType
2017-08-31 08:23:58 +02:00
Nyall Dawson
9fa12ac57f Merge pull request #5090 from nyalldawson/raster_layer_extent
[FEATURE] New algorithm for creating vector layer from raster layer's extent
2017-08-31 09:02:32 +10:00
Nyall Dawson
c2f8a8224b Geometry error string is not shared
Instead move it to a private QgsGeometry member. It's copied
with QgsGeometry, but not the underlying private geometry
data.

This means the error string can be changed without detaching
(and copying) the geometry data.

Also make greater use of error string for all use of GEOS
functions.
2017-08-31 08:36:01 +10:00
Nyall Dawson
a73c099835 Fix evaluation of expression functions which use optional arguments
with null default values
2017-08-31 08:02:44 +10:00
Nyall Dawson
0a9e9944b4 [FEATURE] Expression function for hausdorff distance
Allows calculation of the Hausdorff distance between two
geometries
2017-08-31 08:02:44 +10:00
Nyall Dawson
d8607222e0 Expose GEOS Hausdorff distance calculations to QgsGeometry 2017-08-31 08:02:44 +10:00
Alessandro Pasotti
0346fb839a [server] Rely on the provider to get the correct wkbType
This commit removes a check for OGR provider that
always returned gml:GeometryPropertyType in
describefeaturetype.

This is a partial fix for #17019

Needs backporting
2017-08-30 17:41:19 +02:00
Matthias Kuhn
6fe6394fc7 Make crssync quiet by default
We only need it to show up in the build log if something has gone wrong.
By default we will just happily assume that it's doing a great job in
all conscience.
2017-08-30 16:25:17 +02:00
Nyall Dawson
3b997c2ff0 Merge pull request #5092 from nyalldawson/algs
Port some GDAL algs to new API
2017-08-30 20:53:24 +10:00
Nyall Dawson
d46317802b Port gdal translate alg to new api 2017-08-30 18:13:51 +10:00
Nyall Dawson
a29e3780cd Port rgb2pct to new API 2017-08-30 17:53:14 +10:00
Nyall Dawson
d0fea64b23 Port GDAL info alg to new API 2017-08-30 17:44:52 +10:00
Nyall Dawson
bb5a499c23 Fix generation of processing tests on Windows 2017-08-30 15:25:11 +10:00
Nyall Dawson
8dde180f3f Rename parameter for consistency with other algs 2017-08-30 14:42:19 +10:00
Nyall Dawson
43e4ed0b27 Rename Polygon from Layer Extent to Polygon from Vector Extent
Helps clarify that this alg only functions for vector layers
2017-08-30 14:41:24 +10:00
Nyall Dawson
44e7f3371e [FEATURE] New algorithm for creating vector layer from raster layer's extent
Allows creation of a new vector layer with a single feature containing
a raster layer's extent. Previously this was only possible for
vector layers.
2017-08-30 14:40:21 +10:00