Commit 89638274 authored by Cecilia Nievas's avatar Cecilia Nievas
Browse files

Forced variable types in SERA_mapping_..._add_GHS_from_OBM_tiles.py

parent 03b2f2af
......@@ -102,7 +102,7 @@ def run_this_file(config_dict):
# Open a cursor to perform database operations
cursor = connection.cursor()
for i, grid_cell_id in enumerate(grid_cells_list):
if grid_cell_id > min_grid_cell_id:
if int(grid_cell_id) > min_grid_cell_id:
print('\r Working on quadkey %s. Tile %s of %s.'
% (str(grid_cell_id), str(i+1), str(len(grid_cells_list))), end='')
# Coordinates of this particular cell:
......@@ -127,7 +127,8 @@ def run_this_file(config_dict):
DB_username_grid,
DB_schema_name_grid,
DB_table_name_grid,
grid_cell_id, area_i,
str(grid_cell_id),
area_i,
ghs_built_up_i/1000000.0,
'ghs_km2')
if error_str_i != '':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment