Method ParseLatitudeLongitude
ParseLatitudeLongitude(String)
Extract (by calling ParsePoint(String[], String, Int32) and validate the latitude and longitude contained in the string by making sure the latitude is between 90 & -90 and longitude is between -180 and 180.
The latitude is assumed to be the first part of the string and the longitude the second part.
Declaration
public static double[] ParseLatitudeLongitude(string latLonStr)
Parameters
Type | Name | Description |
---|---|---|
System.String | latLonStr | The string to parse. Latitude is the first value, longitude is the second. |
Returns
Type | Description |
---|---|
System.Double[] | The lat long |
Exceptions
Type | Condition |
---|---|
InvalidShapeException | if there was an error parsing |
ParseLatitudeLongitude(Double[], String)
A variation of ParseLatitudeLongitude(String) that re-uses an output array.
Declaration
public static double[] ParseLatitudeLongitude(double[] outLatLon, string latLonStr)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | outLatLon | |
System.String | latLonStr |
Returns
Type | Description |
---|---|
System.Double[] |