Denis Rouzaud
64c99e054c
run sipify for code snippets
2017-12-19 21:17:29 -04:00
Denis Rouzaud
90e5196996
run sipify
2017-12-19 14:55:46 -04:00
Denis Rouzaud
c604d2dda6
run sipify
2017-12-15 22:13:44 -04:00
Denis Rouzaud
f2b3ed0a9b
run sipify
2017-12-15 11:12:19 -04:00
Nyall Dawson
75885d70d5
Rename various WKT/WKB/GeoJSON/GML methods for consistency
...
and consistent capitalisation
2017-11-15 20:51:05 +10:00
Matthias Kuhn
e19f6482ca
Various fixes to dropping V2 suffix
2017-10-30 09:14:05 +01:00
Matthias Kuhn
b6f46eae11
Rename QgsPolygonV2 to QgsPolygon
2017-10-30 09:14:04 +01:00
Nyall Dawson
c67e39812d
Improvements to QgsAbstractGeometry::snappedToGrid
...
- Fix loss of coordinates when not rounding a particular dimension
- Don't segmentize curved geometries
- Add extra unit tests
- Make createEmptyWithSameType() protected and skip from Python bindings.
This method relies on low-level manipulation of the returned geometry
which we do not want to expose as public/fixed API
2017-10-27 14:37:35 +10:00
Martí Angelats i Ribera
3f5b11bffe
Make asGridified and newSameType (helper function)
2017-10-27 11:22:47 +10:00
lbartoletti
6bcbbeb708
- A triangle can have double points or colinear points, my bad. It is a
...
degenerate triangle
- remove duplicate tests (triangle2())
2017-10-26 13:30:32 +02:00
Nyall Dawson
a2f380b2bd
Add missing override
2017-10-26 09:13:08 +10:00
lbartoletti
7922608ef3
Change the approach: returns an empty element
2017-10-25 15:01:28 +02:00
lbartoletti
0d89504ee5
ADD GML export to QgsTriangle
2017-10-23 14:29:08 +02:00
lbartoletti
74e12212f7
@return -> \returns
2017-10-03 18:03:30 +02:00
lbartoletti
6602855ae4
Merge branch 'master' into regularShape_gui
2017-09-26 21:31:01 +02:00
Nyall Dawson
9e61cd63df
Move overriden methods from headers to cpp files
...
Since they can't be inlined anyway
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
Nyall Dawson
9b6e79cd18
Expand QgsTriangle test coverage
2017-09-19 17:22:32 +10:00
Nyall Dawson
d3db082cd2
Extend unit tests for QgsPolygonV2, QgsPoint
2017-09-19 17:22:32 +10:00
lbartoletti
7e01602319
- Fix crash for QgsMapToolCircle3Tangents when segment is not activated
...
or segments are parallels.
- Add preconditions for methods of QgsTriangle when is empty or invalid.
Tests and docs are updated.
2017-08-03 00:14:23 +02:00
Juergen E. Fischer
4f9a9e0360
s/( )/()/; s/== /== /; s/!= /!= /;
2017-07-19 09:19:37 +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
lbartoletti
13c1318a5f
New geometry class: QgsRegularPolygon ( #4502 )
2017-05-10 22:23:28 +10:00
Denis Rouzaud
897e2f0410
[sipify] do not take // comments into docstrings
2017-04-30 16:34:08 +02:00
Denis Rouzaud
b0d4a4c201
sipify geometry classes
2017-04-30 11:29:45 +02:00
lbartoletti
84471f2e6d
New classes for circle and ellipse.
2017-04-27 10:25:29 +10:00
lbartoletti
fb3d07f3f5
[FEATURE] New class for triangle
...
Adds a new geometry class for Triangle geometries
Methods include orthocenter, bisectors, medians, medial, circumscribed (center,
radius), inscribed (center, radius)
Also adds make_triangle expression function for creating triangles
2017-03-21 18:50:47 +10:00