Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROG2900
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sara Savanovic Djordjevic
PROG2900
Commits
99426241
Commit
99426241
authored
10 months ago
by
Sara Savanovic Djordjevic
Browse files
Options
Downloads
Patches
Plain Diff
update: minor update
parent
c7a3221d
No related branches found
Branches containing commit
No related tags found
1 merge request
!16
Clhp map into main
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/map_handler/add_new_lake.py
+1
-2
1 addition, 2 deletions
server/map_handler/add_new_lake.py
with
1 addition
and
2 deletions
server/map_handler/add_new_lake.py
+
1
−
2
View file @
99426241
import
os
import
json
from
math
import
cos
,
sqrt
,
fabs
import
random
from
math
import
cos
import
geopandas
as
gpd
from
matplotlib
import
pyplot
as
plt
from
shapely.ops
import
linemerge
,
unary_union
,
polygonize
...
...
@@ -10,7 +10,6 @@ from shapely.geometry import Polygon, LineString, MultiLineString
from
server.consts
import
LAKE_RELATIONS_PATH
# Read a json file with relation data and send to response object
def
cut_map
(
self
,
cursor
,
lake_name
:
str
,
cell_size_in_km
:
float
=
0.5
):
"""
Cuts a map into a grid based on a selected cell size
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment