abstract class AbstractBDTopoWorkflow extends BDTopoUtils
Abstract class that contains all methods to run the GeoClimate workflow on formated data
| Constructor and description |
|---|
AbstractBDTopoWorkflow() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Object |
abstractModelTableBatchExportTable(java.lang.Object output_datasource, java.lang.Object output_table, java.lang.Object id_zone, java.lang.Object h2gis_datasource, java.lang.Object h2gis_table_to_save, java.lang.Object filter, java.lang.Object inputSRID, java.lang.Object outputSRID, java.lang.Object reproject)Generic method to save the abstract model tables prepared in H2GIS to another database |
|
java.lang.Object |
bdTopoProcessingSingleArea(java.lang.Object h2gis_datasource, java.lang.Object id_zone, java.lang.Object subCommuneTableName, java.lang.Object srid, java.lang.Object processing_parameters)This process is used to compute the indicators on a single geometry |
|
java.lang.Object |
bdtopo_processing(java.lang.Object location, H2GIS h2gis_datasource, java.lang.Object processing_parameters, java.lang.Object outputFolder, java.lang.Object outputFiles, java.lang.Object output_datasource, java.lang.Object outputTableNames, java.lang.Object outputSRID, java.lang.Object inputSRID, java.lang.Object deleteOutputData)Utility method to run commmune by commune the geoclimate chain and save the result in a folder or/and in a database |
|
java.lang.Object |
checkAndFormatLocations(java.lang.Object locations)Sanity check for the location value |
|
java.lang.Object |
computeGridIndicators(H2GIS h2gis_datasource, java.lang.Object id_zone, java.lang.Object srid, java.lang.Object processing_parameters, java.lang.Object results)Compute the grid indicators outside the workflow to be sure that the grid domain is continuous e.g if the input are is defined by a multipolygon (a location with islands) |
|
java.lang.Object |
createMainFolder(java.lang.Object outputFolder, java.lang.Object location)This method is used to create a main folder for each location. |
|
java.lang.Object |
deleteH2GISDb(java.lang.Object delete, java.sql.Connection connection, java.lang.Object dbFolder, java.lang.Object dbName)Method to delete the local H2GIS database used by the workflow |
|
java.util.Map |
execute(java.lang.Object input)Run the workflow |
|
java.lang.Object |
extractProcessingParameters(java.lang.Object processing_parameters)Read the file parameters and create a new map of parameters The map of parameters is initialized with default values |
|
abstract java.lang.Object |
filterLinkedShapeFiles(java.lang.Object location, float distance, java.util.LinkedHashMap inputTables, int sourceSRID, int inputSRID, H2GIS h2gis_datasource)Method to filter the table loaded from shapefiles |
|
abstract java.util.Map |
formatLayers(JdbcDataSource datasource, java.util.Map layers, float distance, float hLevMin)Implement it to format the layers |
|
abstract java.util.List |
getInputTables() |
|
java.util.List |
getOutputTables() |
|
abstract int |
getVersion()
|
|
java.lang.Object |
indicatorTableBatchExportTable(java.lang.Object output_datasource, java.lang.Object output_table, java.lang.Object id_zone, java.lang.Object h2gis_datasource, java.lang.Object h2gis_table_to_save, java.lang.Object filter, java.lang.Object inputSRID, java.lang.Object outputSRID, java.lang.Object reproject)Generic method to save the indicator tables prepared in H2GIS to another database |
|
java.lang.Object |
linkDataFromFolder(java.lang.Object inputFolder, java.lang.Object inputWorkflowTableNames, H2GIS h2gis_datasource, java.lang.Object inputSRID)Load shapefiles into the local H2GIS database |
|
abstract java.lang.Integer |
loadDataFromPostGIS(java.lang.Object input_database_properties, java.lang.Object code, java.lang.Object distance, java.lang.Object inputTables, java.lang.Object inputSRID, H2GIS h2gis_datasource)Load the required tables stored in a database |
|
java.lang.Object |
mergeResultTables(java.lang.Object tablesToMerge, H2GIS h2gis_datasource)Method to merge a list of tables e.g : all building tables computed by zone are merged in one building table |
|
java.lang.Object |
prepareTableOutput(java.lang.Object h2gis_table_to_save, java.lang.Object filter, java.lang.Object inputSRID, java.lang.Object h2gis_datasource, java.lang.Object output_table, java.lang.Object outputSRID, java.lang.Object output_datasource)Method to prepare a ITable aka resulset to export table in a database |
|
java.lang.Object |
saveOutputFiles(java.lang.Object h2gis_datasource, java.lang.Object results, java.lang.Object outputFiles, java.lang.Object outputFolder, java.lang.Object outputSRID, java.lang.Object reproject, java.lang.Object deleteOutputData, java.lang.Object outputGrid)Save the geoclimate tables into geojson files |
|
java.lang.Object |
saveResults(java.lang.Object h2gis_datasource, java.lang.Object id_zone, java.lang.Object results, java.lang.Object srid, java.lang.Object outputFolder, java.lang.Object outputFiles, java.lang.Object output_datasource, java.lang.Object outputTableNames, java.lang.Object outputSRID, java.lang.Object deleteOutputData, java.lang.Object outputGrid)Method to store the results in a folder or a database |
|
java.lang.Object |
saveTablesInDatabase(java.lang.Object output_datasource, java.lang.Object h2gis_datasource, java.lang.Object outputTableNames, java.lang.Object h2gis_tables, java.lang.Object id_zone, java.lang.Object inputSRID, java.lang.Object outputSRID, java.lang.Object reproject)Save the output tables in a database |
| Methods inherited from class | Name |
|---|---|
class BDTopoUtils |
bbox, bbox, bbox |
Generic method to save the abstract model tables prepared in H2GIS to another database @return
output_datasource - connexion to a databaseoutput_table - name of the output tablesrid - srid to reprojecth2gis_datasource - local H2GIS databaseh2gis_table_to_save - name of the H2GIS table to savebatchSize - size of the batchfilter - to limit the data from H2GIS *outputSRID - srid code used to reproject the output tableThis process is used to compute the indicators on a single geometry @return
Utility method to run commmune by commune the geoclimate chain and save the result in a folder or/and in a database @return
h2gis_datasource - the local H2GIS databaseprocessing_parameters - the geoclimate chain parametersoutputFolder - folder to store the files, null otherwiseoutputFiles - the name of the tables that will be savedoutput_datasource - a connexion to a database to save the resultsoutputTableNames - the name of the tables in the output_datasource to save the resultsoutputSRID - force the srid for the output datainputSRID - force the srid for the input datadeleteOutputData - true to delete the output files if existSanity check for the location value @return
Compute the grid indicators outside the workflow to be sure that the grid domain is continuous e.g if the input are is defined by a multipolygon (a location with islands) @return
This method is used to create a main folder for each location. This folder is used to store all results and can contain subfolders. We delete it if it already exists @return
Method to delete the local H2GIS database used by the workflow @return
Run the workflow @return
Read the file parameters and create a new map of parameters The map of parameters is initialized with default values
processing_parameters - the file parametersMethod to filter the table loaded from shapefiles @return
Implement it to format the layers @return
Generic method to save the indicator tables prepared in H2GIS to another database @return
output_datasource - connexion to a databaseoutput_table - name of the output tableid_zone - id of the zoneh2gis_datasource - local H2GIS databaseh2gis_table_to_save - name of the H2GIS table to savefilter - to limit the data from H2GIS *inputSRID - srid code of the inputableoutputSRID - srid code used to reproject the output tableLoad shapefiles into the local H2GIS database
locations - the locations to processinputFolder - where the files areh2gis_datasource - the local database for the geoclimate processesinputSRID - a list of SRID set the geometriesLoad the required tables stored in a database
inputDatasource - database where the tables areMethod to merge a list of tables e.g : all building tables computed by zone are merged in one building table @return
Method to prepare a ITable aka resulset to export table in a database @return
Save the geoclimate tables into geojson files @return
id_zone - the id of the zoneresults - a list of tables computed by geoclimateoutputFolder - the output folderoutputSRID - srid code to reproject the resultdeleteOutputData - true to delete the file if existsMethod to store the results in a folder or a database @return
Save the output tables in a database @return
output_datasource - a connexion a databaseh2gis_datasource - local H2GIS databaseoutputTableNames - name of the output tablesh2gis_tables - name of H2GIS to saveid_zone - id of the zone