Rok4Server  0.25.4
 All Classes Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Private Attributes | List of all members
TileMatrixSet Class Reference

Handle pyramid of matrix of tiles. More...

#include <TileMatrixSet.h>

Collaboration diagram for TileMatrixSet:
Collaboration graph

Public Member Functions

 TileMatrixSet (std::string id, std::string title, std::string abstract, std::vector< Keyword > &keyWords, CRS &crs, std::map< std::string, TileMatrix > &tmList)
 Create a TileMatrixSet.
 TileMatrixSet (const TileMatrixSet &t)
 Copy Constructor.
bool operator== (const TileMatrixSet &other) const
 Test whether 2 TileMatrixSet are equals.
bool operator!= (const TileMatrixSet &other) const
 Test whether 2 TileMatrixSet are different.
std::map< std::string,
TileMatrix > * 
getTmList ()
 Return the list of TileMatrix.
std::string getId ()
 Return the identifier.
std::string getTitle ()
 Return the title.
std::string getAbstract ()
 Return the abstract.
std::vector< Keyword > * getKeyWords ()
 Return the list of keywords.
CRS getCrs () const
 Return the linked coordinates system.
int best_scale (double resolution_x, double resolution_y)
 
 ~TileMatrixSet ()
 Default destructor.

Private Attributes

std::string id
 Identifier.
std::string title
 Title.
std::string abstract
 Abstract.
std::vector< KeywordkeyWords
 List of keywords.
CRS crs
 Linked coordinates system.
std::map< std::string, TileMatrixtmList
 List of TileMatrix.

Detailed Description

Handle pyramid of matrix of tiles.

Author
Institut national de l'information géographique et forestière

A TileMatrixSet represent a pyramid of TileMatrix in the same coordinate system.

XML definition of a TileMatrix :

<tileMatrixSet>
<crs>EPSG:3857</crs>
<tileMatrix>
<id>0</id>
<resolution>156543.0339280410</resolution>
<topLeftCornerX>-20037508.3427892480</topLeftCornerX>
<topLeftCornerY>20037508.3427892480</topLeftCornerY>
<tileWidth>256</tileWidth>
<tileHeight>256</tileHeight>
<matrixWidth>1</matrixWidth>
<matrixHeight>1</matrixHeight>
</tileMatrix>
<tileMatrix>
<id>1</id>
<resolution>78271.51696402048</resolution>
<topLeftCornerX>-20037508.3427892480</topLeftCornerX>
<topLeftCornerY>20037508.3427892480</topLeftCornerY>
<tileWidth>256</tileWidth>
<tileHeight>256</tileHeight>
<matrixWidth>2</matrixWidth>
<matrixHeight>2</matrixHeight>
</tileMatrix>
<tileMatrix>
<id>2</id>
<resolution>39135.75848201023</resolution>
<topLeftCornerX>-20037508.3427892480</topLeftCornerX>
<topLeftCornerY>20037508.3427892480</topLeftCornerY>
<tileWidth>256</tileWidth>
<tileHeight>256</tileHeight>
<matrixWidth>4</matrixWidth>
<matrixHeight>4</matrixHeight>
</tileMatrix>
</tileMatrixSet>

Constructor & Destructor Documentation

TileMatrixSet::TileMatrixSet ( std::string  id,
std::string  title,
std::string  abstract,
std::vector< Keyword > &  keyWords,
CRS &  crs,
std::map< std::string, TileMatrix > &  tmList 
)
inline

Create a TileMatrixSet.

Parameters
[in]ididentifier
[in]titletitle
[in]abstractabstract
[in]keyWordslist of keywords
[in]crslinked coordinates systems
[in]tmListlist of TileMatrix
TileMatrixSet::TileMatrixSet ( const TileMatrixSet t)
inline

Copy Constructor.

Create a TileMatrixSet from another

Parameters
[in]tTileMatrixSet to copy

Member Function Documentation

std::string TileMatrixSet::getAbstract ( )
inline

Return the abstract.

Returns
abstract

Here is the caller graph for this function:

CRS TileMatrixSet::getCrs ( ) const
inline

Return the linked coordinates system.

Returns
crs

Here is the caller graph for this function:

std::string TileMatrixSet::getId ( )

Return the identifier.

Returns
identifier

Here is the caller graph for this function:

std::vector<Keyword>* TileMatrixSet::getKeyWords ( )
inline

Return the list of keywords.

Returns
keywords

Here is the caller graph for this function:

std::string TileMatrixSet::getTitle ( )
inline

Return the title.

Returns
title

Here is the caller graph for this function:

std::map< std::string, TileMatrix > * TileMatrixSet::getTmList ( )

Return the list of TileMatrix.

Returns
liste of TileMatrix

Here is the caller graph for this function:

bool TileMatrixSet::operator!= ( const TileMatrixSet other) const

Test whether 2 TileMatrixSet are different.

Rapid comparison of two TileMatrixSet, Keywords and TileMatrix are not verified

Returns
true if one of their attribute is different or lists have different size
bool TileMatrixSet::operator== ( const TileMatrixSet other) const

Test whether 2 TileMatrixSet are equals.

Rapid comparison of two TileMatrixSet, Keywords and TileMatrix are not verified

Returns
true if attributes are equal and lists have the same size

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