Skip to content

Commit 7aec666

Browse files
Create visualizer
1 parent a12f57c commit 7aec666

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

scripts/agritechlidar.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
from shapely.geometry import Polygon
22
from fetch_lidar import FetchLidar
3+
from vis import Vis
4+
35

46

57

@@ -10,3 +12,7 @@ def __init__(self) -> None:
1012

1113
def fetch_lidar(self, polygon: Polygon):
1214
return self.fetch_lidar(polygon)
15+
16+
17+
def render_vis(self, df: gpd.GeoDataFrame) -> Vis:
18+
return vis(df)

scripts/fetch_lidar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def fetch_data(self, bounds: Bounds, polygon_str: str, region: list) -> gpd.GeoD
4646
gpd.GeoDataFrame: Geopandas data frame containing geometry and elevation
4747
"""
4848
filename = region + "_" + bounds.get_bound_name()
49-
pl = self.get_pipeline(bounds.get_bound_str(),
49+
pl = self.make_pipeline(bounds.get_bound_str(),
5050
polygon_str, region, filename)
5151
pl.execute()
5252
dep_data = self._gdf_helper.create_gdf(pl.arrays)

0 commit comments

Comments
 (0)