Skip to content

jachappell/decimal-degrees-and-degrees-minutes-and-seconds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

decimal-degrees-and-degrees-minutes-and-seconds

C++ functions to convert between decimal degrees and degrees, minutes, and seconds

Here's some C++ functions which handle the conversion between these two formats:


std::string DMS::DegreesMinutesSeconds(double ang,
                                       unsigned int num_dec_places = 2)
std::string DMS::DegreesMinutesSecondsLat(double ang,
                                          unsigned int num_dec_places = 2)
std::string DMS::DegreesMinutesSecondsLon(double ang,
                                          unsigned int num_dec_places = 2)

double DMS::DecimalDegrees(const std::string& dms)

About

C++ functions to convert between decimal degrees and degrees, minutes, and seconds

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages