102 Commits

Author SHA1 Message Date
volaya
7a87fb55b0 [processing] don't use full path for naming layers when loaded in dataobjects.load 2016-10-18 16:55:19 +03:00
Matthias Kuhn
576ad138a9 Fix python calls to inexistent methods 2016-10-17 09:31:31 +02:00
Alexander Bruy
e04780a279 add missed comma 2016-10-05 12:38:51 +02:00
volaya
a968fa3dea [processing] use original filename when possible when exporting vector layer
Conflicts:
	python/plugins/processing/tools/dataobjects.py
2016-10-05 12:38:35 +02:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Nyall Dawson
fe65063c2b Remove many deprecated methods 2016-09-15 18:34:15 +10:00
Alexander Bruy
65db336eaf [processing] move some constants to the dataobjects module 2016-09-02 09:28:45 +03:00
Alexander Bruy
acdde31b3d [processing] more cleanups (follow up 06c4b07222) 2016-08-05 15:05:36 +03:00
Matthias Kuhn
bb79d13e82 Remove deprecated Qgis::WKBType and API cleanup (#3325)
* Remove deprecated Qgis::WKBType and API cleanup

Renames QgsWKBTypes to QgsWkbTypes

Replaces usage of the enums:

* Qgis::WKBType with QgsWkbTypes::Type
* Qgis::GeometryType with QgsWkbTypes::GeometryType

Their values should be forward compatible (a fact that was already
explited up to now by casting between the types)

Renames some SSLxxx to SslXxx and URIxxx to UriXxx

* Fix build warnings and simplify type handling

* Add a fixer to rewrite imports

* The forgotten rebase conflictThe forgotten rebase conflicts

* QgsDataSourcURI > QgsDataSourceUri

* QgsWKBTypes > QgsWkbTypes

* Qgis.WKBGeom > QgsWkbTypes.Geom

* Further python fixes

* Guess what... Qgis::wkbDimensions != QgsWkbTypes::wkbDimensions

* Fix tests

* Python 3 updates

* [travis] pull request caching cannot be disabled

so at least use it in r/w mode

* Fix python3 print in plugins
2016-08-04 09:10:08 +02:00
Alexander Bruy
b3a38f4018 [processing] fix issues with exported layers in GDAL provider 2016-07-26 15:00:26 +03:00
Nyall Dawson
1a2231f10c Rename QGis class to Qgis, for capitalisation consistency 2016-07-21 22:01:38 +10:00
Nyall Dawson
3a005cda36 Indentation 2016-06-02 08:50:27 +10:00
volaya
479ceb36b4 [processing] fixed wrong call to splitext in dataobjects.py 2016-06-01 12:18:33 +02:00
arnaud.morvan@camptocamp.com
01450c5609 [Processing] Compare lower file extension to "shp" 2016-05-30 15:30:00 +03:00
volaya
9c2721b08b [processing] added ‘supported’ parameter to exportVectorLayer 2016-05-30 10:41:44 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +01:00
Matthias Kuhn
e0ffd92a40 Fix typo 2016-02-23 10:24:34 +01:00
Nyall Dawson
7e90d5773f Whitespace fix 2016-01-19 08:42:02 +11:00
volaya
4c34871f0a [processing] fixed problems when opening/removing layers while alg dialog is open 2016-01-18 15:02:10 +01:00
Hugo Mercier
83a24a3794 [processing] add more possible data providers for input vector layers 2016-01-11 17:15:01 +01:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Matthias Kuhn
9fc1b48bf3 Replace str() with unicode() and some PEP 8 2015-08-16 20:58:43 +02:00
volaya
de728743b7 [processing] do not accept grass vector layers as inputs
fixes #12436
2015-07-03 08:18:54 +02:00
Etienne Trimaille
5a9df7eba3 fix variable assignment in Processing 2015-06-24 11:29:45 +02:00
volaya
247c2f061e [processing] no need to hide credentials when storing db data
If they appear on the URI, it means they are already being stored in plain text by QGIS
2015-06-23 09:07:51 +02:00
volaya
6ce2333f98 [processing] more improvements for storing db data in log
This allows reusing commands that use a db-based layer.

It disables parameter validity checks for layers. Those checks should now be performed at the algorithm level before executing (not yet implemented)
2015-06-23 09:07:50 +02:00
volaya
5d4928fae2 [processing] fixed setting rendering styles for line and point outputs
fixes #12773
2015-06-22 11:38:16 +02:00
Juergen E. Fischer
956c155e8f fix python pep8 warnings and fix some revealed errors
pep8 --ignore=E111,E128,E201,E202,E203,E211,E221,E222,E225,E226,E227,E231,E241,E261,E265,E272,E302,E303,E501,E701 \
     --exclude="ui_*.py,debian/*,python/ext-libs/*" \
     .
2015-02-01 20:46:47 +01:00
Juergen E. Fischer
cce2eb50cb indentation update 2015-01-22 20:56:02 +01:00
radosuav
82f043c28c [Processing] Add support for input rasters with sublayers. 2015-01-20 12:36:46 +01:00
volaya
9f8a742352 [processing] patch for issues with delimited text layers
Still won't work when using delimited text layers in parameters of type MultipleInput
2014-11-21 16:45:51 +01:00
volaya
4ff831f995 [processing] fixed table export 2014-10-19 21:34:22 +02:00
Alexander Bruy
b1e7ede36b [processing] more robust layer sorting in multiple selection widget (fixes #11429) 2014-10-18 11:19:53 +03:00
Alexander Bruy
e0fc515af0 [processing] show layers sorted only for single selection widget and use
legend order for multiple selection
2014-10-05 00:02:31 +03:00
Alexander Bruy
16e82f0080 [processing] fix loading of output rasters with wrong CRS 2014-08-01 08:29:56 +03:00
Victor Olaya
322cd0d03b [processing] fixed #10780 2014-07-02 20:22:00 +02:00
Victor Olaya
93511b2f82 [processing] methods in dataobjects.py now return layers ordered by name
fixes #10446
2014-06-28 17:07:46 +02:00
Victor Olaya
b390b3e778 [processing] fixed behaviour of select algorithms in modeler 2014-06-20 23:18:40 +02:00
Victor Olaya
293ac60722 [processing] removed interface module
now all access to the interface is done through qgis.utils.iface
2014-05-21 17:35:48 +02:00
Victor Olaya
9b277cb040 [processing] refactoring to put all algorithm providers under a single module 2014-04-19 20:49:17 +02:00
Victor Olaya
5c19713291 [processing] allow selection of open layers in batch interface 2014-04-17 12:43:13 +02:00
D'Hont René-Luc
a09892f1bb [Feature][Processing] Headless
To use QGIS Processing in python scripts out of QGIS.
The changes made concern the dependence to legendInterface. In cases
where the interface.iface is null (None) QGIS Processing uses the
QgsMapLayerRegistry instance.
2013-12-19 18:09:56 +01:00
Alexander Bruy
498a5d9ab8 [processing] code formatting, make sources more pep8 compliant 2013-10-02 16:24:10 +03:00
Alexander Bruy
9a341acd13 [processing] handle non-ASCII characters in layer name when exporting (fix #8673) 2013-09-30 16:18:17 +03:00
Juergen E. Fischer
51297d5990 indentation update (note to self: always run scripts/prepare-commit.sh before committing) 2013-09-17 12:41:43 +02:00
Victor Olaya
1882bbc301 [processing]fixed issue with temporal filename
(was previously solved but reverted)
2013-09-14 14:34:50 +02:00
Victor Olaya
4987f4ab4e Revert "[processing]fixed bug with wrong characters in output filenames" (caused circular import)
This reverts commit ff5e1ee3a8745ae44db85b1a9511a5f81f6a85fd.
2013-09-14 14:34:49 +02:00
Victor Olaya
ff5e1ee3a8 [processing]fixed bug with wrong characters in output filenames
refactored to reuse string cleaning function
2013-09-14 13:26:46 +02:00
Victor Olaya
a7dfcaa6af [processing] added some in-code docs and comments 2013-09-14 13:26:46 +02:00