def setUpClass(self): print("\nINFO: Setting up copy Layer With different Geometries to DB validation...") self.qgis_utils = QGISUtils() # resore schemas restore_schema('test_distinct_geoms') restore_schema('test_ladm_col') restore_schema('test_ladm_col_3d') self.db_distinct_geoms = get_dbconn('test_distinct_geoms') result = self.db_distinct_geoms.test_connection() print('test_connection for: '.format('test_distinct_geoms'), result) if not result[1]: print('The test connection with {} db is not working'.format("test_distinct_geoms")) return self.db_connection = get_dbconn('test_ladm_col') result = self.db_connection.test_connection() print('test_connection for: '.format('test_ladm_col'), result) if not result[1]: print('The test connection with {} db is not working'.format("test_ladm_col")) return self.db_connection_3d = get_dbconn('test_ladm_col_3d') result = self.db_connection_3d.test_connection() print('test_connection for: '.format('test_ladm_col_3d'), result) if not result[1]: print('The test connection with {} db is not working'.format("test_ladm_col_3d")) return self.gpkg_path = get_test_copy_path('geopackage/points_z_m_zm.gpkg')
def setUpClass(self): print("\nINFO: Setting up copy layer With different Geometries to DB validation...") self.qgis_utils = QGISUtils() # resore schemas restore_schema(SCHEMA_DISTINCT_GEOMS) restore_schema(SCHEMA_LADM_COL) restore_schema(SCHEMA_LADM_COL_3D) self.db_distinct_geoms = get_dbconn(SCHEMA_DISTINCT_GEOMS) result = self.db_distinct_geoms.test_connection() print('Test_connection for: '.format(SCHEMA_DISTINCT_GEOMS), result) if not result[1]: print('The test connection with {} db is not working'.format(SCHEMA_DISTINCT_GEOMS)) return self.db_connection = get_dbconn(SCHEMA_LADM_COL) result = self.db_connection.test_connection() print('Test_connection for: '.format(SCHEMA_LADM_COL), result) if not result[1]: print('The test connection with {} db is not working'.format(SCHEMA_LADM_COL)) return self.db_connection_3d = get_dbconn(SCHEMA_LADM_COL_3D) result = self.db_connection_3d.test_connection() print('Test_connection for: '.format(SCHEMA_LADM_COL_3D), result) if not result[1]: print('The test connection with {} db is not working'.format(SCHEMA_LADM_COL_3D)) return self.gpkg_path = get_test_copy_path('geopackage/points_z_m_zm.gpkg') clean_table(SCHEMA_LADM_COL, BOUNDARY_POINT_TABLE) clean_table(SCHEMA_LADM_COL_3D, BOUNDARY_POINT_TABLE)
def setUpClass(self): print("\nINFO: Setting up copy CSV points to DB validation...") self.qgis_utils = QGISUtils() self.db_connection = get_dbconn('test_ladm_col') self.db_connection_3d = get_dbconn('test_ladm_col_3d') result = self.db_connection.test_connection() print('test_connection', result) if not result[1]: print('The test connection is not working') return restore_schema('test_ladm_col') restore_schema('test_ladm_col_3d')
def setUpClass(self): Processing.initialize() QgsApplication.processingRegistry().addProvider(QgsNativeAlgorithms()) print("\nINFO: Setting up copy CSV points to DB validation...") self.qgis_utils = QGISUtils() self.db_connection = get_dbconn('test_ladm_col') self.db_connection_3d = get_dbconn('test_ladm_col_3d') result = self.db_connection.test_connection() print('test_connection', result) if not result[1]: print('The test connection is not working') return restore_schema('test_ladm_col') restore_schema('test_ladm_col_3d')
def setUpClass(self): self.qgis_utils = QGISUtils() self.db_connection = get_dbconn('test_ladm_col') result = self.db_connection.test_connection() print('test_connection', result) if not result[1]: print('The test connection is not working') return restore_schema('test_ladm_col')
def setUpClass(self): restore_schema('test_ladm_col_queries') self.db_connection = get_dbconn('test_ladm_col_queries') result = self.db_connection.test_connection() print('test_connection', result) if not result[1]: print('The test connection is not working') return
def setUpClass(self): restore_schema('test_ladm_col_queries') self.db_connection = get_dbconn('test_ladm_col_queries') result = self.db_connection.test_connection() print('test_connection', result) if not result[1]: print('The test connection is not working') return self.qgis_utils = QGISUtils() self.ladm_data = LADM_DATA(self.qgis_utils)