Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE][Geometry checker] Support checking multiple layers at once, add new checks #5410

Merged
merged 103 commits into from
Oct 23, 2017
Merged

[FEATURE][Geometry checker] Support checking multiple layers at once, add new checks #5410

merged 103 commits into from
Oct 23, 2017

Conversation

manisandro
Copy link
Member

Description

This is a fairly big update to the geometry checker, which besides restoring it's functionality (currently it's completely broken):

  • Adds support for checking multiple layers at once
  • Adds a series of new checks:
    • Linie Must Not Intersect With...
    • Point Must be properly inside polygons
    • Linie Must Not Intersect
    • Linie Must Not Have Dangles
    • Point Must Not Have Duplicates
    • Point Must Be Covered By Line
    • Linie must not intersect with layer
  • Moves the core components to qgis_analysis, the plugin now only contains the user interface
  • Adds tests for all checks

There might still be some rough edges here and there, so testing feedback is very welcome. Overall it should however already be pretty stable.

nyalldawson referenced this pull request Oct 20, 2017
Also speed up avoid intersections by removing unnecessary geometry
cloning
…led depending on type of layers to be checked
…wo geometries, and ensure that the output is a single-part geometry
@nyalldawson
Copy link
Collaborator

There's a lot of code here to go through, so I haven't looked this over in depth, but I'm really happy to see the move to the analysis lib (hopefully in future we can use the checker from processing!) and the new unit tests.

Quick question: can you confirm that the added code to analysis has no gui dependencies? (Ie no qt widgets or qgis gui classes)

@manisandro
Copy link
Member Author

@nyalldawson Just spotted two unused includes which were indeed QtGui includes.. Should be good now.
If you don't mind I'd like to merge as is (as soon as travis is done) so that interested people can start testing, but I'm still open to resolving the combine situation if the QList<QgsAbstractGeometry> method is really deemed unacceptable.

@manisandro manisandro merged commit ea0e09b into qgis:master Oct 23, 2017
@manisandro manisandro deleted the geomchecker branch October 23, 2017 21:34
*
* \since QGIS 3.0
*/
class GUI_EXPORT QgsVScrollArea : public QScrollArea
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manisandro I think this should inherit from QgsScrollArea

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, done in bb21395, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants