#include "MetarStation.h"
#include <algorithm>
-#include <simgear/misc/fgpath.hxx>
-
#if !defined (SG_HAVE_NATIVE_SGI_COMPILERS)
SG_USING_STD(ostream);
SG_USING_STD(cout);
s = t; t = strchr( s, ';' ); *t = 0; t++;
double ulongitude = decodeDMS( s );
s = t; t = strchr( s, ';' ); *t = 0; t++;
- double altitude = atoi( s ) * FEET_TO_METER;
- m_altitude = altitude;
+ double altitude = atoi( s ) * SG_FEET_TO_METER;
+ m_altitude = (int)altitude;
s = t; t = strchr( s, ';' ); *t = 0; t++;
- double ualtitude = atoi( s ) * FEET_TO_METER;
+ double ualtitude = atoi( s ) * SG_FEET_TO_METER;
Point3D p( longitude, latitude, altitude+SG_EQUATORIAL_RADIUS_M );
m_locationPolar = p;
m_locationCart = sgPolarToCart3d( p );
{
std::map<std::string,CMetarStation*>::iterator itr;
double bestDist = 99999999;
- CMetarStation * bestStation;
+ CMetarStation *bestStation = NULL;
Point3D curLocation = locationCart;
itr = METAR_Stations.begin();
while(itr != METAR_Stations.end())