40875 Commits

Author SHA1 Message Date
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
Matthias Kuhn
d0f33d6d05
Expose makeValid() errors to QgsGeometry::error() 2017-08-13 12:18:55 +02:00
Matthias Kuhn
feffa04988
Use pointers instead of references for QgsAbstractGeometry 2017-08-13 12:14:56 +02:00
Matthias Kuhn
b2cd9f2a5e
Add qgsgeometry_cast to qgssurface 2017-08-13 11:08:57 +02:00
Matthias Kuhn
59f270ab6b
Allow qgsgeometry_cast-ing const geometries 2017-08-13 10:51:07 +02:00
Matthias Kuhn
dba8cc0f6c
Convert more calls to qgsgeometry_cast 2017-08-13 10:35:44 +02:00
Matthias Kuhn
d9ad859a81
Fix misplaced SIP_TRANSFER 2017-08-13 10:28:42 +02:00
Matthias Kuhn
975d730633
Fix build warnings 2017-08-13 10:05:31 +02:00
Nyall Dawson
69c991ed87 Restore ability to create processing tests from history panel 2017-08-13 16:56:58 +10:00
Nyall Dawson
5177972806 Improve conversion of processing parameters to Python code
- Use layer paths instead of layer ids where possible, since they are persistent
- Don't wrap in QgsProcessingFeatureSourceDefinition/QgsProcessingOutputLayerDefinition
if we can avoid it
2017-08-13 16:56:58 +10:00
Denis Rouzaud
b00a60da01 spell check: add ...:…
and a few fixes :)

handle #spellok in shell or cmake files

allow to exclude scripts from search files
2017-08-12 21:13:02 +02:00
Matthias Kuhn
b282b89c82
Take inheritance into account in qgsgeometry_cast 2017-08-12 20:34:23 +02:00
Matthias Kuhn
f70b5b5465
Avoid crash 2017-08-12 20:11:11 +02:00
Matthias Kuhn
4c136a7808
QgsPointV2 -> QgsPoint 2017-08-12 19:26:20 +02:00
Matthias Kuhn
639d0640a9
NULL to nullptr 2017-08-12 19:26:20 +02:00
Matthias Kuhn
a6800d6a5a
Add qgsgeometry_cast
Because it
- is faster than dynamic_cast
- doesn't rely on RTTI
- encapsulates type checking in one place
2017-08-12 19:26:20 +02:00
Matthias Kuhn
5fd19d532c
Make sure relations are reloaded when setting edit config 2017-08-12 19:24:05 +02:00
Alessandro Pasotti
59f8af25dc Merge pull request #5011 from boundlessgeo/less_verbose_items
QgsDebugMsg -> QgsDebugMsgLevel + typo
2017-08-12 17:45:36 +02:00
Alessandro Pasotti
afd45eefff QgsDebugMsg -> QgsDebugMsgLevel + typo 2017-08-12 17:06:40 +02:00