64 Commits

Author SHA1 Message Date
Matthias Kuhn
3df789f8ff Sipdate 2020-09-09 19:22:55 +02:00
Matthias Kuhn
47a48bb0da More docs 2020-09-09 09:47:49 +02:00
Matthias Kuhn
94fe2f8d1d Add new algorithm to calculate zonal statistics into a new sink 2020-09-09 08:21:27 +02:00
Matthias Kuhn
c20ebcf182 [processing] Zonal Statistics create a new output instead of updating an existing one
Implements #29504
2020-09-08 20:16:21 +02:00
Denis Rouzaud
044a05d828 run sipify 2020-06-19 08:47:23 +10:00
Nyall Dawson
81a9db9f57 [sipify] Fix creation of cross references 2020-06-15 13:43:58 +10:00
Nyall Dawson
a5101f2ade [sipify] Fix header formatting 2020-06-13 16:49:14 +10:00
Blottiere Paul
385f6399cb Fix use of deleted function for QgsGeometryCheckErrorSingle 2020-06-12 08:45:13 +10:00
Matthias Kuhn
ba672639c4 Fix docstring 2020-01-16 15:11:02 +01:00
Matthias Kuhn
5dfb5f6bb5 Followup review comments 2020-01-15 07:43:34 +01:00
Matthias Kuhn
8b62eb9572 Better doc strings 2020-01-14 19:07:59 +01:00
Matthias Kuhn
952d704814 Rename QgsGeometryCheckFix to QgsGeometryCheckResolutionMethod 2020-01-14 16:51:59 +01:00
Matthias Kuhn
6cdd75bbab More geometry fix goodness 2020-01-14 16:38:38 +01:00
Matthias Kuhn
35d5176210 Analysis again 2020-01-14 16:38:38 +01:00
Matthias Kuhn
f6e388af9b Geometry gap analysis update 2020-01-14 16:38:38 +01:00
Alexander Bruy
cc5b6e74f4 [processing] port zonal statistics to C++ 2019-12-09 13:28:32 +02:00
Matthias Kuhn
0659dd7236 Dox 2019-08-14 10:04:51 +02:00
Matthias Kuhn
f5638fe63d Check that QgsGeometryCheckContext::project is only used from main thread 2019-08-12 07:25:42 +02:00
Matthias Kuhn
43bbaf0c5d dox++ 2019-08-08 08:49:26 +02:00
Matthias Kuhn
c8b277ba6c Call prepare method on geometry checks 2019-08-08 08:24:22 +02:00
Matthias Kuhn
4505a4b03b For geometry validation GAP errors, allow zooming to gap or context
When a topological check returns a gap, it's sometimes better to zoom to the gap,
sometimes to show the gap in the context of the surrounding polygons. There is no
one-size-suits-all solution.
Therefore it's now possible to zoom to one by enabling the "zoom to feature(s)" button
also for topological errors.
2019-07-19 11:59:07 +02:00
Matthias Kuhn
13a74ae962
Merge pull request #9320 from m-kuhn/geometry-validation-icons
Geometry validation icons
2019-03-20 11:58:28 +01:00
Matthias Kuhn
ee1e7385ce
Add dox 2019-03-13 07:56:55 +01:00
Matthias Kuhn
60512e92df
Clear and load in getFeatures() 2019-03-12 14:28:52 +01:00
Matthias Kuhn
9a839c97f3
Copy data for background threads
reduce requirements to run code on main thread which risks freezes
because of deadlocks
2019-03-12 14:28:52 +01:00
Matthias Kuhn
04cdf63818
Add icons to geometry validation checks 2019-03-02 16:58:08 +01:00
Matthias Kuhn
dcc92de5d0
Merge pull request #9316 from m-kuhn/fix-geometry-validation-crashes
[geometry validation] Stability and performance improvements
2019-03-02 09:54:35 +01:00
Matthias Kuhn
d313405851
Avoid working on reference to temporary objects
fixes a couple of crashes in geometry validation
2019-03-01 13:25:00 +01:00
Matthias Kuhn
d99c1f1f32
Fixes 2019-02-27 17:53:07 +01:00
Matthias Kuhn
149fcc040b
Only report topology errors in affected features
The geometry validation only works on the current edit session (added / edited geometries). To detect topology
errors it is required to also get more features within the context, therefore, the bounding box of the edited
geometries is taken to populate the list of features to check.

