LocalCoordinateSystem.cc
Go to the documentation of this file.
1 
9 #include <fwk/LocalCoordinateSystem.h>
10 #include <det/Detector.h>
11 
12 #include <utl/AugerCoordinateSystem.h>
13 #include <utl/CoordinateSystem.h>
14 #include <utl/ReferenceEllipsoid.h>
15 #include <utl/Point.h>
16 #include <utl/UTMPoint.h>
17 
18 using namespace fwk;
19 using namespace utl;
20 
21 
22 template<typename Policy>
23 typename Policy::type
25 {
26  const CoordinateSystemPtr& siteCS =
27  det::Detector::GetInstance().GetSiteCoordinateSystem();
28  const ReferenceEllipsoid& wgs84 = ReferenceEllipsoid::GetWGS84();
29  return
31  theOrigin, wgs84, siteCS
32  );
33 }
34 
35 
36 template<typename Policy>
37 typename Policy::type
39 {
40  return Create(theOrigin.GetPoint());
41 }
42 
43 
44 namespace fwk {
47 }
Point object.
Definition: Point.h:32
Class to hold and convert a point in geodetic coordinates.
Definition: UTMPoint.h:40
boost::shared_ptr< const CoordinateTransformer > CoordinateSystemPtr
Shared pointer for coordinate systems.
Reference ellipsoids for UTM transformations.
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.
Definition: UTMPoint.cc:45

, generated on Tue Sep 26 2023.