Apollo  6.0
Open source self driving car software
coordinate_convert_tool.h
Go to the documentation of this file.
1 /* Copyright 2017 The Apollo Authors. All Rights Reserved.
2 
3 Licensed under the Apache License, Version 2.0 (the "License");
4 you may not use this file except in compliance with the License.
5 You may obtain a copy of the License at
6 
7  http://www.apache.org/licenses/LICENSE-2.0
8 
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14 =========================================================================*/
15 #pragma once
16 
17 #include <string>
18 
19 #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H
20 #include <proj_api.h>
21 
23 
24 namespace apollo {
25 namespace hdmap {
26 namespace adapter {
27 
29  public:
32 
33  public:
35 
36  public:
37  Status SetConvertParam(const std::string& source_param,
38  const std::string& dst_param);
39  Status CoordiateConvert(const double longitude, const double latitude,
40  const double height_ellipsoid, double* utm_x,
41  double* utm_y, double* utm_z);
42 
43  private:
44  std::string source_convert_param_;
45  std::string dst_convert_param_;
46 
47  projPJ pj_from_;
48  projPJ pj_to_;
49 };
50 
51 } // namespace adapter
52 } // namespace hdmap
53 } // namespace apollo
static CoordinateConvertTool * GetInstance()
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Status CoordiateConvert(const double longitude, const double latitude, const double height_ellipsoid, double *utm_x, double *utm_y, double *utm_z)
Definition: coordinate_convert_tool.h:28
Status SetConvertParam(const std::string &source_param, const std::string &dst_param)
A general class to denote the return status of an API call. It can either be an OK status for success...
Definition: status.h:43