45 Commits

Author SHA1 Message Date
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
Even Rouault
965350b3ae DBManager: fix importing a new layer in a GeoPackage (#16295) 2017-04-24 21:41:25 +02: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
Martin Dobias
d56a97d4fe Merge QgsMapLayerRegistry into QgsProject
All methods/signals of QgsMapLayerRegistry moved verbatim to QgsProject.
2016-12-10 15:18:12 +08:00
Martin Dobias
d716640403 Remove usage of legendInterface() from plugins (followup e5f62e49) 2016-11-22 12:23:37 +08:00
rldhont
010fc7c640 Fix [DB Manager] Allow lowercase field names for homogenize PostGIS Import 2016-10-19 14:35:17 +02:00
rldhont
a9795ad8ea [DB Manager] Allow lowercase field names for homogenize PostGIS Import
PostGIS provider has an option to lowercase field names. This options is available for user in QGIS algorithm ImportIntoPostGIS and not in DB Mananger.

This commit fix it.
2016-10-19 13:03:32 +02:00
nirvn
dab18e7675 [db manager] fix non-spatial import 2016-10-07 11:53:30 +07:00
Juergen E. Fischer
31df84aa6b run 2to3 on source 2016-09-21 23:30:04 +02:00
Nyall Dawson
eba6101357 Fix broken python save/open dialogs under PyQt5
Will break stuff under PyQt4... oh well, better stuff working on Qt5
then Qt4
2016-09-05 11:41:49 +10: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
Salvatore Larosa
3b998d21ed [dbmanager] fix some import statement 2016-06-10 22:18:52 +02:00
Denis Rouzaud
8071acd064 move PyQt compat folder to python/qgis 2016-04-29 14:10:26 +02:00
Juergen E. Fischer
c55f8b73f0 db_manager: cleanups 2016-03-21 17:00:24 +01:00
Juergen E. Fischer
8bda5c00a5 db_manager: migrate to new style signals 2016-03-15 23:46:54 +01:00
Luigi Pirelli
0012761ab3 [auth][db_manager] fix connection info expansio on importing layer in pki postgis 2016-01-21 11:03:21 +01:00
Larry Shaffer
1c0b6077f8 Followup to 2a5f262; fix typo and run through autopep8 2015-09-09 14:37:20 -06:00
Augustin
2a5f262beb Add "import only selected features" option to db manager 2015-09-09 19:00:40 +02:00
Juergen E. Fischer
05b8a985a5 indentation update 2015-08-25 20:04:50 +02:00
Giuseppe Sucameli
fdb0d20677 [DBManager] get default pk, geom and srid values from input layer to set default options in import vector dialog 2015-08-25 02:39:19 +02:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +02:00
Nathan Woodrow
297a94fc58 Fix formatting of db manager python code 2015-03-21 20:35:29 +10: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
748e7cf42f Remove unsupported append import/export option from db_manager (refs #10569) 2014-10-26 15:48:35 +01:00
Juergen E. Fischer
61dc4debfe db manager: fix import of geometryless files (fixes #8970) 2014-06-12 23:36:13 +02:00
Salvatore Larosa
86d5ab24ef [dbmanager] small fix for import/export layer UI 2013-09-01 01:02:50 +02:00
Juergen E. Fischer
49e5c8f89b use QFileDialog.getOpenFileNameAndFilter variant when setting last filter (fixes #8138) 2013-06-29 11:47:43 +02:00
Giuseppe Sucameli
49970b0413 DBManager: more SIP API update (fix #8132) 2013-06-23 00:03:26 +02:00
Juergen E. Fischer
f0c605e0fa dbmanager: add i18n 2013-06-09 18:51:47 +02:00
Giuseppe Sucameli
80b5a07e55 DBManager: updated to new SIP API 2013-06-04 07:20:54 +02:00
Giuseppe Sucameli
61285a9d96 do not destroy layers created outside the dialog (fix #7903) 2013-05-27 02:27:58 +02:00
Giuseppe Sucameli
cb1e47be2d DBManager: fix 'Update Option' button behaviour (fix #7606) 2013-05-27 02:01:30 +02:00
Juergen E. Fischer
f00d004104 fix attribute mapping in vector layer import 2013-01-30 23:20:37 +01:00
Giuseppe Sucameli
4e0d668275 yet another fix following 3da32c00d5 2012-12-10 01:48:44 +01:00
Giuseppe Sucameli
3da32c00d5 do not translate geometry types, change dbmanager translation context names (fix #6837) 2012-12-10 01:32:31 +01:00
Juergen E. Fischer
9721736fd8 remove trailing blanks 2012-12-10 00:12:07 +01:00
Giuseppe Sucameli
c3c79b939e dbmanager: minor fixes 2012-12-05 20:06:04 +01:00
Giuseppe Sucameli
e1697359d1 import vector layer: allow to create single-part geometries from shapefile (follow 08e844f6d06) 2012-12-05 19:16:04 +01:00
Giuseppe Sucameli
de3ea74ab6 dbmanager: allow to import layer from canvas (fix #6824),
add dialog to choose vector file to be imported (fix #6825),
allow to export table to vector file (fix #6826)

Thanks to Silvio Grosso for the sponsorship!
2012-12-05 03:51:02 +01:00
Giuseppe Sucameli
85faeb37a0 import vector layer: pass empty geometry column importing non-spatial table, do not deference null pointer (fix #6728) 2012-11-30 11:24:21 +01:00
Giuseppe Sucameli
0239795d79 dbmanager: avoid duplicate field error (fix #6279) 2012-11-29 01:16:45 +01:00
Giuseppe Sucameli
32920557b7 DBManager: fix spatial index creation importing a vector layer (fix #5625) 2012-06-09 23:40:30 +01:00
Giuseppe Sucameli
3c5b3bbea1 [FEATURE] add DB Manager plugin 2012-04-16 13:31:13 +02:00