Browse Source
Merge pull request #2543 from Cheesebaron/feature/2542-GPSHPositioningError-exif-tag
Add GPSHPositioningError exif tag
pull/2549/head
James Jackson-South
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
13 additions and
0 deletions
-
src/ImageSharp/Metadata/Profiles/Exif/Tags/ExifTag.Rational.cs
-
src/ImageSharp/Metadata/Profiles/Exif/Tags/ExifTagValue.cs
-
src/ImageSharp/Metadata/Profiles/Exif/Values/ExifValues.cs
-
tests/ImageSharp.Tests/Metadata/Profiles/Exif/Values/ExifValuesTests.cs
|
|
|
@ -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); |
|
|
|
} |
|
|
|
|
|
|
|
@ -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.
|
|
|
|
|
|
|
|
@ -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); |
|
|
|
|
|
|
|
@ -128,6 +128,7 @@ public class ExifValuesTests |
|
|
|
{ ExifTag.GPSImgDirection }, |
|
|
|
{ ExifTag.GPSDestBearing }, |
|
|
|
{ ExifTag.GPSDestDistance }, |
|
|
|
{ ExifTag.GPSHPositioningError }, |
|
|
|
}; |
|
|
|
|
|
|
|
public static TheoryData<ExifTag> RationalArrayTags => new TheoryData<ExifTag> |
|
|
|
|