kopia lustrzana https://github.com/OpenDroneMap/ODM
commit
3b67b90bcc
|
@ -43,10 +43,14 @@ class ODMOrthoPhotoStage(types.ODM_Stage):
|
||||||
'res': resolution,
|
'res': resolution,
|
||||||
'bands': '',
|
'bands': '',
|
||||||
'verbose': verbose,
|
'verbose': verbose,
|
||||||
'a_srs': reconstruction.georef.proj4(),
|
'a_srs': '',
|
||||||
'offsets': '{} {}'.format(reconstruction.georef.utm_east_offset, reconstruction.georef.utm_north_offset)
|
'offsets': '',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if reconstruction.is_georeferenced():
|
||||||
|
kwargs['a_srs'] = '-a_srs "{}"'.format(reconstruction.georef.proj4())
|
||||||
|
kwargs['offsets'] = '-offsets {} {}'.format(reconstruction.georef.utm_east_offset, reconstruction.georef.utm_north_offset)
|
||||||
|
|
||||||
models = []
|
models = []
|
||||||
|
|
||||||
if args.use_3dmesh:
|
if args.use_3dmesh:
|
||||||
|
@ -72,7 +76,7 @@ class ODMOrthoPhotoStage(types.ODM_Stage):
|
||||||
# run odm_orthophoto
|
# run odm_orthophoto
|
||||||
system.run('"{odm_ortho_bin}" -inputFiles {models} '
|
system.run('"{odm_ortho_bin}" -inputFiles {models} '
|
||||||
'-logFile "{log}" -outputFile "{ortho}" -resolution {res} {verbose} '
|
'-logFile "{log}" -outputFile "{ortho}" -resolution {res} {verbose} '
|
||||||
'-outputCornerFile "{corners}" -a_srs "{a_srs}" -offsets {offsets} {bands}'.format(**kwargs))
|
'-outputCornerFile "{corners}" {a_srs} {offsets} {bands}'.format(**kwargs))
|
||||||
|
|
||||||
# Create georeferenced GeoTiff
|
# Create georeferenced GeoTiff
|
||||||
geotiffcreated = False
|
geotiffcreated = False
|
||||||
|
|
Ładowanie…
Reference in New Issue