Skip to content

Commit

Permalink
change for code neatness
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelDaab authored and leavauchier committed Dec 13, 2023
1 parent 0889d86 commit 8aeaef5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions myria3d/pctl/dataset/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 8aeaef5

Please sign in to comment.