Skip to content
Snippets Groups Projects
Commit fb490448 authored by Hoa Ben The Nguyen's avatar Hoa Ben The Nguyen
Browse files

add: comment for things to see through later

parent 5153c674
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,6 @@ def define_gridareas(lat, lng, area_offset, grid_size):
grided_area.append((sub_id, group_id + i%2, corners))
return grided_area
#[1,2,2,3,4,5,6,3,4,6,8,9,5,3,5.7,8,5,3]
#print(define_gridareas(-60,10,10000,4))
#print(define_gridareas(3435693.5,6299200.0, 400000,4))
\ No newline at end of file
......@@ -37,6 +37,7 @@ def get_relation(self, body_of_water: str): # NB: implement body_of_water
sub_div_id = 0
for tile in tiles:
tile['sub_div_id'] = sub_div_id
# Warning: finner ikke center av grid celler, men center av punkt 0 eller annet? til (x,y)
tile['sub_div_center'] = tile['geometry'].centroid.apply(lambda x: [x.x, x.y])
sub_div_id += 1
......
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