Marble::GeoSceneEquirectTileProjection
#include <GeoSceneEquirectTileProjection.h>

Public Member Functions | |
GeoSceneEquirectTileProjection () | |
GeoDataLatLonBox | geoCoordinates (const TileId &tileId) const |
GeoDataLatLonBox | geoCoordinates (int zoomLevel, int x, int y) const override |
virtual GeoDataLatLonBox | geoCoordinates (int zoomLevel, int x, int y) const=0 |
QRect | tileIndexes (const GeoDataLatLonBox &latLonBox, int zoomLevel) const override |
GeoSceneAbstractTileProjection::Type | type () const override |
![]() | |
GeoSceneAbstractTileProjection () | |
GeoDataLatLonBox | geoCoordinates (const TileId &tileId) const |
int | levelZeroColumns () const |
int | levelZeroRows () const |
void | setLevelZeroColumns (int levelZeroColumns) |
void | setLevelZeroRows (int levelZeroRows) |
Additional Inherited Members | |
![]() | |
enum | Type { Equirectangular, Mercator } |
Detailed Description
Converts the x and y indices of tiles to and from geo coordinates.
For tiles of maps in Equirectangular projection.
Tiles do have the same width and the same height per zoomlevel. The number of tiles per dimension is twice that of the previous lower zoomlevel. The indexing is done in x dimension eastwards, with the first tiles beginning at -180 degree and an x value of 0 and the last tiles ending at +180 degree, in y dimension southwards with the first tiles beginning at +90 degree and a y value of 0 and the last tiles ending at -90 degree.
Definition at line 26 of file GeoSceneEquirectTileProjection.h.
Constructor & Destructor Documentation
◆ GeoSceneEquirectTileProjection()
Marble::GeoSceneEquirectTileProjection::GeoSceneEquirectTileProjection | ( | ) |
Construct a new GeoSceneEquirectTileProjection.
Definition at line 14 of file GeoSceneEquirectTileProjection.cpp.
Member Function Documentation
◆ geoCoordinates() [1/3]
GeoDataLatLonBox Marble::GeoSceneAbstractTileProjection::geoCoordinates |
Get the boundary geo coordinates corresponding to a tile.
If tildId
has values out-of-bounds, the behaviour is undefined.
- Parameters
-
tileId the id of the tile
- Returns
- geographic bounding box covered by the given tile
Definition at line 60 of file GeoSceneAbstractTileProjection.cpp.
◆ geoCoordinates() [2/3]
|
overridevirtual |
Implements Marble::GeoSceneAbstractTileProjection.
Definition at line 116 of file GeoSceneEquirectTileProjection.cpp.
◆ geoCoordinates() [3/3]
virtual GeoDataLatLonBox Marble::GeoSceneAbstractTileProjection::geoCoordinates |
Get the boundary geo coordinates corresponding to a tile.
If x
, y
or zoomLevel
have values out-of-bounds, the behaviour is undefined.
- Parameters
-
zoomLevel the zoomlevel of the tile x the x index of the tile y the y index of the tile
- Returns
- geographic bounding box covered by the given tile
◆ tileIndexes()
|
overridevirtual |
Implements Marble::GeoSceneAbstractTileProjection.
Definition at line 101 of file GeoSceneEquirectTileProjection.cpp.
◆ type()
|
overridevirtual |
Implements Marble::GeoSceneAbstractTileProjection.
Definition at line 23 of file GeoSceneEquirectTileProjection.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:51:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.