Maur&#237&#59;cio Roberto Gonzatto


How can i put this Latitude Value in my VE application

16o 50' 27''

Thanks...





Re: Format Lat and Lon

Derek Chan


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,







Re: Format Lat and Lon

Mauricio Roberto Gonzatto

You`re the man!!!

Thank`s again!







Re: Format Lat and Lon

Mauricio Roberto Gonzatto

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();

}