41141 Commits

Author SHA1 Message Date
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
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
Juergen E. Fischer
12e69d0991 dxf export:
* empty field name resets to layer name (fixes #17060)
* allow forcing to 2d to support polyline width (fixes #17049)
2017-08-30 00:50:10 +02:00
Nyall Dawson
b978c4d429 Merge pull request #5088 from telwertowski/master
Add headers needed by macOS for recently added std:: prefixes
2017-08-30 08:18:29 +10:00
Nyall Dawson
2a4a2d872b Merge pull request #5087 from nyalldawson/algs
Port remaining plotly based algs to new API
2017-08-30 08:05:26 +10:00
Nyall Dawson
184899ec30 Port remaining plotly based algs to new API 2017-08-30 07:28:25 +10:00
Tom Elwertowski
c12fc9c62f Add headers needed by macOS for recently added std:: prefixes 2017-08-29 17:27:20 -04:00
Juergen E. Fischer
9464ab75e6 fix translation string 2017-08-29 20:59:23 +02:00
Radim Blazek
fd0f6f2555 GRASS uppercase in project description 2017-08-29 20:54:01 +02:00
Radim Blazek
dbd86d0ddc highlight disappearing fix - second attempt, 4659691 and 51170aec follow-up 2017-08-29 20:28:39 +02:00
Nyall Dawson
c16ce92bd3 Merge pull request #5078 from nyalldawson/rename
Some more analysis lib cleanups
2017-08-30 03:38:36 +10:00
Alessandro Pasotti
e5b11d4206 Merge pull request #5085 from boundlessgeo/wfs_mutex_offline
Offline editing: workaround for bug 17087 deadlock
2017-08-29 19:18:13 +02:00
Alessandro Pasotti
1e4e45d0a7 [bugfix] Workaround for bug 17087 deadlock
Add the layer to the project after iteration completed.
This prevents the bug to freeze QGIS forever but it doesn't
of course fix it.
2017-08-29 16:55:01 +02:00
Nyall Dawson
e6203847d3 Update sip include 2017-08-29 21:46:35 +10:00
Nyall Dawson
9ca57bd62c Use a QgsFeatureSink instead of path to shapefile in QgsTinInterpolator
Instead of just forcing writing the triangulation to a shapefile (boo!)
change the parameter to use a QgsFeatureSink, so that anything
which implements the QgsFeatureSink interface can be used for
storing the triangulation.
2017-08-29 21:46:35 +10:00
Nyall Dawson
d5e63bc84f Add missing headers to analysis CMakeLists 2017-08-29 21:46:35 +10:00
Nyall Dawson
eb7ad7aebe Swap final uses of QProgressDialog in analysis lib to QgsFeedback 2017-08-29 21:46:35 +10:00
Nyall Dawson
7cd5880119 Remove some unused QProgressDialog imports from analysis lib 2017-08-29 21:46:35 +10:00
Nyall Dawson
04fec09c3e Remove interpolation internal classes from stable API
These classes still need a lot of cleanup (e.g. use of proper
3d geometry classes instead of their own 3d line classes, etc)
and we don't want them locked into the 3.0 API.

Better to remove them from the API and reintroduce them after
they have been cleaned up (in >3.0). They are mostly implementation
details anyway, and unlikely to be used outside of the high
level interpolation classes.
2017-08-29 21:46:35 +10:00
Nyall Dawson
90d142243f More .cc -> .cpp renames 2017-08-29 21:46:35 +10:00
Nyall Dawson
9e962054fe Exclude MathUtils from sip bindings
We don't want these part of stable API - this namespace really shouldn't
exist, as it mostly contains code which is duplicated in other
parts of the API (with better maintained and tested versions).
2017-08-29 21:46:35 +10:00
Nyall Dawson
94987918ef Rename .cc files to .cpp for consistency 2017-08-29 21:46:35 +10:00
Nyall Dawson
f99a7a966e Merge pull request #5083 from nyalldawson/clazy
Clazy optimisations
2017-08-29 21:30:46 +10:00