11442 Commits

Author SHA1 Message Date
Nyall Dawson
3341a3e91e Unify behavior of various geometry API leftOf tests
Now instead of mixing bools/numeric returns, we always use
ints, where:
-1 = left
0 = test failed, e.g. point on line
1 = right

Also fix a bunch of extra issues identified with left of tests
as a result of these changes
2017-11-29 10:04:20 +10:00
Radim Blazek
2f43deb9da closestSegmentWithContext() doc and test fix 2017-11-29 09:14:11 +10:00
Radim Blazek
07fd713647 fixed closestSegmentWithContext() paramas in Python 2017-11-29 09:14:07 +10:00
Salvatore Larosa
5652501cc6 [pyqgis-console] update api files and qsci_apis/generate_console_pap.py script 2017-11-28 21:14:19 +01:00
Salvatore Larosa
52efa5c36e [pyqgis-console] fix missing import for pap file compiler 2017-11-28 21:05:11 +01:00
Nyall Dawson
e34d7fb636 Fix left of test for linestrings
The test was returning invalid results for certain geometries
2017-11-29 06:45:33 +11:00
Salvatore Larosa
8b454ea38c [pyqgis-console] prepared APIs file updated
included APIs are:
* PyQGIS3
* PyQt5
* Python3.6
* GDAL-2.2.3
* GEOS-3.6.3
2017-11-28 20:12:34 +01:00
Nyall Dawson
7a09f0890e
Merge pull request #5727 from nyalldawson/sublayer
Fix ogr sublayer handling of names containing ":"
2017-11-28 14:47:34 +11:00
Nathan Woodrow
b2c396fdfd Fix #17510 - Better scoping of QgsProjectionSelectionDialog inside QgsProjectionSelectionWidget 2017-11-27 14:00:15 +10:00
Nyall Dawson
c0e732b799 [processing] Add QGIS 3d provider
Adds a new QGIS processing provider for 3d algorithms, available
only when QGIS is built WITH_3D

Currently includes only a single algorithm for tesselating geometries,
which exposes the functionality of QgsTesselator to processing.

