Duplicated tag when modifying DJI altitude

Started by kankamuso, May 29, 2023, 05:39:17 AM

Previous topic - Next topic

kankamuso

Hi,

I have written a Powershell script that reads GPS Altitude from a DJI photo and adds a few meters to it and modifies the value. Nevertheless, I can see two tags with the same name and different value (Absolute-Altitude):

[XMP-rdf]      About                          : DJI Meta Data
[XMP-drone-dji] Absolute Altitude              : 520.837524
[XMP-drone-dji] Relative Altitude              : 24.400000
[XMP-drone-dji] Gimbal Roll Degree              : 0.000000
[XMP-drone-dji] Gimbal Yaw Degree              : 6.100000
[XMP-drone-dji] Gimbal Pitch Degree            : -87.699997
[XMP-drone-dji] Flight Roll Degree              : -4.200000
[XMP-drone-dji] Flight Yaw Degree              : -0.400000
[XMP-drone-dji] Flight Pitch Degree            : -0.700000
[XMP-drone-dji] Cam Reverse                    : 0
[XMP-drone-dji] Gimbal Reverse                  : 0
[XMP-drone-dji] Rtk Flag                        : 0
[XMP-drone-dji] Absolute Altitude              : 620.837524

Am I doing something wrong or is this by design? How can I overwrite the existing value?

Thanks in advance, Jose

Phil Harvey

I can't tell why this is happening without seeing a sample photo.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).