From d8f853f1f85f9a9807b0fe78d7ddb7441adb41da Mon Sep 17 00:00:00 2001 From: Gianpaolo Coro Date: Fri, 7 Jun 2013 17:26:02 +0000 Subject: [PATCH] Adjusted Input parameters git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngineGeoSpatialExtension@76909 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../geo/algorithms/MapsComparator.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/gcube/dataanalysis/geo/algorithms/MapsComparator.java b/src/main/java/org/gcube/dataanalysis/geo/algorithms/MapsComparator.java index bd9affb..9b2e75d 100644 --- a/src/main/java/org/gcube/dataanalysis/geo/algorithms/MapsComparator.java +++ b/src/main/java/org/gcube/dataanalysis/geo/algorithms/MapsComparator.java @@ -35,8 +35,8 @@ import org.opengis.metadata.Metadata; public class MapsComparator extends DataAnalysis { - static String layer1 = "LayerTitle_1"; - static String layer2 = "LayerTitle_2"; + static String layer1 = "Layer_1"; + static String layer2 = "Layer_2"; static String zString = "Z"; static String t1 = "TimeIndex_1"; static String t2 = "TimeIndex_2"; @@ -57,7 +57,7 @@ public class MapsComparator extends DataAnalysis { } @Override - public LinkedHashMap analyze() throws Exception { + public void compute() throws Exception{ status = 0; AnalysisLogger.setLogger(config.getConfigPath() + AlgorithmConfiguration.defaultLoggerFile); long t0 = System.currentTimeMillis(); @@ -181,11 +181,9 @@ public class MapsComparator extends DataAnalysis { AnalysisLogger.getLogger().debug("MapsComparator: Deleting table " + rastertable2); DatabaseFactory.executeSQLUpdate(DatabaseUtils.dropTableStatement(rastertable2), connection); AnalysisLogger.getLogger().debug("MapsComparator: Elapsed: Whole operation completed in " + ((double) (System.currentTimeMillis() - t0) / 1000d) + "s"); - return outputParameters; } catch (Exception e) { e.printStackTrace(); AnalysisLogger.getLogger().debug("MapsComparator: ERROR!: " + e.getLocalizedMessage()); - return outputParameters; } finally { DatabaseUtils.closeDBConnection(connection); status = 100; @@ -276,6 +274,12 @@ public class MapsComparator extends DataAnalysis { public float getStatus() { return status; } + + @Override + public LinkedHashMap analyze() throws Exception { + // TODO Auto-generated method stub + return null; + } }