Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeExifGpsCoordinate

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
4b48da3feb8c with working tree changes
Modifiers
sealed

Validated decimal GPS coordinates with the exact source DMS rationals retained.

Inheritance

  • object
  • OfficeExifGpsCoordinate

Usage

Explore 2 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Returned or exposed by 1

Accepted by parameters 1

Methods

public static bool TryCreate(OfficeRational[]? latitude, string? latitudeRef, OfficeRational[]? longitude, string? longitudeRef, out OfficeExifGpsCoordinate? coordinate) #

Validates both DMS triples and cardinal references before returning decimal coordinates.

Parameters

latitude OfficeIMO.Drawing.OfficeRational[]? required
latitudeRef string? required
longitude OfficeIMO.Drawing.OfficeRational[]? required
longitudeRef string? required
coordinate OfficeIMO.Drawing.OfficeExifGpsCoordinate? required

Returns

bool

Properties

public double Latitude { get; } #

Decimal degrees in [-90,90].

public double Longitude { get; } #

Decimal degrees in [-180,180].

public string LatitudeReference { get; } #

Original latitude direction.

public string LongitudeReference { get; } #

Original longitude direction.

public OfficeRational[] LatitudeDms { get; } #

A copy of the exact latitude degrees/minutes/seconds.

public OfficeRational[] LongitudeDms { get; } #

A copy of the exact longitude degrees/minutes/seconds.