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

fix: spelling mistake in lastLake retrieval

parent c9a93347
No related branches found
No related tags found
1 merge request!19Clhp map, license agreement
......@@ -53,10 +53,6 @@ Future<void> initialiseState(bool fetchSearchOptions) async {
// Sort the list of SubDiv objects based on each subdivision id
selectedSubdivisions.sort((a, b) => int.parse(a.sub_div_id).compareTo(int.parse(b.sub_div_id)));
for (SubDiv subdivision in selectedSubdivisions) {
print("SubdivID: ${subdivision.sub_div_id}");
}
serverConnection = fetchResult.connected;
setLastLake(); // Update persistent value for latest fetched lake
......@@ -80,7 +76,7 @@ Future<void> initialiseState(bool fetchSearchOptions) async {
// Last lake initialised to last persistent variable, or Mjøsa if the variable is not found
final prefs = await SharedPreferences.getInstance();
selectedLake = prefs.getString('lasLake') ?? "Mjøsa";
selectedLake = prefs.getString('lastLake') ?? "Mjøsa";
// Set the selected relation
selectedRelation = await relationFuture;
......
No preview for this file type
......@@ -161,13 +161,6 @@ def create_grid(poly: Polygon, cell_width: float, cell_height: float) -> list:
# List to store all created lines
grid_lines = []
# Create vertical lines while within bounds
x = min_x
while x <= max_x:
line = LineString([(x, min_y), (x, max_y)])
grid_lines.append(line)
x += cell_width
# Create horizontal lines while within bounds
y = min_y
while y <= max_y:
......@@ -175,6 +168,13 @@ def create_grid(poly: Polygon, cell_width: float, cell_height: float) -> list:
grid_lines.append(line)
y += cell_height
# Create vertical lines while within bounds
x = min_x
while x <= max_x:
line = LineString([(x, min_y), (x, max_y)])
grid_lines.append(line)
x += cell_width
return grid_lines
......
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