This commit filters the found problems so only the ones which actually affect one of the edited geometries
will be reported.
2019-02-27 16:57:37 +01:00
Nyall Dawson
107b48a430 Add NULLPTR macro for use in doxygen comments
For the c++ api dox this expands to "\c nullptr" (the
\c directive indicates a code literal value), and for sipify/Python
it expands to ``None`` (`` is sphinx annotation for literal values)

Makes for nicer dox for both c++ and Python!
2019-02-27 09:41:11 +10:00
Nyall Dawson
b6d66becab Sipify 2019-02-27 09:41:11 +10:00
Matthias Kuhn
6d38a0ed66
Improved API documentation for geometry checks 2019-01-07 15:38:18 +01:00
Matthias Kuhn
b87798cd8f
Make travis even happier 2018-12-22 16:40:27 +01:00
Matthias Kuhn
cb766d7f72
Make travis happy 2018-12-22 15:29:26 +01:00
Matthias Kuhn
929df96e20
Remaining docs 2018-12-22 12:17:13 +01:00
Matthias Kuhn
d3f64deb80
Further doc improvements 2018-12-22 11:54:43 +01:00
Matthias Kuhn
525a3da3ab
More doxygen 2018-12-22 10:57:53 +01:00
Matthias Kuhn
07ab092fb1
Some doc fixes 2018-12-22 10:35:30 +01:00
Matthias Kuhn
65f6e7ba5d
Doxymenation for gap checks 2018-12-22 10:03:22 +01:00
Matthias Kuhn
02ec785e1b
Fix deadlock in geometry validation
Fix a deadlock in geometry validation. This happens when the mainthread "waits for finished" of a checker thread.

What happened in this case was, that the main thread canceled the feedback and waited for any jobs to finish.
If a job was waiting for a feature source (or something else to be executed on the main thread) this resulted in a mighty deadlock.

What we do here is that we regularly check if we ought to cancel while waiting for our slot on the main thread and can bail out if we should cancel before the main thread gets around to take care of our function.
The difference is, we still execute the code on the background thread and make sure that the main thread is not doing anything during this time to avoid working on the same data structures in parallel.
2018-10-29 15:05:51 +01:00
Matthias Kuhn
3d31d72442
Fix python bindings 2018-10-15 16:05:59 +02:00
Matthias Kuhn
36e83f31c0
Tag geometry check classes as technology preview 2018-10-15 14:29:00 +02:00
Denis Rouzaud
d4ac9a7c00
do not zoom to feature if no extent 2018-10-15 14:28:04 +02:00
Matthias Kuhn
6df73d6d07
QgsVectorLayerFeaturePool needs to be aware of geometry changes 2018-10-15 14:28:03 +02:00
Matthias Kuhn
6a94033487
Make feedback a required parameter for geometry checks 2018-10-15 14:28:02 +02:00
Matthias Kuhn
4607930ece
Allow resolving errors 2018-10-15 14:27:59 +02:00
Denis Rouzaud
550de156c5
make context const 2018-10-15 14:27:58 +02:00
Denis Rouzaud
3817df69b2
Revert "QgsGeometryCheckError class requires context in constructor (not inherited classes yet)"
This reverts commit 73c89aee8c2f5ca6d2ce5a621b1ffad9f08bba02.
2018-10-15 14:27:57 +02:00
Denis Rouzaud
b0810b180d
QgsGeometryCheckError class requires context in constructor (not inherited classes yet) 2018-10-15 14:27:57 +02:00