Skip to content

Commit 8c1113e

Browse files
Merge pull request #2543 from Cheesebaron/feature/2542-GPSHPositioningError-exif-tag
Add GPSHPositioningError exif tag
2 parents 8bd273f + c731761 commit 8c1113e

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

src/ImageSharp/Metadata/Profiles/Exif/Tags/ExifTag.Rational.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,4 +165,9 @@ public abstract partial class ExifTag
165165
/// Gets the GPSDestDistance exif tag.
166166
/// </summary>
167167
public static ExifTag<Rational> GPSDestDistance { get; } = new ExifTag<Rational>(ExifTagValue.GPSDestDistance);
168+
169+
/// <summary>
170+
/// Gets the GPSHPositioningError exif tag.
171+
/// </summary>
172+
public static ExifTag<Rational> GPSHPositioningError { get; } = new ExifTag<Rational>(ExifTagValue.GPSHPositioningError);
168173
}

src/ImageSharp/Metadata/Profiles/Exif/Tags/ExifTagValue.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,6 +1691,11 @@ internal enum ExifTagValue
16911691
/// </summary>
16921692
GPSDifferential = 0x001E,
16931693

1694+
/// <summary>
1695+
/// GPSHPositioningError
1696+
/// </summary>
1697+
GPSHPositioningError = 0x001F,
1698+
16941699
/// <summary>
16951700
/// Used in the Oce scanning process.
16961701
/// Identifies the scanticket used in the scanning process.

src/ImageSharp/Metadata/Profiles/Exif/Values/ExifValues.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ internal static partial class ExifValues
241241
return new ExifRational(ExifTag.GPSDestBearing);
242242
case ExifTagValue.GPSDestDistance:
243243
return new ExifRational(ExifTag.GPSDestDistance);
244+
case ExifTagValue.GPSHPositioningError:
245+
return new ExifRational(ExifTag.GPSHPositioningError);
244246

245247
case ExifTagValue.WhitePoint:
246248
return new ExifRationalArray(ExifTag.WhitePoint);

tests/ImageSharp.Tests/Metadata/Profiles/Exif/Values/ExifValuesTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public class ExifValuesTests
128128
{ ExifTag.GPSImgDirection },
129129
{ ExifTag.GPSDestBearing },
130130
{ ExifTag.GPSDestDistance },
131+
{ ExifTag.GPSHPositioningError },
131132
};
132133

133134
public static TheoryData<ExifTag> RationalArrayTags => new TheoryData<ExifTag>

0 commit comments

Comments
 (0)