Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GPSHPositioningError exif tag #2543

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,9 @@ public abstract partial class ExifTag
/// Gets the GPSDestDistance exif tag.
/// </summary>
public static ExifTag<Rational> GPSDestDistance { get; } = new ExifTag<Rational>(ExifTagValue.GPSDestDistance);

/// <summary>
/// Gets the GPSHPositioningError exif tag.
/// </summary>
public static ExifTag<Rational> GPSHPositioningError { get; } = new ExifTag<Rational>(ExifTagValue.GPSHPositioningError);
}
5 changes: 5 additions & 0 deletions src/ImageSharp/Metadata/Profiles/Exif/Tags/ExifTagValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,11 @@ internal enum ExifTagValue
/// </summary>
GPSDifferential = 0x001E,

/// <summary>
/// GPSHPositioningError
/// </summary>
GPSHPositioningError = 0x001F,

/// <summary>
/// Used in the Oce scanning process.
/// Identifies the scanticket used in the scanning process.
Expand Down
2 changes: 2 additions & 0 deletions src/ImageSharp/Metadata/Profiles/Exif/Values/ExifValues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ internal static partial class ExifValues
return new ExifRational(ExifTag.GPSDestBearing);
case ExifTagValue.GPSDestDistance:
return new ExifRational(ExifTag.GPSDestDistance);
case ExifTagValue.GPSHPositioningError:
return new ExifRational(ExifTag.GPSHPositioningError);

case ExifTagValue.WhitePoint:
return new ExifRationalArray(ExifTag.WhitePoint);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public class ExifValuesTests
{ ExifTag.GPSImgDirection },
{ ExifTag.GPSDestBearing },
{ ExifTag.GPSDestDistance },
{ ExifTag.GPSHPositioningError },
};

public static TheoryData<ExifTag> RationalArrayTags => new TheoryData<ExifTag>
Expand Down
Loading