Apollo 10.0
自动驾驶开放平台
coordinate_convert_tool.h
浏览该文件的文档.
1/* Copyright 2017 The Apollo Authors. All Rights Reserved.
2
3Licensed under the Apache License, Version 2.0 (the "License");
4you may not use this file except in compliance with the License.
5You may obtain a copy of the License at
6
7 http://www.apache.org/licenses/LICENSE-2.0
8
9Unless required by applicable law or agreed to in writing, software
10distributed under the License is distributed on an "AS IS" BASIS,
11WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12See the License for the specific language governing permissions and
13limitations 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
24namespace apollo {
25namespace hdmap {
26namespace 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
A general class to denote the return status of an API call.
Definition status.h:43
Status SetConvertParam(const std::string &source_param, const std::string &dst_param)
Status CoordiateConvert(const double longitude, const double latitude, const double height_ellipsoid, double *utm_x, double *utm_y, double *utm_z)
class register implement
Definition arena_queue.h:37