From c04931a9bfe4c3958edc3b7228b86d6ddd00247d Mon Sep 17 00:00:00 2001 From: ebocher Date: Tue, 7 Nov 2023 08:52:57 +0100 Subject: [PATCH] Fix id_water column name regression --- .../main/groovy/org/orbisgis/geoclimate/osm/WorkflowOSM.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm/src/main/groovy/org/orbisgis/geoclimate/osm/WorkflowOSM.groovy b/osm/src/main/groovy/org/orbisgis/geoclimate/osm/WorkflowOSM.groovy index a22326ecc5..b8e097ef9f 100644 --- a/osm/src/main/groovy/org/orbisgis/geoclimate/osm/WorkflowOSM.groovy +++ b/osm/src/main/groovy/org/orbisgis/geoclimate/osm/WorkflowOSM.groovy @@ -491,7 +491,7 @@ Map osm_processing(JdbcDataSource h2gis_datasource, def processing_parameters, d if(h2gis_datasource.getRowCount(seaLandMaskTableName)>0){ //Select the water and sea features h2gis_datasource.execute """Drop table if exists $hydrographicTableName; - CREATE TABLE $hydrographicTableName as select the_geom, id, cast(0 as integer) as zindex, type from $seaLandMaskTableName where type in ('water', 'sea') """.toString() + CREATE TABLE $hydrographicTableName as select the_geom, id as id_water, cast(0 as integer) as zindex, type from $seaLandMaskTableName where type in ('water', 'sea') """.toString() } //Format road