11 #include <fwk/LocalCoordinateSystem.h>
12 #include <utl/AugerCoordinateSystem.h>
13 #include <utl/CoordinateSystem.h>
14 #include <utl/Point.h>
15 #include <utl/UTMPoint.h>
16 #include <utl/AugerUnits.h>
17 #include <fwk/CentralConfig.h>
18 #include <fwk/CoordinateSystemRegistry.h>
20 #include <tst/Verify.h>
21 #include <cppunit/extensions/HelperMacros.h>
31 CPPUNIT_TEST(testCreate);
32 CPPUNIT_TEST_SUITE_END();
50 const UTMPoint malargueOriginUTM(6060000*
m, 440000*
m, 0*
m, 19,
'H', e);
53 const UTMPoint centralCampusUTM(6075445*
m, 446954*
m, 1444*
m, 19,
'H', e);
54 const Point centralCampus(centralCampusUTM.GetPoint());
57 AugerBaseCoordinateSystem::Create(malargueOriginUTM, ecef);
59 AugerCoordinateSystem::Create(centralCampusUTM, siteCS);
64 CPPUNIT_ASSERT(Verify<CloseTo>(campusCS->GetTransformation().Distance(localCS->GetTransformation()), 0.));
Class to hold and convert a point in geodetic coordinates.
void Init()
Initialise the registry.
CPPUNIT_TEST_SUITE_REGISTRATION(testAiresShowerFile)
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
Reference ellipsoids for UTM transformations.
const CoordinateSystemPtr GetECEF() const
Get the ECEF.
static CentralConfig * GetInstance()
Use this the first time you get an instance of central configuration.
utl::CoordinateSystemPtr Get(const std::string &id)
Get a well-known Coordinate System.
static Policy::type Create(const utl::Point &theOrigin)
Create the standard local coordinate system for a Point.
Point GetPoint(const CoordinateSystemPtr &theCS=CoordinateSystemPtr()) const
Get a cartesian point from an UTMPoint.