19 #include "qgsgeometrycheckregistry.h" 20 #include "qgsgeometrycheckfactory.h" 23 #include "qgsgeometryselfintersectioncheck.h" 24 #include "qgsgeometrygapcheck.h" 25 #include "qgsgeometrymissingvertexcheck.h" 26 #include "qgsgeometryoverlapcheck.h" 27 #include "qgsgeometryisvalidcheck.h" 37 return instance()->mGeometryCheckRegistry.get();
41 : mGeometryCheckRegistry( qgis::make_unique<QgsGeometryCheckRegistry>() )
43 qRegisterMetaType< QList<std::shared_ptr<QgsGeometryCheckError> > >(
"QList<std::shared_ptr<QgsGeometryCheckError>>" );
45 mGeometryCheckRegistry->registerGeometryCheck(
new QgsGeometryCheckFactoryT<QgsGeometrySelfIntersectionCheck>() );
46 mGeometryCheckRegistry->registerGeometryCheck(
new QgsGeometryCheckFactoryT<QgsGeometryIsValidCheck>() );
47 mGeometryCheckRegistry->registerGeometryCheck(
new QgsGeometryCheckFactoryT<QgsGeometryGapCheck>() );
48 mGeometryCheckRegistry->registerGeometryCheck(
new QgsGeometryCheckFactoryT<QgsGeometryOverlapCheck>() );
49 mGeometryCheckRegistry->registerGeometryCheck(
new QgsGeometryCheckFactoryT<QgsGeometryMissingVertexCheck>() );
static QgsGeometryCheckRegistry * geometryCheckRegistry()
Returns the global geometry checker registry, used for managing all geometry check factories...
QgsAnalysis is a singleton class containing various registry and other global members related to anal...
static QgsAnalysis * instance()
Returns a pointer to the singleton instance.
QgsAnalysis(const QgsAnalysis &other)=delete
QgsAnalysis cannot be copied.