olp-cpp-sdk 1.24.0
Loading...
Searching...
No Matches
IProjection.h
1/*
2 * Copyright (C) 2019-2020 HERE Europe B.V.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * SPDX-License-Identifier: Apache-2.0
17 * License-Filename: LICENSE
18 */
19
20#pragma once
21
22#include <olp/core/geo/Types.h>
23
24namespace olp {
25namespace geo {
26
31class CORE_API IProjection {
32 public:
33 virtual ~IProjection() = default;
34
40 virtual GeoRectangle GetGeoBounds() const = 0;
41
50 virtual WorldAlignedBox WorldExtent(double minimum_altitude,
51 double maximum_altitude) const = 0;
52
62 virtual bool Project(const GeoCoordinates3d& geo_point,
63 WorldCoordinates& world_point) const = 0;
64
74 virtual bool Unproject(const WorldCoordinates& world_point,
75 GeoCoordinates3d& geo_point) const = 0;
76};
77
78} // namespace geo
79} // namespace olp
Geodetic coordinates with longitude, latitude, and altitude.
Definition GeoCoordinates3d.h:31
A rectangular area in the WGS84 Coordinate System.
Definition GeoRectangle.h:33
The identity projection used to work with geographic and world coordinates.
Definition IProjection.h:31
virtual bool Project(const GeoCoordinates3d &geo_point, WorldCoordinates &world_point) const =0
Checks whether the geographic coordinates (latitude, longitude, altitude) of a point correspond to it...
virtual WorldAlignedBox WorldExtent(double minimum_altitude, double maximum_altitude) const =0
Creates the extent of world coordinates.
virtual GeoRectangle GetGeoBounds() const =0
Gets the geodetic bounds represented by the projection.
virtual bool Unproject(const WorldCoordinates &world_point, GeoCoordinates3d &geo_point) const =0
Checks whether the world coordinates (x,y,z) of a point correspond to its geographic coordinates (lat...
The aligned bounding-box implementation.
Definition AlignedBox.h:98
Rules all the other namespaces.
Definition AppleSignInProperties.h:24
Represents 3D vectors and points.
Definition Vector.h:86