Gianpaolo Coro 2014-03-03 14:20:19 +00:00
parent 704ff1bd71
commit ad8ebdf06f
1 changed files with 5 additions and 4 deletions

View File

@ -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);
}