Like the native c++ algorithm provider, algorithms in the 3d
provider are transparently merged with the other QGIS providers
(i.e. they aren't separated into their own group)
2017-11-27 06:54:29 +11:00
Nyall Dawson
bb63a83e04 Add missing output from package algorithm 2017-11-27 06:38:21 +11:00
Nyall Dawson
4b9986eb8c [processing] Add a generic map layer output type
For occasions when an algorithm creates a map layer, but the type
is not known in advance (i.e. could be raster OR vector)
2017-11-27 06:38:21 +11:00
Nyall Dawson
a95aecafd6 Fix tests 2017-11-26 16:28:59 +10:00
Nyall Dawson
144e9a2e45 Fix handling of ogr sublayers with ':' in their name
Unlikely to happen, but it does occur with some layers coming
from processing models. In any case we want QGIS to be super-tolerant
of corner cases like this!
2017-11-26 12:23:32 +10:00
Nyall Dawson
7451422069 Fix package layers algorithm can't take the outputs from models
Fixes #17544
2017-11-26 12:01:41 +10:00
Alessandro Pasotti
72553a60a9
Merge pull request #5710 from elpaso/api-code-cleaning-int-2-enums
QgsVectorLayer code cleaning use enums instead of int
2017-11-24 16:16:26 +01:00
Matthias Kuhn
916c9c4cdb Open heart surgery on expression context for processing sources 2017-11-24 16:09:05 +01:00
Matthias Kuhn
abe1a9b661 Expression context creation for processing improvements
Hiding away the implementation directly in QgsProcessingFeatureSource

See discussion ec97102bc6 (r152903378)
2017-11-24 16:09:05 +01:00
Etienne Trimaille
cf685f0f5f add missing import operator (#5724) 2017-11-24 22:03:19 +07:00
Nyall Dawson
14531964a8
Merge pull request #5719 from nyalldawson/translate_z
geometries: translate Z/M
2017-11-24 22:12:11 +11:00
Mathieu Pellerin
97f749e6b4
[processing] fix error when adding refactor fields alg in empty model
(fixes #17421)
2017-11-24 18:04:50 +07:00
Mathieu Pellerin
c2b3ac5624
[processing] order 3rd party provider groups (#5723) 2017-11-24 17:58:43 +07:00
Alessandro Pasotti
7a63a07f7f Add return cases to the docs and fully qualified enums 2017-11-24 11:53:49 +01:00
nirvn
a477ea3ae4 [processing] move grass & saga version number to tooltips 2017-11-24 17:16:25 +07:00
Nyall Dawson
b786ed03b2 Add a unit test 2017-11-24 16:26:41 +10:00
Nyall Dawson
ff900c0b05 [processing] Make translate algorithm native
And add option to translate z/m values
2017-11-24 16:18:13 +10:00
Nyall Dawson
dd223d9b08 Allow transform methods in QgsAbstractGeometry/QgsGeometry to also
transform z/m values via scale/translate arguments
2017-11-24 15:34:35 +10:00
Mathieu Pellerin
1fcadb72ff
[processing] fix for import into spatialite and execute sql algorithms 2017-11-24 12:22:19 +07:00
Nyall Dawson
03ec2d8a98
Merge pull request #5702 from nyalldawson/dxf_improve
[dxf] Add option to export labels as text elements, instead of mtext
2017-11-24 15:58:46 +11:00
Nyall Dawson
2b5aca5518
Merge pull request #5689 from nyalldawson/gpkg_alg
[processing] Fixes to non flat-file exports
2017-11-24 11:54:44 +11:00
Nyall Dawson
aca22663d0 [processing] Change save as spatialite option to save as GeoPackage
Since it's much more useful. Also add a prompt for layer name, so that
you can save the results of an algorithm into an existing geopackage
without wiping existing layers.
2017-11-24 09:31:50 +10:00
Nyall Dawson
8775aff71b Fix error in Geometry by Expression
We can't depend on preparing the expression, as we may not have
enough context to do this during the algorithm preparation step
2017-11-24 09:31:50 +10:00
JD LOMENEDE
13cb8e4e0b remove fromOldWkbType (api_break) 2017-11-24 00:21:33 +01:00
Matthias Kuhn
cd0ba918ba Use layer context in RefactorFields algorithm
Fix #17533
2017-11-23 15:24:40 +01:00
Matthias Kuhn
851adb0a3d Allow adding sources to processing expression context 2017-11-23 15:24:40 +01:00
Alexander Bruy
3a576d80b2 [processing] restore Help button functionality in modeler (fix #17483) 2017-11-23 16:16:08 +02:00
Alexander Bruy
03e4756d26 [processing] don't throw error if GRASS not found on Mac (fix #17443) 2017-11-23 16:16:08 +02:00
Alexander Bruy
6063c83edf [processing] detect GRASS 7.4 on Mac 2017-11-23 16:16:08 +02:00
Alessandro Pasotti
def85fa202 QgsVectorLayer code cleaning use enums instead of int
It was one of the TODOs for QGIS 3
2017-11-23 12:09:30 +01:00
Nyall Dawson
1535ff84ff [dxf][feature] Add option to export labels as text elements, instead of mtext
Sponsored by SMEC
2017-11-23 12:59:43 +10:00
Nyall Dawson
d2369425c6
Merge pull request #5650 from nyalldawson/proc_gpkg
[FEATURE][processing] Package layers algorithm
2017-11-23 13:59:00 +11:00
Nyall Dawson
0a18b1fdd0 Update sip 2017-11-23 11:46:52 +10:00
Nyall Dawson
e6d86bba53 [processing] Generalise modeler multi-step feedback proxy for use
outside of modeler

This can be useful too for individual algorithms
2017-11-23 10:01:13 +10:00
Borys Jurgiel
eeaf2d9098 Update icon path 2017-11-22 22:56:03 +01:00
Borys Jurgiel
6728e6a766 Install missing icon 2017-11-22 22:14:34 +01:00
Matthias Kuhn
7d92641700
Add QString operator to QgsExpression 2017-11-22 11:13:19 +01:00
Nyall Dawson
b058df7d1d
Merge pull request #5686 from nyalldawson/encoding
[processing] Don't use crappy Qt file picker dialog
2017-11-22 07:27:50 +11:00
Nyall Dawson
b97c6a8d88 Use native file picker for spatialite export option also 2017-11-22 05:26:34 +10:00
Salvatore Larosa
ea7c2af74b [dbmanager] fixes #17476: QGIS master: update SQL layer error if name contains uppercase chars 2017-11-21 14:42:30 +01:00
Nyall Dawson
31086d3ac5 [processing] Move destination encoding option to separate menu action
...instead of embedding in output destination file selector. Otherwise
Qt downgrades the file picker to the Qt basic file picker, instead of
the native OS file picker. Which is a huge downgrade and barely
functional for users.

Also remember last selected file format
2017-11-21 21:24:18 +10:00