kopia lustrzana https://github.com/OpenDroneMap/ODM
Merge pull request #849 from pierotofy/laslaz
Renamed las-->laz
Former-commit-id: 189b93a11d
pull/1161/head
commit
d2d3fb9be3
|
@ -477,8 +477,8 @@ class ODM_Tree(object):
|
||||||
self.odm_georeferencing, 'odm_georeferenced_model.csv')
|
self.odm_georeferencing, 'odm_georeferenced_model.csv')
|
||||||
self.odm_georeferencing_las_json = io.join_paths(
|
self.odm_georeferencing_las_json = io.join_paths(
|
||||||
self.odm_georeferencing, 'las.json')
|
self.odm_georeferencing, 'las.json')
|
||||||
self.odm_georeferencing_model_las = io.join_paths(
|
self.odm_georeferencing_model_laz = io.join_paths(
|
||||||
self.odm_georeferencing, 'odm_georeferenced_model.las')
|
self.odm_georeferencing, 'odm_georeferenced_model.laz')
|
||||||
self.odm_georeferencing_dem = io.join_paths(
|
self.odm_georeferencing_dem = io.join_paths(
|
||||||
self.odm_georeferencing, 'odm_georeferencing_model_dem.tif')
|
self.odm_georeferencing, 'odm_georeferencing_model_dem.tif')
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ class ODMDEMCell(ecto.Cell):
|
||||||
# get inputs
|
# get inputs
|
||||||
args = self.inputs.args
|
args = self.inputs.args
|
||||||
tree = self.inputs.tree
|
tree = self.inputs.tree
|
||||||
las_model_found = io.file_exists(tree.odm_georeferencing_model_las)
|
las_model_found = io.file_exists(tree.odm_georeferencing_model_laz)
|
||||||
|
|
||||||
# check if we rerun cell or not
|
# check if we rerun cell or not
|
||||||
rerun_cell = (args.rerun is not None and
|
rerun_cell = (args.rerun is not None and
|
||||||
|
@ -40,7 +40,7 @@ class ODMDEMCell(ecto.Cell):
|
||||||
log.ODM_INFO('Classify: ' + str(args.pc_classify != "none"))
|
log.ODM_INFO('Classify: ' + str(args.pc_classify != "none"))
|
||||||
log.ODM_INFO('Create DSM: ' + str(args.dsm))
|
log.ODM_INFO('Create DSM: ' + str(args.dsm))
|
||||||
log.ODM_INFO('Create DTM: ' + str(args.dtm))
|
log.ODM_INFO('Create DTM: ' + str(args.dtm))
|
||||||
log.ODM_INFO('DEM input file {0} found: {1}'.format(tree.odm_georeferencing_model_las, str(las_model_found)))
|
log.ODM_INFO('DEM input file {0} found: {1}'.format(tree.odm_georeferencing_model_laz, str(las_model_found)))
|
||||||
|
|
||||||
# Setup terrain parameters
|
# Setup terrain parameters
|
||||||
terrain_params_map = {
|
terrain_params_map = {
|
||||||
|
@ -61,8 +61,8 @@ class ODMDEMCell(ecto.Cell):
|
||||||
pc_classify_marker = os.path.join(odm_dem_root, 'pc_classify_done.txt')
|
pc_classify_marker = os.path.join(odm_dem_root, 'pc_classify_done.txt')
|
||||||
|
|
||||||
if not io.file_exists(pc_classify_marker) or rerun_cell:
|
if not io.file_exists(pc_classify_marker) or rerun_cell:
|
||||||
log.ODM_INFO("Classifying {} using {}".format(tree.odm_georeferencing_model_las, args.pc_classify))
|
log.ODM_INFO("Classifying {} using {}".format(tree.odm_georeferencing_model_laz, args.pc_classify))
|
||||||
commands.classify(tree.odm_georeferencing_model_las,
|
commands.classify(tree.odm_georeferencing_model_laz,
|
||||||
args.pc_classify == "smrf",
|
args.pc_classify == "smrf",
|
||||||
slope,
|
slope,
|
||||||
cellsize,
|
cellsize,
|
||||||
|
@ -96,7 +96,7 @@ class ODMDEMCell(ecto.Cell):
|
||||||
|
|
||||||
for product in products:
|
for product in products:
|
||||||
commands.create_dems(
|
commands.create_dems(
|
||||||
[tree.odm_georeferencing_model_las],
|
[tree.odm_georeferencing_model_laz],
|
||||||
product,
|
product,
|
||||||
radius=map(str, radius_steps),
|
radius=map(str, radius_steps),
|
||||||
gapfill=True,
|
gapfill=True,
|
||||||
|
|
|
@ -138,7 +138,7 @@ class ODMGeoreferencingCell(ecto.Cell):
|
||||||
|
|
||||||
# convert ply model to LAS reference system
|
# convert ply model to LAS reference system
|
||||||
geo_ref.convert_to_las(odm_georeferencing_model_ply_geo,
|
geo_ref.convert_to_las(odm_georeferencing_model_ply_geo,
|
||||||
tree.odm_georeferencing_model_las,
|
tree.odm_georeferencing_model_laz,
|
||||||
tree.odm_georeferencing_las_json)
|
tree.odm_georeferencing_las_json)
|
||||||
|
|
||||||
reconstruction.georef = geo_ref
|
reconstruction.georef = geo_ref
|
||||||
|
@ -171,7 +171,7 @@ class ODMGeoreferencingCell(ecto.Cell):
|
||||||
if args.crop > 0:
|
if args.crop > 0:
|
||||||
log.ODM_INFO("Calculating cropping area and generating bounds shapefile from point cloud")
|
log.ODM_INFO("Calculating cropping area and generating bounds shapefile from point cloud")
|
||||||
cropper = Cropper(tree.odm_georeferencing, 'odm_georeferenced_model')
|
cropper = Cropper(tree.odm_georeferencing, 'odm_georeferenced_model')
|
||||||
cropper.create_bounds_shapefile(tree.odm_georeferencing_model_las, args.crop)
|
cropper.create_bounds_shapefile(tree.odm_georeferencing_model_laz, args.crop)
|
||||||
|
|
||||||
# Do not execute a second time, since
|
# Do not execute a second time, since
|
||||||
# We might be doing georeferencing for
|
# We might be doing georeferencing for
|
||||||
|
|
Ładowanie…
Reference in New Issue