Nyall Dawson
a8110369a8
[processing] Don't throw an exception if an expression cannot
...
be prepared
There's cases where this happens without reflecting an invalid
expression. So we can try to prepare, but not abort if the
preparation fails.
Fixes #18103
2018-02-15 15:43:26 +11:00
Nyall Dawson
2defaff796
[processing] Much faster random points in polygon by using
...
prepared geometries
2018-02-15 09:14:01 +11:00
Nyall Dawson
81aa2f956e
[processing] Misc fixes and improvements to Random Points in Polygons
...
- Fix missing format call for string when calculated number
of points is 0
- Fix incorrect progress reports which were spamming the dialog
and causing UI hangs, and slow algorithm execution
2018-02-15 09:14:01 +11:00
Nyall Dawson
e0cf578096
[processing] Add some missing sources to expression contexts
2018-02-15 09:14:01 +11:00
Nyall Dawson
8154a85f29
Fix Python exception in Random Points in Polygon alg
...
Fixes #18103
2018-02-15 09:14:01 +11:00
Nyall Dawson
4643712a1e
Fix missing transform contexts for QgsDistanceArea
...
QgsDistanceArea.setSourceCrs() now requires a QgsTransformContext
argument.
2017-12-20 17:37:46 +10:00
Alexander Bruy
dca37abd0e
[processing] add group id to QGIS algorithms
2017-12-14 18:04:12 +02:00
Matthias Kuhn
e0025b65b1
Rename QgsGeometry::fromPoint to QgsGeometry::fromPointXY
...
Also introduces the from[Geometry]XY for QgsGeometryFactory
2017-10-30 09:14:06 +01:00
Nyall Dawson
2a442c7886
Rationalise algorithm groups a bit
2017-08-22 23:36:42 +10:00
Nyall Dawson
2e8d940f2d
Use context.project() instead of QgsProject.instance()
2017-07-27 10:49:52 +10:00
Alexander Bruy
c440ade2d8
[processing] remove Z/M addition from "random" algorithms
2017-07-24 09:20:47 +03:00
Alexander Bruy
f8b0c06942
[processing] port Random points in polygons
2017-07-24 09:20:47 +03:00