diff --git a/server/data_processing/process_lidar_data.py b/server/data_processing/process_lidar_data.py index 991abbf15fa251bf5d140a20579dc81c43a53f71..de82b3e1289e0910f7bf4f7768c7a4dbf8c08b75 100644 --- a/server/data_processing/process_lidar_data.py +++ b/server/data_processing/process_lidar_data.py @@ -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 diff --git a/server/map_handler/input_new_data.py b/server/map_handler/input_new_data.py index e4f7dcc88530daa94d79bfb4fe748c501e9caa3c..59c980e83c1a30177c049d21ede7039a9201e221 100644 --- a/server/map_handler/input_new_data.py +++ b/server/map_handler/input_new_data.py @@ -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])