PeachImage
PeachImage
ExifLocation Struct
The raw GPS location tags found in an image’s EXIF metadata (the GPS IFD, tags GPSLatitude, GPSLongitude,
GPSDestLatitude and GPSDestLongitude and their Ref companions), exactly as recorded: nothing is
geocoded, rounded or signed. Each coordinate is the unsigned decimal-degree value of the file’s degrees/minutes/seconds
rationals; the hemisphere is in the matching Ref member ('N'/'S', 'E'/'W'), so a caller
wanting a signed value negates for 'S' and 'W'.
public readonly record struct ExifLocation : System.IEquatable<PeachImage.ExifLocation>
Implements System.IEquatable<ExifLocation>
Remarks
A member is null when its tag is absent <em>or</em> present but malformed (a zero denominator, a value that runs past the end of the EXIF block, the wrong type). The presence of a malformed tag is still reported by HasLocation, since the location question is about what the metadata names, not whether this reader could make sense of it.
| Constructors | |
|---|---|
| ExifLocation(Nullable<double>, Nullable<char>, Nullable<double>, Nullable<char>, Nullable<double>, Nullable<char>, Nullable<double>, Nullable<char>) | The raw GPS location tags found in an image’s EXIF metadata (the GPS IFD, tags GPSLatitude, GPSLongitude, GPSDestLatitude and GPSDestLongitude and their Ref companions), exactly as recorded: nothing is geocoded, rounded or signed. Each coordinate is the unsigned decimal-degree value of the file’s degrees/minutes/seconds rationals; the hemisphere is in the matching Ref member ('N'/'S', 'E'/'W'), so a caller wanting a signed value negates for 'S' and 'W'. |
| Properties | |
|---|---|
| DestLatitude | The GPSDestLatitude value in unsigned decimal degrees, if present and well-formed. |
| DestLatitudeRef | The GPSDestLatitudeRef character, if present. |
| DestLongitude | The GPSDestLongitude value in unsigned decimal degrees, if present and well-formed. |
| DestLongitudeRef | The GPSDestLongitudeRef character, if present. |
| Latitude | The GPSLatitude value in unsigned decimal degrees, if present and well-formed. |
| LatitudeRef | The GPSLatitudeRef character ('N' or 'S'), if present. |
| Longitude | The GPSLongitude value in unsigned decimal degrees, if present and well-formed. |
| LongitudeRef | The GPSLongitudeRef character ('E' or 'W'), if present. |