From 8aeaef5fcdc594643c8c0dddd74c8f1154b9c22e Mon Sep 17 00:00:00 2001 From: Michel Daab Date: Tue, 12 Dec 2023 15:10:42 +0100 Subject: [PATCH] change for code neatness --- myria3d/pctl/dataset/utils.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/myria3d/pctl/dataset/utils.py b/myria3d/pctl/dataset/utils.py index 4aee5434..9d1b269f 100644 --- a/myria3d/pctl/dataset/utils.py +++ b/myria3d/pctl/dataset/utils.py @@ -85,7 +85,7 @@ def get_pdal_reader(las_path: str, epsg: str) -> pdal.Reader.las: if epsg : # if an epsg in provided, force pdal to read the lidar file with it - try : # epsg can be added as a number like "2154" or as a string like "EPSG:2154" + try : # epsg can be added as a number like "2154" or as a string like "EPSG:2154" int(epsg) return pdal.Reader.las( filename=las_path, @@ -99,12 +99,6 @@ def get_pdal_reader(las_path: str, epsg: str) -> pdal.Reader.las: override_srs=epsg, ) - - # if 'srs' in get_metadata(las_path)['metadata']['readers.las'] and \ - # 'compoundwkt' in get_metadata(las_path)['metadata']['readers.las']['srs'] and \ - # get_metadata(las_path)['metadata']['readers.las']['srs']['compoundwkt']: - # # read the lidar file with pdal default - # return pdal.Reader.las(filename=las_path) try : if get_metadata(las_path)['metadata']['readers.las']['srs']['compoundwkt']: # read the lidar file with pdal default