Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Dynamic Exposure
Legacy
gde_calculations_prototype
Commits
89638274
Commit
89638274
authored
Jun 14, 2021
by
Cecilia Nievas
Browse files
Forced variable types in SERA_mapping_..._add_GHS_from_OBM_tiles.py
parent
03b2f2af
Changes
1
Hide whitespace changes
Inline
Side-by-side
SERA_mapping_admin_units_to_cells_add_GHS_from_OBM_tiles.py
View file @
89638274
...
...
@@ -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
!=
''
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment