diff --git a/noisemodelling-jdbc/src/main/java/org/noise_planet/noisemodelling/jdbc/LDENPointNoiseMapFactory.java b/noisemodelling-jdbc/src/main/java/org/noise_planet/noisemodelling/jdbc/LDENPointNoiseMapFactory.java index fa261e1e6..38440c0a6 100644 --- a/noisemodelling-jdbc/src/main/java/org/noise_planet/noisemodelling/jdbc/LDENPointNoiseMapFactory.java +++ b/noisemodelling-jdbc/src/main/java/org/noise_planet/noisemodelling/jdbc/LDENPointNoiseMapFactory.java @@ -402,15 +402,15 @@ private String forgeCreateTable(String tableName) { sb.append(" (IDRECEIVER bigint NOT NULL"); } if (ldenConfig.computeLAEQOnly){ - sb.append(", LAEQ numeric(5, 2)"); + sb.append(", LAEQ REAL"); sb.append(");"); } else { for (int idfreq = 0; idfreq < ldenConfig.propagationProcessPathDataDay.freq_lvl.size(); idfreq++) { sb.append(", HZ"); sb.append(ldenConfig.propagationProcessPathDataDay.freq_lvl.get(idfreq)); - sb.append(" numeric(5, 2)"); + sb.append(" REAL"); } - sb.append(", LAEQ numeric(5, 2), LEQ numeric(5, 2)"); + sb.append(", LAEQ REAL, LEQ REAL"); sb.append(");"); } return sb.toString(); diff --git a/wps_scripts/src/main/groovy/org/noise_planet/noisemodelling/wps/NoiseModelling/Noise_level_from_source.groovy b/wps_scripts/src/main/groovy/org/noise_planet/noisemodelling/wps/NoiseModelling/Noise_level_from_source.groovy index a87bad5e3..e3a4b7d8c 100644 --- a/wps_scripts/src/main/groovy/org/noise_planet/noisemodelling/wps/NoiseModelling/Noise_level_from_source.groovy +++ b/wps_scripts/src/main/groovy/org/noise_planet/noisemodelling/wps/NoiseModelling/Noise_level_from_source.groovy @@ -317,9 +317,9 @@ def forgeCreateTable(Sql sql, String tableName, LDENConfig ldenConfig, String ge for (int idfreq = 0; idfreq < freqLvl.size(); idfreq++) { sb.append(", HZ"); sb.append(freqLvl.get(idfreq)); - sb.append(" numeric(5, 2)"); + sb.append(" REAL"); } - sb.append(", LAEQ numeric(5, 2), LEQ numeric(5, 2) ) AS SELECT PK"); + sb.append(", LAEQ REAL, LEQ REAL ) AS SELECT PK"); if (!ldenConfig.mergeSources) { sb.append(", IDSOURCE"); } diff --git a/wps_scripts/src/main/groovy/org/noise_planet/noisemodelling/wps/NoiseModelling/Noise_level_from_traffic.groovy b/wps_scripts/src/main/groovy/org/noise_planet/noisemodelling/wps/NoiseModelling/Noise_level_from_traffic.groovy index 4325208a0..510b4b88f 100644 --- a/wps_scripts/src/main/groovy/org/noise_planet/noisemodelling/wps/NoiseModelling/Noise_level_from_traffic.groovy +++ b/wps_scripts/src/main/groovy/org/noise_planet/noisemodelling/wps/NoiseModelling/Noise_level_from_traffic.groovy @@ -339,9 +339,9 @@ def forgeCreateTable(Sql sql, String tableName, LDENConfig ldenConfig, String ge for (int idfreq = 0; idfreq < pathData.freq_lvl.size(); idfreq++) { sb.append(", HZ"); sb.append(pathData.freq_lvl.get(idfreq)); - sb.append(" numeric(5, 2)"); + sb.append(" REAL"); } - sb.append(", LAEQ numeric(5, 2), LEQ numeric(5, 2) ) AS SELECT PK"); + sb.append(", LAEQ REAL, LEQ REAL ) AS SELECT PK"); if (!ldenConfig.mergeSources) { sb.append(", IDSOURCE"); }