Nyall Dawson
4ab4a1fcad
Spell check 'mitre' -> 'miter' (i.e. use en-us variation)
2017-08-07 18:08:57 +10:00
Nyall Dawson
e8290928dd
Port Variable distance buffer to new API
...
Improvements:
- add cap style/join style/ miter limit setting from fixed distance buffer
2017-07-28 14:10:48 +10:00
Nyall Dawson
5763381cbd
Port fixed distance buffer to new API
2017-07-28 13:58:52 +10:00
Nyall Dawson
81855a715b
Use FastInsert when adding features from processing
2017-06-23 14:34:38 +10:00
Nyall Dawson
99cfb8faf3
Fix processing algs crash when no source features exist
...
Instead we output an empty layer - this may be critical for
multi-step models where there is validly no features present
in a source layer
2017-06-23 13:49:32 +10:00
Nyall Dawson
877775d2c0
Remove a bunch of unneeded imports
2017-05-02 14:47:58 +10:00
Nyall Dawson
427c3b1684
Remove vector.features
...
Use QgsProcessingUtils.getFeatures instead
2017-04-26 12:53:35 +10:00
Nyall Dawson
6397386fda
Remove len method from vector.features
...
Use QgsProcessingUtils::featureCount instead
2017-04-26 12:53:35 +10:00
Nyall Dawson
adc7cf0ec2
Add context argument to vector.features
2017-04-26 12:53:35 +10:00
Juergen E. Fischer
c77172ed3d
fix more flake8 warnings
2017-03-05 10:21:24 +01:00
Nyall Dawson
ede452be85
[processing] Port feedback object to c++
...
Algorithms are now passed a QgsProcessingFeedback object
instead of the loosely defined progress parameter.
2017-01-11 11:11:10 +10:00
volaya
7b68c77f4c
[processing] removed unnecessary code to check validity of geometries
2017-01-09 15:13:47 +02:00
Matthias Kuhn
4a7a8ff263
Update python code
2016-10-01 15:39:03 +02:00
Nyall Dawson
5025c828e5
[processing] Expose buffer settings (cap/join style/mitre limit)
...
Also make fixed distance buffer correctly handle null geometries
(copy the row as a geometryless row)
2016-08-11 18:35:30 +10: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
Alexander Bruy
2fbb617d61
[processing] also fix case without dissolving
2016-07-22 15:43:04 +03:00
Alexander Bruy
9976c30c9a
[processing] fix buffer tool
2016-07-22 15:37:16 +03:00
Alexander Bruy
9a05558aff
fix formatting
2016-04-26 15:22:52 +03:00
volaya
5cc2dcd2a4
[processing] fixed wrong call to addToLog
2016-04-26 12:47:54 +02:00
Alexander Bruy
3bc3f52f0c
[processing] skip invalid geometries when buffering ( fix #13763 )
2016-01-15 14:34:03 +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
1b8597306b
[processing] put all qgis algs in single directory
2014-10-03 15:47:44 +03:00