10#if !defined(GEOGRAPHICLIB_OSGB_HPP)
11#define GEOGRAPHICLIB_OSGB_HPP 1
18# pragma warning (push)
19# pragma warning (disable: 4251)
47 static const char*
const letters_;
48 static const char*
const digits_;
50#if GEOGRAPHICLIB_PRECISION == 4
63 tileoffx_ = 2 * tilegrid_,
64 tileoffy_ = 1 * tilegrid_,
65 minx_ = - tileoffx_ * tile_,
66 miny_ = - tileoffy_ * tile_,
67 maxx_ = (tilegrid_*tilegrid_ - tileoffx_) * tile_,
68 maxy_ = (tilegrid_*tilegrid_ - tileoffy_) * tile_,
71#if GEOGRAPHICLIB_PRECISION == 4
76 static real computenorthoffset();
77 static void CheckCoords(real x, real y);
94 real& x, real& y, real& gamma, real& k) {
95 OSGBTM().
Forward(OriginLongitude(), lat, lon, x, y, gamma, k);
97 y += computenorthoffset();
115 real& lat, real& lon, real& gamma, real& k) {
117 y -= computenorthoffset();
118 OSGBTM().
Reverse(OriginLongitude(), x, y, lat, lon, gamma, k);
124 static void Forward(real lat, real lon, real& x, real& y) {
126 Forward(lat, lon, x, y, gamma, k);
132 static void Reverse(real x, real y, real& lat, real& lon) {
134 Reverse(x, y, lat, lon, gamma, k);
166 static void GridReference(
real x,
real y,
int prec, std::string& gridref);
185 static void GridReference(
const std::string& gridref,
187 bool centerp =
true);
205 return pow(
real(10),
real(48401603 - 100000000) / 100000000)
218 {
return real(20923713 - 20853810) /
real(20923713); }
228 return pow(
real(10),
real(9998268 - 10000000) / 10000000);
258# pragma warning (pop)
Header for GeographicLib::Constants class.
#define GEOGRAPHICLIB_EXPORT
GeographicLib::Math::real real
Header for GeographicLib::TransverseMercator class.
Ordnance Survey grid system for Great Britain.
static void Forward(real lat, real lon, real &x, real &y)
static Math::real OriginLongitude()
static Math::real CentralScale()
static Math::real EquatorialRadius()
static Math::real FalseNorthing()
static void Forward(real lat, real lon, real &x, real &y, real &gamma, real &k)
static Math::real Flattening()
static Math::real FalseEasting()
static void Reverse(real x, real y, real &lat, real &lon)
static Math::real OriginLatitude()
static void Reverse(real x, real y, real &lat, real &lon, real &gamma, real &k)
Transverse Mercator projection.
void Reverse(real lon0, real x, real y, real &lat, real &lon, real &gamma, real &k) const
void Forward(real lon0, real lat, real lon, real &x, real &y, real &gamma, real &k) const
Namespace for GeographicLib.