nicogodet
ea981d89f9
Homogenize toMapLayer function definition
2021-11-08 10:13:28 +11:00
Andrea Giudiceandrea
828638f661
[DB Manager] Fix No Geometry tables
...
Avoid to add a nonexistent 'geometry' field to the fields list of No Geometry tables.
2021-04-23 08:25:14 +02:00
Andrea Giudiceandrea
2538612a21
[DB Manager] Fix recognition of project layers with Z/M…
...
…or CurvePolygon/MultyCurve/... geometry types as spatial layers.
2021-04-23 08:14:57 +02:00
Nyall Dawson
1040fe8705
Don't silently swallow exceptions in python context managers
...
Notably this causes processing modules to silently fail to load
without any warnings if the required dependancies (such as pyscopg2)
are not installed
2021-03-04 07:39:47 +10:00
Denis Rouzaud
eddf6feb45
modernize CMakeLists.txt files
2020-11-12 07:14:46 +10:00
nirvn
291ba7f2dc
{Qgis,QGis} -> QGIS
2020-06-06 17:45:43 +07:00
Nyall Dawson
b6a7a10703
Fix some more python formatting issues, remove more flake exceptions
2020-05-11 11:41:50 +10:00
Bas Couwenberg
2628c480c5
Don't include revision in sources.
...
Prevent changes to files that weren't changed between releases.
This eases review of the changes between releases significantly.
2019-05-17 16:47:47 +02:00
Nyall Dawson
ac651ee0d9
Followup 8d51a693, fix broken plugins
2019-03-27 07:20:43 +10:00
Denis Rouzaud
8d51a693a1
missing changes of QgsMapLayer::Type => QgsMapLayerType
2019-03-26 14:09:19 -05:00
Ailurupoda
db06040b60
Change != True to not + getComment and commentTable on main file if not needed only
2019-02-08 10:45:49 +01:00
Ailurupoda
9741515fae
Replace db.connector/self + is None
2019-02-08 08:30:48 +01:00
Ailurupoda
8ed7971626
Another fix try
2019-02-07 17:29:25 +01:00
Ailurupoda
f27ecab62f
Fix travis
2019-02-07 16:44:28 +01:00
Ailurupoda
63c010dbb5
Fix create and delete comment from tableProperties
2019-02-07 09:56:48 +01:00
Ailurupoda
f3dfd97d90
New fix, still some need to be done
2019-02-06 17:37:48 +01:00
Ailurupoda
dff185355d
Fix bug comment on postgres and others management
2019-02-06 10:53:56 +01:00
Alessandro Pasotti
cd6ce76480
Quick and dirty patch to DB-Manager after PR 8831
...
The "comments" PR 8831 added support for postgres only
(and broke all the others backends).
I'd be in favor of a revert of the whole original PR but
this patch restores functionality and could be an acceptable
temporary fix until the comments PR is reworked in a more
maintainable and elegant way.
Fixes #21151 btw
2019-02-04 18:26:24 +01:00
Ailurupoda
00852f1642
Update oracle, vlayer, spatialite connector.py
2019-01-23 11:20:24 +01:00
Nyall Dawson
149726cfa5
[dbmanager] Fix exception when browsing project layers
2018-11-10 12:30:52 +10:00
Nyall Dawson
f3e9aaf79a
Fix some inefficient python dictionary iteration
2018-10-31 08:42:51 +10:00
Alessandro Pasotti
15f4138a47
[db-manager] Store exception text in the task and pass it over to the caller
...
Fix #2019 - DBManager fails to display error messages with virtual layers
2018-10-23 14:59:10 +02:00
nirvn
570f3c86c3
[dbmanager] rename QGIS layers to Project layers for the virtual layer connection
2018-06-30 15:43:31 +07:00
nirvn
86547eb5fc
[dbmanager] add connection icon
...
this harmonizes display with that of the browser panel
2018-06-30 15:43:31 +07:00
nirvn
46246f622d
[needs-docs][dbmanager] harmonize icons
2018-06-29 11:56:37 +07:00
Nyall Dawson
d0c14ef0c7
[dbmanager] Fix bad import in vlayers plugin
2018-05-16 14:08:43 +10:00
Harrissou Sant-anna
394aaba060
Trying to make Providers labels translatable
...
in DB Manager tree
2018-05-01 16:07:41 +02:00
Blottiere Paul
ad91694b76
Remove unnecessary cancel subtask
2018-03-02 09:43:26 +00:00
Blottiere Paul
887a226115
Use python super() calls
2018-03-02 09:43:26 +00:00
Blottiere Paul
ad630094c1
More cleaning
2018-03-02 09:43:26 +00:00
Blottiere Paul
a948f1b84d
Some clean
2018-03-02 09:43:26 +00:00
Blottiere Paul
957e92c847
Add async model for virtual layers
2018-03-02 09:43:26 +00:00
Salvatore Larosa
68b7bf6aa8
[dbmanager] porting of dae921c to 3: fixes #16476
2018-02-03 10:53:55 +01:00
JD LOMENEDE
13cb8e4e0b
remove fromOldWkbType (api_break)
2017-11-24 00:21:33 +01:00
Nyall Dawson
75885d70d5
Rename various WKT/WKB/GeoJSON/GML methods for consistency
...
and consistent capitalisation
2017-11-15 20:51:05 +10:00
Mario Baranzini
78af413dcc
Remove python future compatibility layer
2017-08-07 10:27:15 +02:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Hugo Mercier
f56e6b9d3e
[dbmanager] Fix encoding issues with virtual layers
2017-02-27 10:32:28 +01:00
Denis Rouzaud
6c74e4ea5d
spelling fixes
2017-01-12 22:01:50 +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
Hugo Mercier
b7fa5400b6
[db manager] Fix virtual layer uid handling
2016-11-22 16:09:53 +01:00
Juergen E. Fischer
31df84aa6b
run 2to3 on source
2016-09-21 23:30:04 +02: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
Nyall Dawson
bd7d913379
Refine QgsFeature geometry getters/setters
...
All pointer based methods have been removed.
Now we have only:
void setGeometry( const QgsGeometry& geom )
and
QgsGeometry geometry() const
Benefits include avoiding a whole lot of tricky pointer lifetime
issues, potential memory leaks, and finally closing #777 , which
has survived for over 9 years!...
Impacts on PyQGIS code:
- no more need for the messy
g = QgsGeometry( feature.geometry() )
workaround, just use g = feature.geometry() instead
- IMPORTANT: you can no longer test whether a feature has geometry
using `if f.geometry():`, since QgsFeature::geometry() will
*always* return an object. Instead, use
`if not f.geometry().isEmpty():`, or preferably the new method
`if not f.hasGeometry():`
Fix #777
2016-08-01 16:25:46 +10:00
Nyall Dawson
1a2231f10c
Rename QGis class to Qgis, for capitalisation consistency
2016-07-21 22:01:38 +10:00
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
Hugo Mercier
7dbc0bf819
[db manager] Fix virtual layers plugin ( fixes #14404 )
2016-03-23 17:39:41 +01: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
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