40893 Commits

Author SHA1 Message Date
Alessandro Pasotti
ad2f760c0e GPKG: proper handling of unknown geometry
This handles the test use case for layer:
Layer name: geometry2d
Geometry: Unknown (any)
Feature Count: 8

The browser tree will now show the different geometry
layers and allow them to be added in the canvas,
GeometryCollections are skipped.
2017-08-14 10:39:57 +02:00
Matthias Kuhn
8294c434c6
More doxymentation 2017-08-14 10:37:51 +02:00
Matthias Kuhn
a4dac6ace2
Define params as /Out/ 2017-08-14 08:58:59 +02:00
Matthias Kuhn
f9ba9052b5
Fix segfault 2017-08-14 08:19:35 +02:00
Matthias Kuhn
0df873c505
Increase QgsGeometry::OperationResult values
To avoid collisions with old enums and make it easier for plugin devs to
determine if their values have already been ported to QGIS 3.0 or not.
2017-08-13 23:08:45 +02:00
Denis Rouzaud
86e8da74cb
Return enum instead of int from QgsGeometry operations 2017-08-13 23:08:45 +02:00
Nyall Dawson
8d615543b7 Merge pull request #4835 from nyalldawson/more_processing
[processing] Restore some gdal provider algorithms
2017-08-14 06:31:08 +10:00
Nyall Dawson
f9750dde52 Port gdal color relief to new API 2017-08-14 05:55:50 +10:00
Nyall Dawson
1cbbbc4b83 Port gdal tri alg to new API 2017-08-14 05:49:18 +10:00
Nyall Dawson
ab2886dc63 Port gdal assign projection to new api 2017-08-14 05:41:54 +10:00
Nyall Dawson
19e5886b87 More reliable updates to the gdal command shown
By also checking for child widget signals - otherwise we don't
catch signals when compound widgets (such as raster layer source
widgets) are changed
2017-08-14 05:41:00 +10:00
Nyall Dawson
95fe5cdc04 Fix errors calculating gdal command when dialog is being constructed 2017-08-14 05:24:59 +10:00
Nyall Dawson
ba6e2dc940 Fix showing gdal command in algorithm dialog 2017-08-14 05:19:29 +10:00
Nyall Dawson
3d3d2975a4 Followup fixes to ogr2ogrpostgis alg porting 2017-08-14 05:19:00 +10:00
Nyall Dawson
1cbbb8a0fb Port gdal aspect alg to new API 2017-08-14 05:05:39 +10:00
Nyall Dawson
2e7db48d20 Fix error in gdal warp algorithm 2017-08-14 04:56:36 +10:00
Nyall Dawson
b87b2fe827 Allow skipping crs check in processing test results
The GML format often requires extra 'hand holding' in order to
get QGIS to detect it's CRS (e.g. GML files created directly
in GDAL will not have an autodetected CRS when pulled into
QGIS). This needs fixing, but as a workaround to allow
processing algorithm porting to continue we can now skip
the crs check for these layers.
2017-08-14 04:56:24 +10:00
Nyall Dawson
0a365b2d22 Fix OGR algs always export shapefiles, regardless of output file extension 2017-08-14 04:56:24 +10:00
Nyall Dawson
e33647dc5a Move OGR processing provider specific methods to GdalUtils 2017-08-14 04:56:24 +10:00
Nyall Dawson
97a8d1a7a2 Fix failing test 2017-08-14 04:56:24 +10:00
Nyall Dawson
1a5648722a Port GDAL Ogr2OgrPostgis to new API 2017-08-14 04:56:24 +10:00
Nyall Dawson
479106ad80 An empty string parameter should not fallback to default value
Since we need to allow empty strings to override defaults in
some circumstances
2017-08-14 04:56:24 +10:00
Nyall Dawson
d45215ebc1 Cleanup conversion of input layers to OGR compatible sources 2017-08-14 04:56:24 +10:00
Nyall Dawson
6301ff6606 Resurrect OGR points along lines algorithm 2017-08-14 04:56:24 +10:00
Nyall Dawson
ab079f9d92 ogrConnectionString reuses existing context 2017-08-14 04:56:24 +10:00
Nyall Dawson
ce8e18da10 Fix overridden function signatures 2017-08-14 04:56:24 +10:00
Nyall Dawson
5c888c5830 Resurrect gdal warp algorithm 2017-08-14 04:56:24 +10:00
Nyall Dawson
014833a6ff Restore gdal algorithm support 2017-08-14 04:56:24 +10:00
Matthias Kuhn
7768f06776 Document api breaks 2017-08-13 20:19:32 +02:00
Matthias Kuhn
b51a5f7b6f Simplify QgsGeometryEngine code 2017-08-13 20:19:32 +02:00
Matthias Kuhn
e3787effc6 Doxymentation 2017-08-13 20:19:32 +02:00
Matthias Kuhn
581b89e0ec Use pointers and not references to QgsAbstractGeometry
because using this more consistently throughout the codebase makes it
easier to maintain code.
We also do not want to call the copy constructor on them, using pointers
just makes this more obvious. Further, casting is also something
that's commonly done on pointers and not references.

