/// <summary>
        /// Convert a lat long coordinate into the appropriate DLS survey coordinate
        /// Note: This method requires access to the township grid intersection reference table
        /// </summary>
        /// <param name="coordinate"></param>
        /// <returns></returns>
        public static DlsSystem ToDlsSystem(LatLongCoordinate coordinate)
        {
            var dls = DlsSystemConverter.FromLatLongCoordinate(coordinate);

            if (dls == null)
            {
                throw new CoordinateConversionException("Dls lookup failed");
            }
            return(dls.Value);
        }
Exemple #2
0
 public static LatLongCoordinate ToLatLong(DlsSystem system)
 {
     return(DlsSystemConverter.ToLatLong(system));
 }
Exemple #3
0
 /// <summary>
 /// Return lat/long for this dls
 /// </summary>
 /// <returns></returns>
 public LatLongCoordinate ToLatLong()
 {
     return(DlsSystemConverter.ToLatLong(this));
 }