using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace CoordinateSharp
{
///
/// Coordinate formatting options for a Coordinate object.
///
[Serializable]
public class CoordinateFormatOptions
{
///
/// Set default values with the constructor.
///
public CoordinateFormatOptions()
{
Format = CoordinateFormatType.Degree_Minutes_Seconds;
Round = 3;
Display_Leading_Zeros = false;
Display_Trailing_Zeros = false;
Display_Symbols = true;
Display_Degree_Symbol = true;
Display_Minute_Symbol = true;
Display_Seconds_Symbol = true;
Display_Hyphens = false;
Position_First = true;
}
///
/// Coordinate format type.
///
public CoordinateFormatType Format { get; set; }
///
/// Rounds Coordinates to the set value.
///
public int Round { get; set; }
///
/// Displays leading zeros.
///
public bool Display_Leading_Zeros { get; set; }
///
/// Display trailing zeros.
///
public bool Display_Trailing_Zeros { get; set; }
///
/// Allow symbols to display.
///
public bool Display_Symbols { get; set; }
///
/// Display degree symbols.
///
public bool Display_Degree_Symbol { get; set; }
///
/// Display minute symbols.
///
public bool Display_Minute_Symbol { get; set; }
///
/// Display secons symbol.
///
public bool Display_Seconds_Symbol { get; set; }
///
/// Display hyphens between values.
///
public bool Display_Hyphens { get; set; }
///
/// Show coordinate position first.
/// Will show last if set 'false'.
///
public bool Position_First { get; set; }
}
///
/// Coordinate Format Types.
///
[Serializable]
public enum CoordinateFormatType
{
///
/// Decimal Degree Format
///
///
/// Example: N 40.456 W 75.456
///
Decimal_Degree,
///
/// Decimal Degree Minutes Format
///
///
/// Example: N 40º 34.552' W 70º 45.408'
///
Degree_Decimal_Minutes,
///
/// Decimal Degree Minutes Format
///
///
/// Example: N 40º 34" 36.552' W 70º 45" 24.408'
///
Degree_Minutes_Seconds,
///
/// Decimal Format
///
///
/// Example: 40.57674 -70.46574
///
Decimal
}
}