33 Commits

Author SHA1 Message Date
Nyall Dawson
5654eeca55 Fix area calculation when OTF active and no ellipsoid (fix #13601) 2015-10-15 17:51:07 +11:00
Nyall Dawson
a333fc8248 Add method to geometries for adding z/m dimension, initialized
to a specified value
2015-10-14 08:39:05 +11:00
Nyall Dawson
665379645f Add method to QgsWKBTypes to add z/m dimension to a wkb type
Also add some unit tests for QgsWKBTypes
2015-10-14 08:39:05 +11:00
Nyall Dawson
ad10b5264e Fix using add part tool to add part to geometryless rows
(fix #12885, #11319)

Also fix some potential crashes with edit tools and null geometry
2015-10-13 16:59:52 +11:00
Sandro Mani
c927073e20 Add some docstrings 2015-10-08 11:28:32 +02:00
Nyall Dawson
c49b5b777f Change a lot of arguments to const references in core/gui
Rationale:
- there was a lot of large objects passed by value, so potentially
there's a speed bump from this
- even for implicitly shared classes like QString/QList there's still
a (small) cost for copying the objects when there's no reason to
- it's the right thing to do!
2015-10-07 12:02:04 +11:00
Nyall Dawson
0caf944747 Misc optimisations identified by clazy:
- call reserve on container classes where applicable
- make sure Q_FOREACH uses references
- remove dynamic casts to base classes
- fix some implicit bool conversions
2015-10-05 18:43:18 +11:00
Sandro Mani
e9e638f6f4 Geometry Checker and Geometry Snapper plugins 2015-09-21 10:03:24 +02:00
Nyall Dawson
285c1d3ee1 Fix doxygen warning 2015-09-09 17:46:36 +10:00
Nyall Dawson
806da2d385 Fix QgsGeometry::insertVertex and deleteVertex compatibility with
<2.10 API and multipoint geometries

Also fix a crash in QgsGeometryCollection::removeGeometry
2015-09-09 16:11:09 +10:00
mhugent
86115435f5 Merge pull request #2290 from mhugent/geometry_marker
Geometry marker
2015-09-05 09:12:06 +02:00
Marco Hugentobler
8e1a19a9cc Documentation 2015-09-04 17:23:41 +02:00
Marco Hugentobler
56316ddcad Consider curved geometries in marker line symbol layer 2015-09-04 14:53:06 +02:00
Nyall Dawson
8ce9930f4a Fix leak in add map tool 2015-09-01 16:07:10 +10:00
Marco Hugentobler
c39ffe9fc2 [FEATURE]: Tool to add circular strings with start point, curve point and end point 2015-08-17 17:14:05 +02:00
Juergen E. Fischer
9752c468c1 indentation update 2015-07-29 11:52:14 +02:00
Marco Hugentobler
39f8bd9eb9 Add factory annotation 2015-06-25 11:34:36 +02:00
Marco Hugentobler
7b31f8a02f Remove python bindings for QgsGeos, move createGeometryEngine() from edit utils to QgsGeometry class 2015-06-25 10:45:53 +02:00
Marco Hugentobler
0bbc11b3f8 Derive MultiLineString from MultiCurve and MultiPolygon from MultiSurface 2015-06-23 13:41:14 +02:00
Nyall Dawson
c590e1ecee Hide unimplemented GeometryV2 clip methods 2015-06-22 22:20:27 +10:00
Nyall Dawson
6e73c53a1b Implement stubbed QgsGeometry methods 2015-06-22 21:34:49 +10:00
Nyall Dawson
e53debe215 Update doxygen comments for QgsGeometry, reflecting that QgsGeometry
is a generic geometry container from >= 2.10.
2015-06-22 21:29:51 +10:00
Nyall Dawson
53218948b1 Add QgsGeometry::isEmpty to test if underlying geometry exists 2015-06-13 13:43:17 +10:00
Nyall Dawson
80cfbbf37e Add method to set QgsAbstractGeometry for QgsGeometry, add tests
for implicit sharing of QgsGeometry
2015-06-12 22:50:47 +10:00
Marco Hugentobler
624d142ec4 Fix bugs related to adding and removing geometry parts 2015-06-07 11:07:50 +02:00
Juergen E. Fischer
df0b842fdb geometry sip sync 2015-06-01 15:17:56 +02:00
Nyall Dawson
41ad9abb40 Fix geometry errors:
- Add some missing docs
- Add some missing detach calls
- Hide unimplemented clip method to avoid confusion for 2.10 api
- Fix broken distance method
- Fix broken split method
2015-06-01 21:44:57 +10:00
Juergen E. Fischer
aeb0e71e32 fix sip bindings 2015-05-29 20:35:42 +02:00
Marco Hugentobler
0e55b3bf0f Fix loading of curved multitypes 2015-05-29 18:00:24 +02:00
Marco Hugentobler
82d18e7e61 Update python binding for QgsGeometry 2015-05-29 11:40:20 +02:00
Nyall Dawson
e7219050a1 Avoid unnecessary detach of QgsFeature when renderering non-curved
geometries
2015-05-29 06:46:42 +10:00
Marco Hugentobler
b5801afe29 Update python bindings for QgsGeometry 2015-05-26 11:42:52 +02:00
Marco Hugentobler
68fe5f5791 [FEATURE:] New geometry classes 2015-05-25 08:53:49 +02:00