Skip to content
Snippets Groups Projects
Commit d927627c authored by Sara Savanovic Djordjevic's avatar Sara Savanovic Djordjevic
Browse files

Merge branch 'clhp_map' into 'main'

Upadte: move cell size values to top of json file

See merge request !15
parents bcc41eb5 358b0c60
No related branches found
No related tags found
1 merge request!15Upadte: move cell size values to top of json file
No preview for this file type
......@@ -99,11 +99,11 @@ def cut_map(self, cursor, lake_name: str, cell_size_in_km: float = 0.5):
# Create new GeoJSON object containing all the new feature objects
feature_collection = {
'type': 'FeatureCollection',
'features': features,
'tile_count': sub_div_id, # Add the last subdivision ID as number of tiles
'cell_count': sub_div_id, # Add the last subdivision ID as number of tiles
'cell_width': cell_width,
'cell_height': cell_height,
'cell_size_in_km': cell_size_in_km
'cell_size_in_km': cell_size_in_km,
'features': features
}
# Add lake name to database
......
[
"Mjøsa",
"Skumsjøen"
"Skumsjøen",
"Mjsa",
"Skumsjen"
]
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment