5 Commits

Author SHA1 Message Date
Nyall Dawson
acbd9d18f5 Merge pull request #5432 from Gustry/allow_pipe_filepath
allow pipe character in filepath in processing
2017-10-26 19:09:03 +11:00
Nyall Dawson
70361063d8 Rename QgsGeometry::geometry as QgsGeometry::get()
Because feature.geometry().geometry() is confusing, and impossible
to search for in python code (e.g. is input.geometry() a QgsGeometry
or a QgsAbstractGeometry?)

But more importantantly: also add a const version
QgsGeometry::constGet(). The non-const
version is slow, since it now forces a detach to avoid corrupting
geometries (since QgsGeometry is shared, it's not safe to directly
access its primitive QgsAbstractGeometry and start messing with
it without first detaching). This is a big risk in the 2.x API
which could potentially corrupt feature geometries with unexpected
outcomes.

Update all uses to constGet where possible.
2017-10-26 07:06:34 +10:00
Etienne Trimaille
fb4e84a052 allow pipe character in filepath in processing 2017-10-25 00:49:00 +02:00
Jachym Cepicky
28daa1a0e0 Adding more default SHP->GPKG changes 2017-10-19 15:45:04 +02:00
Nyall Dawson
54f8825350 Fix processing tests 2017-10-16 20:10:37 +11:00