Program Listing for File UTM.h

Return to documentation for file (include/lanelet2_projection/UTM.h)

#pragma once
#include <lanelet2_io/Exceptions.h>
#include <lanelet2_io/Projection.h>

namespace lanelet {
namespace projection {
class UtmProjector : public Projector {
 public:
  explicit UtmProjector(Origin origin, bool useOffset = true, bool throwInPaddingArea = false);

  BasicPoint3d forward(const GPSPoint& gps) const override;

  GPSPoint reverse(const BasicPoint3d& utm) const override;

 private:
  int zone_{};
  bool isInNorthernHemisphere_{true}, useOffset_{}, throwInPaddingArea_{};
  double xOffset_{}, yOffset_{};
};

}  // namespace projection
}  // namespace lanelet