Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
measprocess
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lukas Eller
measprocess
Commits
e7b8e3aa
Commit
e7b8e3aa
authored
Feb 01, 2022
by
Lukas Eller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed return value of geospatial process landuseclasses
parent
85040600
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
process.py
measprocess/geospatial/process.py
+3
-4
No files found.
measprocess/geospatial/process.py
View file @
e7b8e3aa
...
@@ -4,6 +4,7 @@ from shapely.geometry import LineString, Point, Polygon, box
...
@@ -4,6 +4,7 @@ from shapely.geometry import LineString, Point, Polygon, box
from
shapely.ops
import
unary_union
from
shapely.ops
import
unary_union
from
tqdm
import
tqdm
from
tqdm
import
tqdm
import
pandas
as
pd
import
pandas
as
pd
from
typing
import
Dict
def
project_onto_streets
(
def
project_onto_streets
(
point_series
:
gpd
.
GeoSeries
,
point_series
:
gpd
.
GeoSeries
,
...
@@ -211,7 +212,7 @@ def assign_landuse_classes(
...
@@ -211,7 +212,7 @@ def assign_landuse_classes(
cut_polygons_by_buffer
:
bool
=
False
,
cut_polygons_by_buffer
:
bool
=
False
,
buffer_size
:
int
=
0
,
buffer_size
:
int
=
0
,
epsg
:
str
=
"EPSG:31287"
,
epsg
:
str
=
"EPSG:31287"
,
)
->
gpd
.
GeoDataFrame
:
)
->
Dict
:
'''
'''
Returns a DataFrame with the landuse class distribution in the area defined by the buffer_size around the passed locations
Returns a DataFrame with the landuse class distribution in the area defined by the buffer_size around the passed locations
Landuseclasses are defined according to the Corine Land Cover Project:
Landuseclasses are defined according to the Corine Land Cover Project:
...
@@ -276,6 +277,4 @@ def assign_landuse_classes(
...
@@ -276,6 +277,4 @@ def assign_landuse_classes(
results
[
i
]
=
first5pairs
results
[
i
]
=
first5pairs
result_df
=
pd
.
DataFrame
(
results
)
.
transpose
()
return
results
result_df
.
index
=
point_geodataframe
.
index
return
result_df
Write
Preview
Markdown
is supported
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