Nyall Dawson
75a5d5dda1
Remove unused skipAttributeCreation option in QgsVectorLayerExporter::exportLayer
2017-05-12 08:03:23 +10:00
Nyall Dawson
384369c3c4
Rename QgsVectorLayerImport to QgsVectorLayerExporter
...
Since the majority of users of this class will be exporting
an existing map layer to a data provider, the QgsVectorLayerImport
name is misleading and suggests that this class is designed
just to bring layers "into" QGIS.
Explicitly naming the class "Exporter" should help API users
discover this class.
Also cleanup API and improve docs
2017-05-12 08:02:51 +10:00
Nyall Dawson
877775d2c0
Remove a bunch of unneeded imports
2017-05-02 14:47:58 +10:00
Nyall Dawson
4ed18b112a
Add a bunch of missing QgsProcessingUtils imports
2017-05-02 14:36:23 +10:00
Nyall Dawson
49c688bbe4
Fix use of QgsProcessingUtils.mapLayerFromString
2017-05-02 13:40:49 +10:00
Nyall Dawson
f84d703234
Add method QgsProcessingUtils::mapLayerFromString
...
Algorithms and other processing code should use this method
(instead of dataobjects.getLayerFromString) to
retrieve layers from a string, as it considers the processing
context and allows resolving strings to temporarily stored layers.
This permits processing models to function correctly when
intermediate results are stored as memory layers. Subsequent
model algorithms can then access these temporary layers as inputs.
All temporary layers will be removed when the context object
is destroyed after the model algorithm is run.
2017-05-02 12:33:04 +10:00
Nyall Dawson
dd4f530cfb
[processing] Pass context argument to processAlgorithm
2017-04-26 12:53:35 +10:00
Nyall Dawson
377b181c4e
Port more processing dataobjects methods to c++
...
Also
- simplify and add tests
- remove large memory leak (persistant store of all non-project layers)
- remove broken support for direct loading postgres/virtual layers
by string (Python version was very broken and would never match
a postgres/virtual layer)
2017-04-05 19:50:46 +10:00
Nyall Dawson
a0bd464232
Use formatted name for algorithm names
...
Avoids conversion of names later and gives clearer separation
between visible names and internal names
2017-04-03 21:17:45 +10:00
Nyall Dawson
6987d7b37c
Port handling of algorithm names to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00
Nyall Dawson
dc729c1b5a
Move algorithm group handling to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00
Nyall Dawson
faa8a653b2
Move algorithm icon handling to QgsProcessingAlgorithm
2017-04-03 21:17:45 +10:00
Juergen E. Fischer
f00a87cb8a
update translation strings
2017-03-05 10:21:24 +01:00
Juergen E. Fischer
a10c890383
More QgsSettings updates:
...
* revives WMS
* QgsSettings::clear() added
* section added to QgsSettings::contains()
* type parameter added to sip binding of QgsSettings.value()
* TODO: customization & evis
2017-03-04 02:37:59 +01:00
arnaud.morvan@camptocamp.com
c768edf9d1
[processing] Add postgis widget wrappers
2017-02-10 11:01:41 +01:00
Nyall Dawson
ede452be85
[processing] Port feedback object to c++
...
Algorithms are now passed a QgsProcessingFeedback object
instead of the loosely defined progress parameter.
2017-01-11 11:11:10 +10:00
Nyall Dawson
271e67e37b
[processing] Fix import to postgis alg when table name not set ( fix #15869 , 15097)
2016-11-22 09:59:43 +10:00
nirvn
121f48d654
[processing] add import into spatialite algorithm
2016-10-29 09:33:47 +07:00
volaya
e55d1923fc
[processing] fixes for 'import into PostGIS' alg
...
fixes #15097
2016-10-18 16:55:19 +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
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
Alexander Bruy
33977d16dd
[processing] add option to force singlepart geometry type to postgis import ( fix #14889 )
2016-05-27 11:25:22 +03:00
Alexander Bruy
dadc9d2057
fix typo
2016-05-24 19:59:07 +03:00
Alexander Bruy
8ad1e3c8bc
[processing] add ability to choose encoding when importing into PostGIS ( fix #14687 )
2016-05-24 19:32:58 +03:00
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
volaya
48104d5737
Merge pull request #2891 from csandor/patch-1
...
Table names in postgresql can be max 63 characters long
2016-03-23 10:41:40 +01: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
Csaba Sandor
48e20cf08f
Table names in postgresql can be max 63 characters long
2016-03-09 10:39:37 +01:00
Alexander Bruy
e7fe61e6b9
[processing] load algorithms only when requred 3rd party modules are
...
available or compatible QGIS version is used
Some housekeeping in QGIS algorithms provider
2016-02-17 14:46:02 +02:00
volaya
ae71e1f098
[processing] fix problems with names with capital letters when importing to postgis
...
fixes #11585
2015-10-01 09:51:47 +02: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
Juergen E. Fischer
66a3d02240
integrate processing into update_ts.sh (also includes all translations
...
in the repository and none outside of it).
2015-07-26 04:28:37 +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
Alexander Bruy
5511c86c9f
fix file permissions
2015-01-20 09:48:37 +02:00
Alexander Bruy
ad758aa8db
[processing] i18n for qgis provider
2015-01-17 11:24:54 +02:00
Nyall Dawson
3be82ff708
[processing] Ignore geom for non geom tables for ImportIntoPostGIS
...
This fixes an error where trying to import non geometry tables
using the "Import Into PostGIS" algorithm results in a database
error.
2014-10-27 11:16:11 +11:00
volaya
6486594f57
[Processing] Refactoring of parameters and outputs
...
It also adds some changes in the core and tools package, to provide a cleaner structure
2014-07-14 14:47:05 +02:00
Juergen E. Fischer
647504306c
indentation update
2014-07-13 17:16:24 +02:00
Victor Olaya
a58e64897c
[processing] improved import to postgis algorithm
2014-07-12 10:39:52 +02:00
gioman
306b148bc0
small changes to import into postgis tool
2014-06-12 11:00:42 +01:00
Victor Olaya
2073026f7c
[processing] removed geoserver algorithms and moved postgis ones to qgis agorithms group
2014-06-08 20:00:01 +02:00