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
..

DB Manager * Copyright (c) 2011 Giuseppe Sucameli

DB Manager is a database manager plugin for QGIS.
It allows showing the DBs contents and run query on them.

In this moment DB Manager supports the following DBMS backends:
- PostgreSQL/PostGIS through the psycopg2 pymodule
- SQLite/SpatiaLite using the pyspatialite pymodule
- Oracle Spatial using PyQt QtSql module

For more info about the project, see at the wiki page:
    http://qgis.org/wiki/DB_Manager_plugin_GSoC_2011

or visit my GitHub repository:
    https://github.com/brushtyler/db_manager