123 Commits

Author SHA1 Message Date
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
Matthias Kuhn
4a7a8ff263 Update python code 2016-10-01 15:39:03 +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
2466083790 [processing] use hex representation of uuid 2016-09-14 16:23:19 +03:00
Hugo Mercier
5c3a43e286 Fix spatialite access with python3 2016-09-05 13:43:00 +02:00
Alexander Bruy
65db336eaf [processing] move some constants to the dataobjects module 2016-09-02 09:28:45 +03:00
Nyall Dawson
9bc61e77c7 [processing] Create vector files using default dataset/layer options
Fixes missing CRS when saving to GML (fix #14544)
2016-08-12 07:01:04 +10:00
Matthias Kuhn
3aff45cc13 Fix db_manager 2016-08-10 20:36:18 +02:00
Nyall Dawson
9e66e1593b [processing] Fix broken output of multipoint since WKB type merge 2016-08-10 16:19:29 +10: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
9e1ddcb54d [processing] Allow modification of feature request when using
vector.features

Allows for optimising the request through subsets of attributes
or no geometry fetching
2016-07-13 12:06:41 +10:00
Alexander Bruy
2d9b2a354b [processing] use bulk features loading to speedup spatial index creation 2016-06-21 16:56:21 +03:00
Alexander Bruy
aa9fe9ecd0 Merge pull request #3118 from arnaud-morvan/processing_gdal_postgis_credentials
[processing] support postgis service parameter and credentials input
2016-06-14 15:19:03 +03:00
Alexander Bruy
9e54287bb4 [processing] fix alglist() function 2016-06-09 14:58:08 +03:00
arnaud.morvan@camptocamp.com
8ddae27130 [Processing] Support authentication with postgis 2016-06-03 17:09:31 +02:00
Nyall Dawson
3a005cda36 Indentation 2016-06-02 08:50:27 +10:00
Alexander Bruy
57b16187e6 [processing] move spatialite and postgis utils into tools package 2016-06-01 14:15:46 +03: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
volaya
33fc3be15f [processing] separated alglist to its own module 2016-05-23 19:36:16 +02:00
volaya
e6b76c4d7b [processing] cleaning and restructuring
This fixes some design errors (mainly the ModelerUtils class, which is not needed anymore to hold a copy of algs and providers in order to avoid circular dependencies) and removes unused code
2016-05-23 19:34:25 +02:00
Alexander Bruy
6207412bf7 [processing] restore CreateConstantRaster algorithm (fix #14860) 2016-05-23 12:41:45 +03:00
arnaud.morvan@camptocamp.com
63d23d2905 Processing - Support no geometry in VectorWriter 2016-05-17 14:16:15 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Alexander Bruy
9c96be1214 [processing] add function to retrieve Processing version
Initial idea by Etienne Trimaille
2016-04-01 14:09:02 +03:00
Juergen E. Fischer
2526d3e3c8 processing: switch to pyqt wrappers, flake8 fixes 2016-03-21 17:00:25 +01:00
Juergen E. Fischer
c6d921729e python fixes:
* issues identified by pyflakes (star and unused imports)
* pyqtwrapper: add QtSvg
* some exceptions e.message => unicode(e)
* some translations tr("..." % foo) => tr("...") % foo
* TODO:
  python/console/console_sci.py:547 QsciScintillaCompat?
  python/plugins/db_manager/dlg_query_builder.py:304 pop_up_error?
2016-03-15 17:25:23 +01:00
radosuav
9c611c98e8 [Processing] Fix TypeError in Zonal Statistics algorithm
Fixes #14412
2016-03-07 16:56:35 +01:00
Matthias Kuhn
e0ffd92a40 Fix typo 2016-02-23 10:24:34 +01:00
Alexander Bruy
dbd83b3ee1 Merge pull request #2733 from nirvn/processing_memory_datetime
[processing] add date, datetime, time fields to memory output
2016-02-04 20:10:51 +02:00
nirvn
427b9c9734 [processing] add date, datetime, time fields to memory output
(fixes #14163)
2016-02-01 09:09:33 +07:00
Nyall Dawson
cbe8cb7282 Formatting update, using newer autopep8 version 2016-01-30 09:33:24 +11:00
Matthias Kuhn
2f411afe75 [Processing] Fix raster tools
GDAL arguments need to be str since they are passed as unencoded const
char*.
2016-01-28 15:54:12 +01:00
Alexander Bruy
9193d8f5a0 [processing] drop GdalScriptAlgorithm as it is not used
Also remove OgrAlgorithm base class at it almost completely duplicates
GdalAlgorithm class. All affected algorithms updated accordingly.
2016-01-22 15:47:20 +02:00
Alexander Bruy
c7231c3703 remove unused code 2016-01-21 20:02:45 +02: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
volaya
62302377db [processing] UI/UX improvements
Related to QEP #19

Some algorithm description provided by Frank Sokolic
2016-01-08 08:27:22 +01:00
Alexander Bruy
b207268e69 add missed license headers in Processing files 2016-01-07 17:52:49 +02:00
volaya
08a8b6095f [processing] modified how user folder is defined
This should have no effect on a normal QGIS desktop installation, but improve using Processing when not running on top of a regular QGIS instance.
2015-12-15 12:38:05 +01:00
Juergen E. Fischer
9a89408b72 indentation update 2015-11-10 20:21:10 +00:00
volaya
55c18a5e45 [processing] fixed creation of vector layer as PostGIS Table
fixes error introduced in last commit
2015-11-09 08:50:54 +01:00
rldhont
e4996d77cd [processing] allow output directly on Spatialite tables
like 11b5092140f5a966dbb2d85cb64face1e927ff90 but for Spatialite
2015-11-06 17:54:58 +01:00
volaya
11b5092140 [processing] allow output directly on PostGIS tables 2015-11-06 11:36:27 +01:00