And if you want a value or a reference, just use QgsGeometry, it's meant
to be handled like this.
2017-08-13 20:19:32 +02:00
Nyall Dawson
4c6c74ca0b Fix ui build warning 2017-08-14 03:18:28 +10:00
Nyall Dawson
44f98d9ac8 Fix spelling 2017-08-14 03:15:44 +10:00
Nyall Dawson
9be7b27d8c Merge pull request #5001 from nyalldawson/algs
Restore some processing functionality
2017-08-14 02:23:05 +10:00
Nyall Dawson
f7ae07126e Base class processing feedback object forwards messages to message log 2017-08-14 01:42:16 +10:00
Nyall Dawson
913bf64e65 Fix some possible exceptions in topocolor alg 2017-08-14 01:42:16 +10:00
Nyall Dawson
a056e24a02 Fix exception in TopoColor algorithm 2017-08-14 01:42:16 +10:00
Nyall Dawson
47fe2a182d Port Points From Lines to new API 2017-08-14 01:42:16 +10:00
Nyall Dawson
c6b3855b41 Port Points From Polygons to new API 2017-08-14 01:42:15 +10:00
Nyall Dawson
c8ac7841f0 Port Points Displacement algorithm to new API
Rework algorithm to use same approach as points displacement
renderer. Also maintain Z/M values, and add tests and docs.
2017-08-14 01:42:15 +10:00
Matthias Kuhn
35da03f640
Update NEWS 2017-08-13 17:19:13 +02:00
Matthias Kuhn
ee3ab4da1b Merge pull request #4541 Add qgsgeometry_cast
Because it

* is faster than dynamic_cast
* doesn't rely on RTTI
* encapsulates type checking in one place
2017-08-13 16:14:43 +02:00
Matthias Kuhn
3da4c33bb3
Avoid extra copy of point in QgsGeometry::centroid() 2017-08-13 15:27:58 +02:00
Matthias Kuhn
7f4880be2e
Handle M/Z typed CurvePolygons in qgsgeometry_cast 2017-08-13 15:26:56 +02:00
Richard Duivenvoorde
20a54b1cf4 Fix #16528 mix of Qgis en qgis as root in settins
On Linux the use of Qgis and qgis as root for connection settings
makes it currently impossible to add a new WCS connection

Fixes #16528
2017-08-13 14:37:04 +02:00
Matthias Kuhn
d3e35ee9a2
Update connections to Qt5 style 2017-08-13 14:21:39 +02:00
Sebastian Dietrich
479e3cb736
Reset digitizing tools when new project is loaded/created
Refs #4237 https://issues.qgis.org/issues/4237
2017-08-13 14:21:39 +02:00
Matthias Kuhn
b879d5303c
Fix build error 2017-08-13 13:08:07 +02:00
Matthias Kuhn
d2076a1400
Convert more dynamic_casts to qgsgeometry_casts 2017-08-13 12:29:05 +02:00