git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/EcologicalEngineGeoSpatialExtension@92560 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
704ff1bd71
commit
ad8ebdf06f
|
@ -32,10 +32,10 @@ public class RasterTable {
|
|||
|
||||
private AlgorithmConfiguration configuration;
|
||||
private String tablename = "rstr" + ("" + UUID.randomUUID()).replace("-", "");
|
||||
static String createTableStatement = "CREATE TABLE %1$s (id serial, csquarecode character varying, x real, y real, z real, probability real)";
|
||||
static String columnsnames = "csquarecode, x , y , z , probability";
|
||||
static String createTableStatement = "CREATE TABLE %1$s (id serial, csquarecode character varying, x real, y real, z real, fvalue real)";
|
||||
static String columnsnames = "csquarecode, x , y , z , fvalue";
|
||||
public static String csquareColumn = "csquarecode";
|
||||
public static String probabilityColumn = "probability";
|
||||
public static String valuesColumn = "fvalue";
|
||||
public static String idColumn = "id";
|
||||
|
||||
public String getTablename() {
|
||||
|
@ -120,7 +120,8 @@ public class RasterTable {
|
|||
dbconnection = DatabaseUtils.initDBSession(configuration);
|
||||
DatabaseFactory.executeSQLUpdate(DatabaseUtils.dropTableStatement(tablename), dbconnection);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
// e.printStackTrace();
|
||||
AnalysisLogger.getLogger().debug("Impossible to delete table "+tablename+" : "+e.getLocalizedMessage());
|
||||
} finally {
|
||||
DatabaseUtils.closeDBConnection(dbconnection);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue