libosmscout
0.1
|
A single ground tile cell. More...
#include <GroundTile.h>
Classes | |
struct | Coord |
A Coordinate for a point in a ground tile path. More... | |
Public Types | |
enum | Type { unknown = 0, land = 1, water = 2, coast = 3 } |
Public Member Functions | |
GroundTile ()=default | |
GroundTile (Type type) | |
Public Attributes | |
double | cellHeight {0.0} |
Height of cell. More... | |
double | cellWidth {0.0} |
Width of cell. More... | |
std::vector< Coord > | coords |
Optional coordinates for coastline. More... | |
Type | type |
The type of the cell. More... | |
size_t | xAbs {0} |
Absolute x coordinate of the cell in relation to level and cell size. More... | |
size_t | xRel {0} |
X coordinate of cell in relation to cell index of this level. More... | |
size_t | yAbs {0} |
Absolute y coordinate of the cell in relation to level and cell size. More... | |
size_t | yRel {0} |
Y coordinate of cell in relation to cell index of this level. More... | |
A single ground tile cell.
The ground tile defines an area of the given type.
If the coords array is empty, the area is the complete cell. If the coords array is not empty it is defining a polygon which is of the given type.
A cell can either have no GroundTile, one GroundTile that fills the complete cell area or multiple GroundTiles that only fill parts of the cell area.
The polygon can consist (partly) of a coastline (Coord.coast=true) or of cell boundary lines (Coord.cell=false).
|
default |
|
inlineexplicit |
double osmscout::GroundTile::cellHeight {0.0} |
Height of cell.
double osmscout::GroundTile::cellWidth {0.0} |
Width of cell.
std::vector<Coord> osmscout::GroundTile::coords |
Optional coordinates for coastline.
Type osmscout::GroundTile::type |
The type of the cell.
Referenced by osmscout::DumpGroundTile().
size_t osmscout::GroundTile::xAbs {0} |
Absolute x coordinate of the cell in relation to level and cell size.
size_t osmscout::GroundTile::xRel {0} |
X coordinate of cell in relation to cell index of this level.
Referenced by osmscout::DumpGroundTile().
size_t osmscout::GroundTile::yAbs {0} |
Absolute y coordinate of the cell in relation to level and cell size.
size_t osmscout::GroundTile::yRel {0} |
Y coordinate of cell in relation to cell index of this level.
Referenced by osmscout::DumpGroundTile().