libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::GroundTile Struct Referencefinal

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< Coordcoords
 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...
 

Detailed Description

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).

Member Enumeration Documentation

◆ Type

Enumerator
unknown 
land 
water 
coast 

Constructor & Destructor Documentation

◆ GroundTile() [1/2]

osmscout::GroundTile::GroundTile ( )
default

◆ GroundTile() [2/2]

osmscout::GroundTile::GroundTile ( Type  type)
inlineexplicit

Member Data Documentation

◆ cellHeight

double osmscout::GroundTile::cellHeight {0.0}

Height of cell.

◆ cellWidth

double osmscout::GroundTile::cellWidth {0.0}

Width of cell.

◆ coords

std::vector<Coord> osmscout::GroundTile::coords

Optional coordinates for coastline.

◆ type

Type osmscout::GroundTile::type

The type of the cell.

Referenced by osmscout::DumpGroundTile().

◆ xAbs

size_t osmscout::GroundTile::xAbs {0}

Absolute x coordinate of the cell in relation to level and cell size.

◆ xRel

size_t osmscout::GroundTile::xRel {0}

X coordinate of cell in relation to cell index of this level.

Referenced by osmscout::DumpGroundTile().

◆ yAbs

size_t osmscout::GroundTile::yAbs {0}

Absolute y coordinate of the cell in relation to level and cell size.

◆ yRel

size_t osmscout::GroundTile::yRel {0}

Y coordinate of cell in relation to cell index of this level.

Referenced by osmscout::DumpGroundTile().


The documentation for this struct was generated from the following file: