18 Commits

Author SHA1 Message Date
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
Matthias Kuhn
d6fca7e2e3 Indentation update 2016-03-14 10:56:24 +01:00
Bernhard Ströbl
e02d36f830 [BUG] make sure that result line consists of two nodes 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
cfc0eb680e Try to fix indentation error 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
0c719d6c0e [BUG] Do not output lines with two identical points 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
e3a2a1e5db [BUG] access geometry the right way 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
ffae112ece [BUG] Do not output lines shorter than 0.00001 2016-03-14 09:57:04 +01:00
Bernhard Ströbl
bbcacfbfbd [BUG] Avoid trying to split a line with itself 2016-03-14 09:57:03 +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
Juergen E. Fischer
ae52aabd70 more spelling fixes 2016-01-24 20:16:28 +01:00
Juergen E. Fischer
b39055b39c indentation update (now including autopep8) 2015-08-22 14:29:41 +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
pcav
00f64971f7 Uniform and informative output names for Processing (QGIS, Take #2) 2015-05-22 16:09:55 +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
ad758aa8db [processing] i18n for qgis provider 2015-01-17 11:24:54 +02:00
Bernhard Ströbl
da17656fe0 Log error to ProcessingLog 2014-12-08 09:31:41 +01:00
Bernhard Ströbl
a2c656e6f6 [processing] [feature] split lines with lines 2014-12-04 16:20:43 +01:00