Go to the documentation of this file.
27 double *angle_degrees,
41 if (strncmp (
type,
"LAT",3) == 0)
46 else if (strncmp (
type,
"LON",3) == 0)
61 angle_dms = angle_dms * -1;
66 degree = (
int) (angle_dms / 1000000);
67 angle_dms = angle_dms - (degree * 1000000);
68 minute = (
int) (angle_dms / 1000);
69 second = angle_dms - (minute * 1000);
70 *angle_degrees =
sign * (degree + (minute/60.0) + (second/3600.0));
74 if ((*angle_degrees > upper) || (*angle_degrees < lower))
77 IAS_LOG_ERROR(
"Calculated angle of %f outside bounds of %f to %f",
78 *angle_degrees, lower, upper);
#define IAS_LOG_ERROR(format,...)
int ias_geo_convert_dms2deg(double angle_dms, double *angle_degrees, const char *type)