Matthias Kuhn
6b418decd6
Spelling: use vertices rather than vertexes
...
... because that's what's used almost consistently throughout the codebase.
2017-10-09 10:13:13 +02:00
Denis Rouzaud
6e14854f90
[sipify] remove redundant private sections
2017-10-09 09:51:40 +02:00
Nyall Dawson
92af1dacaf
Replace default constructors/destructors with = default
2017-10-01 06:52:14 +10:00
Nyall Dawson
01d34ede9d
Sip sync
2017-09-25 17:12:03 +10:00
Nyall Dawson
bb425e4540
Cleaner signature for QgsAbstractGeometry::closestSegment
2017-09-19 17:22:33 +10:00
Nyall Dawson
54c988f918
Make QgsAbstractGeometry::toCurveType pure virtual, and implement
...
for all geometry types
Previously this method would return nullptrs for many geometry
types
2017-09-19 17:22:33 +10:00
Matthias Kuhn
639d0640a9
NULL to nullptr
2017-08-12 19:26:20 +02:00
Matthias Kuhn
a6800d6a5a
Add qgsgeometry_cast
...
Because it
- is faster than dynamic_cast
- doesn't rely on RTTI
- encapsulates type checking in one place
2017-08-12 19:26:20 +02:00
Sandro Santilli
57bf9daaac
Document semantic of SegmentationToleranceType
...
.. and default of QgsCircularString::curveToLine
[ci skip]
2017-06-21 18:35:32 +02:00
Matthias Kuhn
a9d7630a69
Rename QgsPointV2 to QgsPoint and QgsPoint to QgsPointXY
...
Because 3D coordinates should be the default.
References https://github.com/qgis/qgis3.0_api/issues/36
2017-06-02 19:53:37 +02:00
Denis Rouzaud
8231d7528b
sipify QgsExpressionContext, QgsFeatureRequest, QgsOptionalExpression
2017-05-17 15:20:31 +02:00
Martin Dobias
040c4b32f9
Small cleanup of QgsAbstractGeometry header
2017-05-06 20:33:46 +08:00
Matthias Kuhn
28a21209b9
[sipify] seealso
2017-04-30 16:52:05 +02:00
Denis Rouzaud
b0d4a4c201
sipify geometry classes
2017-04-30 11:29:45 +02:00
Nyall Dawson
7c79803cc3
Add missing dynamic cast for QgsTriangle to sip bindings
2017-03-22 10:20:01 +10:00
Nyall Dawson
af0d68b882
Implement QgsGeometry::isEmpty()
...
Faster than QgsGeometry::isGeosEmpty() because it avoids the
conversion to GEOS geometries and just uses the QgsAbstractGeometry
subclasses directly.
Also implements faster isEmpty() overrides for specific
QgsAbstractGeometry subclasses.
2017-01-31 07:15:51 +10:00
Harrissou Sant-anna
ef85cdcf83
Replace "eg" by "e.g." or "for example"
2016-12-30 00:03:22 +01:00
Martin Dobias
d729951dcd
Remove caching of WKB from QgsGeometry (was kept just for compatibility)
...
Also improves the API to export/import WKB as QByteArray
2016-11-14 13:36:12 +08:00
Martin Dobias
5984b21852
Add missing /Factory/ annotations to geometry classes
2016-11-05 12:13:52 +08:00
Nyall Dawson
49432a8468
Optimise QgsAbstractGeometry
...
Make nCoordinates virtual, and provide shortcuts for some
geometry types. The base method which calls coordinateSequence()
is quite slow in certain circumstances.
Speeds up rendering point layers by ~25%, also likely to
speed up lots of geometry heavy operations throughout QGIS
Refs #15752
2016-10-26 17:22:09 +10:00
Martin Dobias
b6d03209b9
Fix closest segment for points ( #3383 )
...
* Make closestSegment() behave as expected by QgsGeometry::closestSegmentWithContext
This fixes a bug that QgsPointLocator::nearestEdge() would return valid match even for point layers.
* Shortcut if using QgsPointLocator with a wrong layer type
2016-08-11 17:23:01 +02:00
Juergen E. Fischer
3f22a7a77f
another scripts/replacev2.sh with minor manual fixes
2016-08-10 12:12:28 +02:00