Crs.ParseLatitude Methods
Reads a latitude from strings representing degrees, minutes, optionally seconds, and hemisphere.
Overload List
Name | Description | |
---|---|---|
ParseLatitude(System.String degrees, System.String minutes, System.String hemisphere) | Reads a latitude from strings representing degrees, minutes and hemisphere. | |
ParseLatitude(System.String degrees, System.String minutes, System.String seconds, System.String hemisphere) | Reads a latitude from strings representing degrees, minutes, seconds and hemisphere. |
ParseLatitude(System.String degrees, System.String minutes, System.String hemisphere)
Reads a latitude from strings representing degrees, minutes and hemisphere.Syntax
public static System.Double ParseLatitude (
System.String degrees,
System.String minutes,
System.String hemisphere
)
Parameters
Represents the degrees as an integer in the range 0 to 90.
Represents the minutes as a real number in the range 0.0 to 59.999... As decimal separator, either a dot or a comma can be used, regardless of numeric locale.
Represents the hemisphere ("N" for north or "S" for south).
Return Value
A latitude in degrees.
Remarks
Latitudes are considered to be positive north.
The method will throw an exception if it fails to parse the strings.
ParseLatitude(System.String degrees, System.String minutes, System.String seconds, System.String hemisphere)
Reads a latitude from strings representing degrees, minutes, seconds and hemisphere.Syntax
public static System.Double ParseLatitude (
System.String degrees,
System.String minutes,
System.String seconds,
System.String hemisphere
)
Parameters
Represents the degrees as an integer in the range 0 to 90.
Represents the minutes as an integer in the range 0 to 59.
Represents the seconds as a real number in the range 0.0 to 59.999... As decimal separator, either a dot or a comma can be used, regardless of numeric locale.
Represents the hemisphere ("N" for north or "S" for south).
Return Value
A latitude in degrees.
Remarks
Latitudes are considered to be positive north.
The method will throw an exception if it fails to parse the strings.
Platforms
Windows, Linux, Android