How can i put this Latitude Value in my VE application
16o 50' 27''
Thanks...
Virtual Earth: Map Control Development
How can i put this Latitude Value in my VE application
16o 50' 27''
Thanks...
VE won't accept the degree/minute/second format but you can use a formula to convert it into decimal degrees format and pass that into VE.
There's a useful formula here you can use:
Decimal Degrees = Degrees + (Minutes/60) + (Seconds/3600)
Taken from: http://maps2.nris.mt.gov/topofinder1/latlong.asp
Hope that helps,
I`ve made this function.
Maybe could help someone else.
private string formataLatLon(string LatLon)
{
string retorno = "0"; if (LatLon != ""){
string valor = LatLon.Replace("o", "");valor = valor.Replace(
"'", ""); string[] arr1 = valor.Split(' ');retorno =
Convert.ToDecimal(arr1[0]).ToString() + "." + Convert.ToString( (Convert.ToDecimal(arr1[1]) / 60) ) + Convert.ToString( (Convert.ToDecimal(arr1[2]) / 3600) );}
return retorno.ToString();}