10 #if !defined(GEOGRAPHICLIB_OSGB_HPP)
11 #define GEOGRAPHICLIB_OSGB_HPP 1
18 # pragma warning (push)
19 # pragma warning (disable: 4251)
47 static const std::string letters_;
48 static const std::string digits_;
55 tileoffx_ = 2 * tilegrid_,
56 tileoffy_ = 1 * tilegrid_,
57 minx_ = - tileoffx_ * tile_,
58 miny_ = - tileoffy_ * tile_,
59 maxx_ = (tilegrid_*tilegrid_ - tileoffx_) * tile_,
60 maxy_ = (tilegrid_*tilegrid_ - tileoffy_) * tile_,
64 static real computenorthoffset();
65 static void CheckCoords(real x, real y);
83 real& x, real& y, real& gamma, real& k) {
84 OSGBTM().
Forward(OriginLongitude(), lat, lon, x, y, gamma, k);
86 y += computenorthoffset();
104 real& lat, real& lon, real& gamma, real& k) {
106 y -= computenorthoffset();
107 OSGBTM().
Reverse(OriginLongitude(), x, y, lat, lon, gamma, k);
113 static void Forward(real lat, real lon, real& x, real& y) {
115 Forward(lat, lon, x, y, gamma, k);
121 static void Reverse(real x, real y, real& lat, real& lon) {
123 Reverse(x, y, lat, lon, gamma, k);
155 static void GridReference(real x, real y,
int prec, std::string& gridref);
174 static void GridReference(
const std::string& gridref,
175 real& x, real& y,
int& prec,
176 bool centerp =
true);
194 return pow(
real(10),
real(48401603 - 100000000) / 100000000)
207 {
return real(20923713 - 20853810) / 20923713; }
214 static Math::real InverseFlattening() {
return 1/Flattening(); }
225 return pow(
real(10),
real(9998268 - 10000000) / 10000000);
254 #if defined(_MSC_VER)
255 # pragma warning (pop)
258 #endif // GEOGRAPHICLIB_OSGB_HPP
static void Forward(real lat, real lon, real &x, real &y, real &gamma, real &k)
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
static Math::real Flattening()
static Math::real FalseEasting()
static Math::real OriginLatitude()
void Forward(real lon0, real lat, real lon, real &x, real &y, real &gamma, real &k) const
Transverse Mercator projection.
Header for GeographicLib::TransverseMercator class.
static Math::real CentralScale()
static Math::real FalseNorthing()
static Math::real OriginLongitude()
static Math::real MajorRadius()
Namespace for GeographicLib.
static void Reverse(real x, real y, real &lat, real &lon, real &gamma, real &k)
void Reverse(real lon0, real x, real y, real &lat, real &lon, real &gamma, real &k) const
Ordnance Survey grid system for Great Britain.
Header for GeographicLib::Constants class.
static void Forward(real lat, real lon, real &x, real &y)
static void Reverse(real x, real y, real &lat, real &lon)