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
Denis Rouzaud
8071acd064
move PyQt compat folder to python/qgis
2016-04-29 14:10:26 +02:00
Juergen E. Fischer
2526d3e3c8
processing: switch to pyqt wrappers, flake8 fixes
2016-03-21 17:00:25 +01:00
Alexander Bruy
7823a5a857
[processing] add missed fTools algorithms: Define current projection
...
and Create spatial index.
Also add missed Assign projection from GDALTools
2016-03-01 15:57:32 +02:00
Alexander Bruy
11a9a66104
[processing] add icons for fTools and GDALTools algorithms
2016-03-01 15:57:31 +02: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
volaya
ca27277bb3
[processing] do not set an upper limit for points in random points layer
...
fixes #13483
2015-10-13 19:59:16 +02:00
arnaud.morvan@camptocamp.com
ea0dc6e2d4
Include parameterselection dropdown contents in processing translations
2015-09-17 09:43:23 +02: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
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
Alexander Bruy
cc307578eb
[processing] avoid division by zero in random points alg ( fix #11215 )
2014-09-19 20:06:15 +03:00
volaya
6486594f57
[Processing] Refactoring of parameters and outputs
...
It also adds some changes in the core and tools package, to provide a cleaner structure
2014-07-14 14:47:05 +02:00
Salvatore Larosa
470431d6b4
[processing] fixes cmake for lastools, removes the interface module and adds import iface module where lacking
2014-05-21 22:05:07 +02:00
Alexander Bruy
9b4b1df68f
init random generator before creating points
2014-05-16 15:44:36 +03:00
Alexander Bruy
9f4e1072f8
[processing] new tool: random points in polygons (variable)
...
Work done for Faunalia funded by Prof. António Mira (University of Évora,
Portugal, Unidade de Biologia da Conservação) and Dr. Rosana Peixoto
2014-05-16 15:44:36 +03:00