mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-07 18:53:02 +02:00
Convert remaining reserved variables (underscore + capital leter)
This commit is contained in:
parent
2efc7a3d2c
commit
7ed154b662
@ -19,13 +19,13 @@ public:
|
||||
const Polygon &path() const {return _path;}
|
||||
uint type() const {return _type;}
|
||||
const Attributes &attributes() const {return _attr;}
|
||||
uint HUNI() const {return _HUNI;}
|
||||
uint huni() const {return _huni;}
|
||||
|
||||
private:
|
||||
uint _type;
|
||||
Polygon _path;
|
||||
Attributes _attr;
|
||||
uint _HUNI;
|
||||
uint _huni;
|
||||
};
|
||||
|
||||
class Line {
|
||||
|
@ -215,7 +215,7 @@ static bool polygonPointCb(const MapData::Poly *polygon, void *context)
|
||||
|| type == SUBTYPE(RESARE, 25) || type == SUBTYPE(I_RESARE, 25)
|
||||
|| type == SUBTYPE(RESARE, 26) || type == SUBTYPE(I_RESARE, 26))
|
||||
points->append(MapData::Point(baseType, polygon->bounds().center(),
|
||||
polygon->attributes(), polygon->HUNI(), true));
|
||||
polygon->attributes(), polygon->huni(), true));
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -466,7 +466,7 @@ MapData::Point::Point(uint type, const Coordinates &c, const Attributes &attr,
|
||||
}
|
||||
|
||||
MapData::Poly::Poly(uint type, const Polygon &path, const Attributes &attr,
|
||||
uint HUNI) : _path(path), _attr(attr), _HUNI(HUNI)
|
||||
uint HUNI) : _path(path), _attr(attr), _huni(HUNI)
|
||||
{
|
||||
uint subtype = 0;
|
||||
|
||||
|
@ -84,7 +84,7 @@ Polyconic::Polyconic(const Ellipsoid &ellipsoid, double latitudeOrigin,
|
||||
sin2lat = POLY_COEFF_TIMES_SIN(_c1, 2.0, _latitudeOrigin);
|
||||
sin4lat = POLY_COEFF_TIMES_SIN(_c2, 4.0, _latitudeOrigin);
|
||||
sin6lat = POLY_COEFF_TIMES_SIN(_c3, 6.0, _latitudeOrigin);
|
||||
_M0 = POLY_M(lat, sin2lat, sin4lat, sin6lat);
|
||||
_m0 = POLY_M(lat, sin2lat, sin4lat, sin6lat);
|
||||
}
|
||||
|
||||
PointD Polyconic::ll2xy(const Coordinates &c) const
|
||||
@ -107,7 +107,7 @@ PointD Polyconic::ll2xy(const Coordinates &c) const
|
||||
|
||||
if (Latitude == 0.0) {
|
||||
return PointD(_a * dlam + _falseEasting,
|
||||
-_M0 + _falseNorthing);
|
||||
-_m0 + _falseNorthing);
|
||||
} else {
|
||||
NN = _a / sqrt(1.0 - _es2 * (slat * slat));
|
||||
NN_OVER_tlat = NN / tan(Latitude);
|
||||
@ -118,7 +118,7 @@ PointD Polyconic::ll2xy(const Coordinates &c) const
|
||||
MM = POLY_M(lat, sin2lat, sin4lat, sin6lat);
|
||||
EE = dlam * slat;
|
||||
return PointD(NN_OVER_tlat * sin(EE) + _falseEasting,
|
||||
MM - _M0 + NN_OVER_tlat * (1.0 - cos(EE)) + _falseNorthing);
|
||||
MM - _m0 + NN_OVER_tlat * (1.0 - cos(EE)) + _falseNorthing);
|
||||
}
|
||||
}
|
||||
|
||||
@ -146,11 +146,11 @@ Coordinates Polyconic::xy2ll(const PointD &p) const
|
||||
dx = p.x() - _falseEasting;
|
||||
dx_OVER_Poly_a = dx / _a;
|
||||
|
||||
if (FLOAT_EQ(dy,-_M0,1)) {
|
||||
if (FLOAT_EQ(dy,-_m0,1)) {
|
||||
Latitude = 0.0;
|
||||
Longitude = dx_OVER_Poly_a + _longitudeOrigin;
|
||||
} else {
|
||||
AA = (_M0 + dy) / _a;
|
||||
AA = (_m0 + dy) / _a;
|
||||
BB = dx_OVER_Poly_a * dx_OVER_Poly_a + (AA * AA);
|
||||
PHIn = AA;
|
||||
|
||||
|
@ -23,7 +23,7 @@ private:
|
||||
double _es2;
|
||||
double _es4;
|
||||
double _es6;
|
||||
double _M0;
|
||||
double _m0;
|
||||
double _c0;
|
||||
double _c1;
|
||||
double _c2;
|
||||
|
Loading…
x
Reference in New Issue
Block a user