diff --git a/bdtopo_v2/src/main/groovy/org/orbisgis/geoclimate/bdtopo_v2/WorkflowBDTopo_V2.groovy b/bdtopo_v2/src/main/groovy/org/orbisgis/geoclimate/bdtopo_v2/WorkflowBDTopo_V2.groovy index e61ec08738..522facb8fc 100644 --- a/bdtopo_v2/src/main/groovy/org/orbisgis/geoclimate/bdtopo_v2/WorkflowBDTopo_V2.groovy +++ b/bdtopo_v2/src/main/groovy/org/orbisgis/geoclimate/bdtopo_v2/WorkflowBDTopo_V2.groovy @@ -1441,7 +1441,7 @@ def bdtopo_processing(def h2gis_datasource, def processing_parameters,def id_zo info "Create a default empty worldpop table" def outputTableWorldPopName = postfix "world_pop" h2gis_datasource.execute("""drop table if exists $outputTableWorldPopName; - create table $outputTableWorldPopName (the_geom GEOMETRY(POLYGON, $epsg), ID_POP INTEGER, POP FLOAT);""".toString()) + create table $outputTableWorldPopName (the_geom GEOMETRY(POLYGON, $srid), ID_POP INTEGER, POP FLOAT);""".toString()) results.put("populationTableName", outputTableWorldPopName) } @@ -1449,7 +1449,7 @@ def bdtopo_processing(def h2gis_datasource, def processing_parameters,def id_zo info "Cannot find the population grid $coverageId \n Create a default empty worldpop table" def outputTableWorldPopName = postfix "world_pop" h2gis_datasource.execute("""drop table if exists $outputTableWorldPopName; - create table $outputTableWorldPopName (the_geom GEOMETRY(POLYGON, $epsg), ID_POP INTEGER, POP FLOAT);""".toString()) + create table $outputTableWorldPopName (the_geom GEOMETRY(POLYGON, $srid), ID_POP INTEGER, POP FLOAT);""".toString()) results.put("populationTableName", outputTableWorldPopName) } } 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 e30f98a727..60ed2f9366 100644 --- a/osm/src/main/groovy/org/orbisgis/geoclimate/osm/WorkflowOSM.groovy +++ b/osm/src/main/groovy/org/orbisgis/geoclimate/osm/WorkflowOSM.groovy @@ -744,7 +744,7 @@ IProcess osm_processing() { info "Create a default empty worldpop table" def outputTableWorldPopName = postfix "world_pop" h2gis_datasource.execute("""drop table if exists $outputTableWorldPopName; - create table $outputTableWorldPopName (the_geom GEOMETRY(POLYGON, $epsg), ID_POP INTEGER, POP FLOAT);""".toString()) + create table $outputTableWorldPopName (the_geom GEOMETRY(POLYGON, $srid), ID_POP INTEGER, POP FLOAT);""".toString()) results.put("populationTableName", outputTableWorldPopName) } @@ -752,7 +752,7 @@ IProcess osm_processing() { info "Cannot find the population grid $coverageId \n Create a default empty worldpop table" def outputTableWorldPopName = postfix "world_pop" h2gis_datasource.execute("""drop table if exists $outputTableWorldPopName; - create table $outputTableWorldPopName (the_geom GEOMETRY(POLYGON, $epsg), ID_POP INTEGER, POP FLOAT);""".toString()) + create table $outputTableWorldPopName (the_geom GEOMETRY(POLYGON, $srid), ID_POP INTEGER, POP FLOAT);""".toString()) results.put("populationTableName", outputTableWorldPopName) } }