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

removed: unused functions and comments

parent 4db164f3
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ import laspy
import numpy as np
from server.data_processing.area_processing import calculate_corners, define_gridareas, inArea, find_height, \
closest_points, position_relative_to_pointcloud, define_grid_lidardata
closest_points, define_grid_lidardata
# Info about data
......@@ -95,6 +95,8 @@ def calculate_area_data(center, body_of_water, path):
# Refactor lidar data to a readable format
iceOver = laspy.read(path)
print(iceOver[0])
ice_points = list(zip(iceOver.X, iceOver.Y, iceOver.Z))
max_point = max(ice_points)
......@@ -138,4 +140,4 @@ def calculate_area_data(center, body_of_water, path):
return [] # return [0] if no data collected from lidar
# print(calculate_area_data((61, 11), 'mj\u00f8sa', "server\\lidar_data\\mj\u00f8sa\\measurement_id_2.laz"))
\ No newline at end of file
print(calculate_area_data((61, 11), 'mj\u00f8sa', "server\\lidar_data\\mj\u00f8sa\\measurement_id_2.laz"))
\ No newline at end of file
......@@ -43,6 +43,8 @@ def input_new_Lidar_data(self, cursor, sensorId, bodyOfWater):
laz_file_path = "server\\lidar_data\\" + bodyOfWater + "\\measurement_id_" + str(measurement_id)+".laz"
about_laz_file(laz_file_path)
# data about the file read from
# about_laz = about_laz_file() cannot do this if data is changed
# scale_factor = max(about_laz[2])
......
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