diff --git a/SuperBuild/cmake/External-OpenSfM.cmake b/SuperBuild/cmake/External-OpenSfM.cmake index 7215cf9f..6b1a0067 100644 --- a/SuperBuild/cmake/External-OpenSfM.cmake +++ b/SuperBuild/cmake/External-OpenSfM.cmake @@ -30,7 +30,7 @@ ExternalProject_Add(${_proj_name} #--Download step-------------- DOWNLOAD_DIR ${SB_DOWNLOAD_DIR} GIT_REPOSITORY https://github.com/WebODM/OpenSfM/ - GIT_TAG bf7f84a9109098971f7a15ed9b0348b98e093ed7 + GIT_TAG fac86a643ff542b9a7718ece838549e67bd136d8 #--Update/Patch step---------- UPDATE_COMMAND git submodule update --init --recursive #--Configure step------------- diff --git a/VERSION b/VERSION index 19811903..f2807196 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.8.0 +3.8.1 diff --git a/opendm/photo.py b/opendm/photo.py index 3ce827b3..36463185 100644 --- a/opendm/photo.py +++ b/opendm/photo.py @@ -113,6 +113,7 @@ def __init__(self, path_file): self.latitude = None self.longitude = None self.altitude = None + self.relative_altitude = None # Multi-band fields self.band_name = 'RGB' @@ -390,6 +391,9 @@ def parse_exif_values(self, _path_file): self.set_attr_from_xmp_tag('altitude', xtags, [ '@drone-dji:AbsoluteAltitude' ], float) + self.set_attr_from_xmp_tag('relative_altitude', xtags, [ + '@drone-dji:RelativeAltitude' + ], float) # Phantom 4 RTK if '@drone-dji:RtkStdLon' in xtags: @@ -867,6 +871,9 @@ def to_opensfm_exif(self, rolling_shutter = False, rolling_shutter_readout = 0, 'kappa': self.kappa } + if self.relative_altitude is not None: + d['relative_altitude'] = self.relative_altitude + # Speed is not useful without GPS if self.has_speed() and has_gps: d['speed'] = [self.speed_y, self.speed_x, self.speed_z]