Einzelnen Beitrag anzeigen

Satty67

Registriert seit: 24. Feb 2007
Ort: Baden
1.566 Beiträge
 
Delphi 2007 Professional
 
#5

AW: Geokoordinaten Umrechnen in Dezimalgrad

  Alt 27. Mai 2011, 09:00
Gefunden:

Delphi-Quellcode:
function GeoToDec(Grad : Integer; Min, Sec : Double; Direction : AnsiChar): Double;
begin
  Result := (Min / 60) + (Sec / 3600) + Grad;
  if Direction in ['S', 'W'] then
    Result := -Result;
end;
Also E48° 41' 50.908" wird so übergeben:

GeoToDec(48, 41, 50.908, 'N')

Geändert von Satty67 (27. Mai 2011 um 09:44 Uhr)
  Mit Zitat antworten Zitat