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
..
2016-02-14 03:50:49 +01:00
2016-07-25 15:22:36 +10:00
2016-02-14 03:50:49 +01:00
2016-07-21 08:40:50 +10:00
2016-07-26 10:08:18 +10:00
2016-06-02 21:29:35 +02:00
2016-07-21 08:40:50 +10:00
2016-07-26 11:11:05 +10:00
2016-02-14 03:50:49 +01:00
2016-07-25 10:15:46 +10:00
2016-02-14 03:50:49 +01:00
2016-07-21 08:40:50 +10:00
2016-02-14 03:50:49 +01:00
2015-07-29 11:52:14 +02:00
2012-02-04 10:11:22 +01:00
2016-02-14 03:50:49 +01:00
2016-02-14 03:50:49 +01:00
2015-05-24 18:48:22 +02:00
2016-02-14 03:50:49 +01:00
2015-02-03 02:21:52 +01:00
2016-02-14 03:50:49 +01:00
2016-02-14 03:50:49 +01:00
2016-07-21 08:40:50 +10:00
2016-02-14 03:50:49 +01:00
2016-02-14 03:50:49 +01:00
2016-02-14 03:50:49 +01:00
2016-02-14 03:50:49 +01:00
2015-07-29 11:52:14 +02:00
2016-07-21 08:40:50 +10:00
2012-09-24 02:42:57 +02:00
2016-04-06 20:55:26 +10:00
2016-07-21 08:40:50 +10:00
2016-02-14 03:50:49 +01:00
2016-02-14 03:50:49 +01:00
2016-05-28 07:21:21 +10:00
2016-07-21 08:40:50 +10:00
2012-09-24 02:42:57 +02:00
2016-02-14 03:50:49 +01:00
2015-07-29 11:52:14 +02:00
2016-02-14 03:50:49 +01:00
2016-02-14 03:50:49 +01:00
2016-02-14 03:50:49 +01:00
2016-07-25 15:22:36 +10:00