Rok4Server  0.25.4
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
Level Class Reference
Collaboration diagram for Level:
Collaboration graph

Public Member Functions

TileMatrix getTm ()
Rok4Format::eformat_data getFormat ()
int getChannels ()
uint32_t getMaxTileRow ()
uint32_t getMinTileRow ()
uint32_t getMaxTileCol ()
uint32_t getMinTileCol ()
double getRes ()
std::string getId ()
uint32_t getTilesPerWidth ()
uint32_t getTilesPerHeight ()
std::string getFilePath (int tilex, int tiley)
std::string getNoDataFilePath ()
DataSource * getEncodedNoDataTile ()
DataSource * getDecodedNoDataTile ()
Image * getnodatabbox (ServicesConf &servicesConf, BoundingBox< double > bbox, int width, int height, Interpolation::KernelType interpolation, int &error)
Image * getbbox (ServicesConf &servicesConf, BoundingBox< double > bbox, int width, int height, Interpolation::KernelType interpolation, int &error)
Image * getbbox (ServicesConf &servicesConf, BoundingBox< double > bbox, int width, int height, CRS src_crs, CRS dst_crs, Interpolation::KernelType interpolation, int &error)
DataSource * getTile (int x, int y, DataSource *errorDataSource=NULL)
Image * getTile (int x, int y, int left, int top, int right, int bottom)
Image * getNoDataTile (BoundingBox< double > bbox)
int * getNoDataValue (int *nodatavalue)
void setNoData (const std::string &file)
void setNoDataSource (DataSource *source)
 Level (TileMatrix tm, int channels, std::string baseDir, int tilesPerWidth, int tilesPerHeight, uint32_t maxTileRow, uint32_t minTileRow, uint32_t maxTileCol, uint32_t minTileCol, int pathDepth, Rok4Format::eformat_data format, std::string noDataFile)

Protected Member Functions

Image * getwindow (ServicesConf &servicesConf, BoundingBox< int64_t > src_bbox, int &error)

Private Member Functions

DataSource * getEncodedTile (int x, int y)
DataSource * getDecodedTile (int x, int y)

Private Attributes

std::string baseDir
int pathDepth
TileMatrix tm
const Rok4Format::eformat_data format
const int channels
const uint32_t maxTileRow
const uint32_t minTileRow
const uint32_t maxTileCol
const uint32_t minTileCol
uint32_t tilesPerWidth
uint32_t tilesPerHeight
std::string noDataFile
DataSource * noDataSource
DataSource * noDataTileSource
DataSource * noDataSourceProxy

Constructor & Destructor Documentation

Level::Level ( TileMatrix  tm,
int  channels,
std::string  baseDir,
int  tilesPerWidth,
int  tilesPerHeight,
uint32_t  maxTileRow,
uint32_t  minTileRow,
uint32_t  maxTileCol,
uint32_t  minTileCol,
int  pathDepth,
Rok4Format::eformat_data  format,
std::string  noDataFile 
)

D

Member Function Documentation

DataSource * Level::getTile ( int  x,
int  y,
DataSource *  errorDataSource = NULL 
)

Renvoie la tuile x, y numéroté depuis l'origine. Le coin haut gauche de la tuile (0,0) est (Xorigin, Yorigin) Les indices de tuiles augmentes vers la droite et vers le bas. Des indices de tuiles négatifs sont interdits

La tuile contenant la coordonnées (X, Y) dans le srs d'origine a pour indice : x = floor((X - X0) / (tile_width * resolution_x)) y = floor((Y - Y0) / (tile_height * resolution_y))

Here is the call graph for this function:

Here is the caller graph for this function:

Image * Level::getwindow ( ServicesConf servicesConf,
BoundingBox< int64_t >  src_bbox,
int &  error 
)
protected

Renvoie une image de taille width, height

le coin haut gauche de cette image est le pixel offsetx, offsety de la tuile tilex, tilex. Toutes les coordonnées sont entière depuis le coin haut gauche.

Here is the call graph for this function:


The documentation for this class was generated from the following files: