Loïc Bartoletti
d6ac6c4029
Fix since version for bisector method
2020-12-02 19:46:13 +10:00
Loïc Bartoletti
0f292cfb36
[API] Improve isValid method for curve type
2020-12-02 06:32:54 +10:00
Loïc Bartoletti
5f36925189
[API] Add asGml methods to QgsCircle
2020-12-02 06:32:00 +10:00
Loïc Bartoletti
25e14ee766
add python binding
2020-11-28 08:11:54 +10:00
Nyall Dawson
13e8d45fed
Add signal for when project preset full extent is changed
2020-11-24 04:44:19 +10:00
Even Rouault
af9da65c23
Add QgsLayerItem::iconForWkbType() and QgsWkbTypes::translatedDisplayString()
...
and use them to avoid a lot of copy&paste in "New layer XXXX" dialogs and
providers.
2020-11-12 10:19:55 +10:00
tschmetzer
df0950c6e6
Rename variables for a more intuitive documentation
2020-10-30 09:13:26 +10:00
Nyall Dawson
7e64d74f76
Add method to silence noisy GEOS error logging handling when not
...
desirable.
By default these errors are logged to the console and in the QGIS UI.
But for some operations errors are expected and logging these just results
in noise.
2020-10-21 11:08:35 +10:00
Even Rouault
7ac4b51885
Add QgsGeometry::wkbSize()
2020-10-19 09:25:10 +10:00
Nyall Dawson
746ee315bd
Fix boolean literal presentation in dox/PyQGIS docs
2020-10-16 16:03:26 +10:00
Nyall Dawson
41a30ac2e4
Better duplicate node detection/removal handling
2020-10-16 12:18:33 +10:00
Nyall Dawson
73b0e68eb2
Extract logic from QgsLineString::removeDuplicateNodes to a highly optimised check for duplicate nodes QgsLineString::hasDuplicateNodes
2020-10-16 12:18:33 +10:00
Nyall Dawson
f8222f0f16
[processing] Skip redundant and potentially expensive duplicate intersection
...
test in Split With Lines algorithm
2020-10-15 12:40:30 +10:00
Nyall Dawson
d3f038c929
Sipify
2020-10-09 11:20:09 +10:00
Nyall Dawson
4ee9feb56b
Sipify
2020-10-09 11:20:09 +10:00
Nyall Dawson
ab6bbfda1d
Fix all remaining Qt QFlags deprecated constructor warnings
2020-10-02 13:04:49 +10:00
Nyall Dawson
fe70bb2440
Dox
2020-09-18 11:50:27 +10:00
Nyall Dawson
c293d2c60d
[sipify] Correctly collapse TypeHint annotations
2020-09-18 11:50:27 +10:00
Nyall Dawson
fe5615ea44
Hold the GIL for more geometry related methods
2020-09-18 11:50:27 +10:00
Nyall Dawson
d4a2dddac5
Tag some inexpensive, frequently called methods with the HoldGIL annotation
...
This prevents the Python GIL from being released before calling the method
(which is the default behaviour). For very cheap to call c++ methods the
cost of releasing the GIL can outweigh the cost of the c++ call, which means
it's more efficient to retain the hold on the GIL.
Ideally we'd do this everywhere, and switch to an explicit ReleaseGIL
annotation on functions which are slow or risky (raise exceptions, or
do something which can cause a GIL deadlock). But those are very tricky
to identify, so instead just explicitly hold the gil on cheap methods
which are likely to be called many times and could have an impact on
script performance.
2020-09-18 04:34:57 +10:00
David Marteau
fc67ddc970
Change CRS serialization/deserialization for geometry parameter value
2020-09-15 07:39:10 +10:00
David Marteau
aa0a8ab628
Add geometry filter for processing geometry parameter
2020-09-15 07:39:10 +10:00
David Marteau
f2b8e6970b
Support point and rectangle as geometry parameter values
2020-09-15 07:39:10 +10:00
David Marteau
4eb779798e
Implement QgsReferencedGeometry
2020-09-15 07:39:10 +10:00
Nyall Dawson
f496173bd7
Fix messy doxygen blocks which mess with sipify script
...
Fixes #38291
2020-08-20 17:01:35 +10:00
Nyall Dawson
5d2495e65a
[api] Add helper api to directly retrieve a point/linestring/polygon from
...
a QgsMultiPoint/QgsMultiLineString/QgsMultiPolygon
Avoids the need to have to manually do an annoying cast when we
already know the geometry type
2020-08-18 08:33:53 +10:00
vcloarec
e022b3eb5c
renaming and typo
2020-07-29 21:32:17 -04:00
vcloarec
f7a16c5fd3
fix doc and pass map tool reshape test
2020-07-29 12:49:44 -04:00
vcloarec
24b1b3b4c0
split vector feature with QgsCurve
2020-07-29 12:49:44 -04:00
Dmitry Shachnev
d9db0d5159
Remove use of deprecated sipCanConvertToEnum
...
sipConvertToEnum will raise an exception itself if the type is wrong.
2020-07-21 13:18:40 +10:00
Dmitry Shachnev
ae8b427fe9
Replace deprecated sipMappedType with sipTypeDef
2020-07-21 13:18:40 +10:00
Harrissou Sant-anna
5c83cd07cc
Move some cpp code samples to python
2020-07-21 10:13:45 +10:00
Nyall Dawson
88583210a2
Minor cleanup: move guts of oriented minimum bounding box calculation to QgsInternalGeometryEngine
2020-07-16 08:44:51 +10:00
Nyall Dawson
205273e7cd
Add method to QgsAbstractGeometry to convert geometry to QPainterPath
...
Unlike QgsGeometry::asQPolygonF, this allows for correct handling
of multipolygons and rings, etc.
And potentially, the generated QPainterPaths could use arc segments
instead of segmentizing geometries. In fact, there's been disabled
code which seems to do this in place since the new geometry engine
was introduced back in 2.10! TODO: check if this code works correctly...
2020-07-03 15:24:32 +10:00
Nyall Dawson
33f31d826a
Fix QgsGeometry::asQPolygonF doesn't handle multipolygon inputs
...
gracefully
2020-07-03 04:03:47 +10:00
Denis Rouzaud
0cb8408425
more flags warnings fixes for Qt 5.15 ( #37309 )
...
* more flags warnings fixes for Qt 5.15
* fix sip compilation
2020-06-19 12:02:00 +02:00
Denis Rouzaud
7fb552d62d
fix layout
2020-06-19 08:47:23 +10:00
Denis Rouzaud
044a05d828
run sipify
2020-06-19 08:47:23 +10:00
Matthias Kuhn
91f1485a6e
Merge pull request #36514 from lbartoletti/fix_interpolation_split
...
[BUGFIX] Fix interpolation on split geometry
2020-06-15 08:45:59 +02:00
Nyall Dawson
74400c7ff8
Some fixes to numbered list handling in dox/PyQGIS API
2020-06-15 13:43:58 +10:00
Nyall Dawson
81a9db9f57
[sipify] Fix creation of cross references
2020-06-15 13:43:58 +10:00
Nyall Dawson
e653711509
QgsGeometry::error() does not exist, should be lastError()
2020-06-15 13:43:58 +10:00
Nyall Dawson
a5101f2ade
[sipify] Fix header formatting
2020-06-13 16:49:14 +10:00
Nyall Dawson
cedd73ee4d
More list formatting fixes
2020-06-13 16:49:14 +10:00
lbartoletti
04c3c0124f
add an explanation
2020-06-12 15:39:36 +02:00
lbartoletti
e69116fb34
revert changes in qgsgeometry.sip
2020-06-11 07:50:49 +02:00
Nyall Dawson
ae42850d08
Sipify
2020-06-11 13:29:59 +10:00
Nyall Dawson
c795ddb1e9
Updates
2020-06-11 13:29:59 +10:00
Nyall Dawson
d3a54eed6f
Add flags to control geometry to WKB export behavior
...
With initial flag to force conversion of triangle types to polygons
2020-06-11 05:32:26 +10:00
Andrea Giudiceandrea
5075e4433b
Fix QgsGeometry constParts() example code
...
it wrongly refers to parts() instead of constParts()
2020-05-26 06:54:23 +10:00