OSSIM - Open Source Software Image Map
Version 1.9.0 (20180803)
|
#include <ossimGpkgTileEntry.h>
Public Member Functions | |
ossimGpkgTileEntry () | |
default constructor More... | |
ossimGpkgTileEntry (const ossimGpkgTileEntry &obj) | |
const ossimGpkgTileEntry & | operator= (const ossimGpkgTileEntry &obj) |
~ossimGpkgTileEntry () | |
destructor More... | |
void | setTileMatrixSet (const ossimGpkgTileMatrixSetRecord &set) |
Sets the tile matrix set. More... | |
const ossimGpkgTileMatrixSetRecord & | getTileMatrixSet () const |
void | setSrs (const ossimGpkgSpatialRefSysRecord &srs) |
Sets the spatial ref sys. More... | |
const ossimGpkgSpatialRefSysRecord & | getSrs () const |
Spatial ref sys. More... | |
void | addTileMatrix (const ossimGpkgTileMatrixRecord &level) |
Adds a tile matrix level to array. More... | |
const std::vector< ossimGpkgTileMatrixRecord > & | getTileMatrix () const |
void | addTileMatrixExtent (const ossimGpkgNsgTileMatrixExtentRecord &record) |
Adds a tile matrix extent level to array. More... | |
const std::vector< ossimGpkgNsgTileMatrixExtentRecord > & | getTileMatrixExtent () const |
void | sortTileMatrix () |
Sorts the m_tileMatrix by zoom levels with the highest zoom level being at the lowest array index. More... | |
void | sortTileMatrixExtents () |
Sorts the m_tileMatrixExtents by zoom levels with the highest zoom level being at the lowest array index. More... | |
void | saveState (ossimKeywordlist &kwl, const std::string &prefix) const |
Saves the state of object. More... | |
ossim_uint32 | getNumberOfLines (ossim_uint32 resLevel) const |
ossim_uint32 | getNumberOfSamples (ossim_uint32 resLevel) const |
void | getSubImageOffset (ossim_uint32 resLevel, ossimIpt &offset) const |
void | getTiePoint (ossimDpt &offset) const |
Gets the tie point from the first tile matrix extents if initialized else from the tile matrix extents. More... | |
void | getGsd (ossim_uint32 index, ossimDpt &gsd) const |
Gets the gsd from tile matrix. More... | |
void | getZoomLevels (std::vector< ossim_int32 > &zoomLevels) const |
Gets zoom levels of all tile matrixes. More... | |
void | getZoomLevelMatrixSizes (std::vector< ossimIpt > &zoomLevelMatrixSizes) const |
Gets zoom level matrix of all tile matrixes. More... | |
ossimRefPtr< ossimMapProjection > | getNewMapProjection () const |
Gets the map projection to include setting the tie and scale. More... | |
std::ostream & | print (std::ostream &out) const |
Print method. More... | |
std::ostream & | printValidate (std::ostream &out) const |
Validate method. More... | |
Private Attributes | |
ossimGpkgSpatialRefSysRecord | m_srs |
ossimGpkgTileMatrixSetRecord | m_tileMatrixSet |
std::vector< ossimGpkgTileMatrixRecord > | m_tileMatrix |
std::vector< ossimGpkgNsgTileMatrixExtentRecord > | m_tileMatrixExtents |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ossimGpkgTileEntry &obj) |
Convenience operator << function. More... | |
Definition at line 34 of file ossimGpkgTileEntry.h.
ossimGpkgTileEntry::ossimGpkgTileEntry | ( | ) |
default constructor
Definition at line 48 of file ossimGpkgTileEntry.cpp.
ossimGpkgTileEntry::ossimGpkgTileEntry | ( | const ossimGpkgTileEntry & | obj | ) |
Definition at line 57 of file ossimGpkgTileEntry.cpp.
ossimGpkgTileEntry::~ossimGpkgTileEntry | ( | ) |
void ossimGpkgTileEntry::addTileMatrix | ( | const ossimGpkgTileMatrixRecord & | level | ) |
Adds a tile matrix level to array.
level | Level to add. |
Definition at line 102 of file ossimGpkgTileEntry.cpp.
References m_tileMatrix.
Referenced by ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
void ossimGpkgTileEntry::addTileMatrixExtent | ( | const ossimGpkgNsgTileMatrixExtentRecord & | record | ) |
Adds a tile matrix extent level to array.
level | Level to add. |
Definition at line 112 of file ossimGpkgTileEntry.cpp.
References m_tileMatrixExtents.
Referenced by ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
void ossimGpkgTileEntry::getGsd | ( | ossim_uint32 | index, |
ossimDpt & | gsd | ||
) | const |
Gets the gsd from tile matrix.
index | to tile matrix array. |
gsd | Initialized by this. Will be nan if matrix is empty. |
Definition at line 303 of file ossimGpkgTileEntry.cpp.
References m_tileMatrix, ossimDpt::makeNan(), ossimDpt::x, and ossimDpt::y.
Referenced by getNewMapProjection().
ossimRefPtr< ossimMapProjection > ossimGpkgTileEntry::getNewMapProjection | ( | ) | const |
Gets the map projection to include setting the tie and scale.
Definition at line 339 of file ossimGpkgTileEntry.cpp.
References ossim::acosd(), ossimEpsgProjectionFactory::createProjection(), ossimRefPtr< T >::get(), getGsd(), getTiePoint(), ossimEpsgProjectionFactory::instance(), ossimMapProjection::isGeographic(), ossim::isnan(), ossimDpt::lat, ossimGpt::lat, ossimDpt::lon, ossimGpt::lon, ossimGpkgSpatialRefSysRecord::m_organization, ossimGpkgSpatialRefSysRecord::m_organization_coordsys_id, m_srs, m_tileMatrix, ossimMapProjection::setDecimalDegreesPerPixel(), ossimMapProjection::setMetersPerPixel(), ossimMapProjection::setUlTiePoints(), ossimString::string(), ossimString::toString(), ossimString::upcase(), ossimRefPtr< T >::valid(), ossimDpt::x, and ossimDpt::y.
ossim_uint32 ossimGpkgTileEntry::getNumberOfLines | ( | ossim_uint32 | resLevel | ) | const |
Definition at line 214 of file ossimGpkgTileEntry.cpp.
References ossimGpkgTileMatrixSetRecord::m_max_y, ossimGpkgTileMatrixSetRecord::m_min_y, m_tileMatrix, m_tileMatrixExtents, and m_tileMatrixSet.
ossim_uint32 ossimGpkgTileEntry::getNumberOfSamples | ( | ossim_uint32 | resLevel | ) | const |
Definition at line 242 of file ossimGpkgTileEntry.cpp.
References ossimGpkgTileMatrixSetRecord::m_max_x, ossimGpkgTileMatrixSetRecord::m_min_x, m_tileMatrix, m_tileMatrixExtents, and m_tileMatrixSet.
const ossimGpkgSpatialRefSysRecord & ossimGpkgTileEntry::getSrs | ( | ) | const |
Spatial ref sys.
Definition at line 97 of file ossimGpkgTileEntry.cpp.
References m_srs.
Referenced by ossimGpkgWriter::addLevels().
void ossimGpkgTileEntry::getSubImageOffset | ( | ossim_uint32 | resLevel, |
ossimIpt & | offset | ||
) | const |
Definition at line 270 of file ossimGpkgTileEntry.cpp.
References m_tileMatrix, m_tileMatrixExtents, ossimIpt::x, and ossimIpt::y.
void ossimGpkgTileEntry::getTiePoint | ( | ossimDpt & | offset | ) | const |
Gets the tie point from the first tile matrix extents if initialized else from the tile matrix extents.
Definition at line 287 of file ossimGpkgTileEntry.cpp.
References ossimGpkgTileMatrixSetRecord::m_max_y, ossimGpkgTileMatrixSetRecord::m_min_x, m_tileMatrix, m_tileMatrixExtents, m_tileMatrixSet, ossimDpt::x, and ossimDpt::y.
Referenced by getNewMapProjection().
const std::vector< ossimGpkgTileMatrixRecord > & ossimGpkgTileEntry::getTileMatrix | ( | ) | const |
Definition at line 107 of file ossimGpkgTileEntry.cpp.
References m_tileMatrix.
Referenced by ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
const std::vector< ossimGpkgNsgTileMatrixExtentRecord > & ossimGpkgTileEntry::getTileMatrixExtent | ( | ) | const |
Definition at line 118 of file ossimGpkgTileEntry.cpp.
References m_tileMatrixExtents.
Referenced by ossim_gpkg::getTileEntry().
const ossimGpkgTileMatrixSetRecord & ossimGpkgTileEntry::getTileMatrixSet | ( | ) | const |
Definition at line 87 of file ossimGpkgTileEntry.cpp.
References m_tileMatrixSet.
Referenced by ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
void ossimGpkgTileEntry::getZoomLevelMatrixSizes | ( | std::vector< ossimIpt > & | zoomLevelMatrixSizes | ) | const |
Gets zoom level matrix of all tile matrixes.
zoomLevelMatrixSizes | Intitialized by this. |
Definition at line 327 of file ossimGpkgTileEntry.cpp.
References m_tileMatrix.
void ossimGpkgTileEntry::getZoomLevels | ( | std::vector< ossim_int32 > & | zoomLevels | ) | const |
Gets zoom levels of all tile matrixes.
zoomLevels | Intitialized by this. |
Definition at line 316 of file ossimGpkgTileEntry.cpp.
References m_tileMatrix.
const ossimGpkgTileEntry & ossimGpkgTileEntry::operator= | ( | const ossimGpkgTileEntry & | obj | ) |
Definition at line 66 of file ossimGpkgTileEntry.cpp.
References m_srs, m_tileMatrix, m_tileMatrixExtents, and m_tileMatrixSet.
std::ostream & ossimGpkgTileEntry::print | ( | std::ostream & | out | ) | const |
Print method.
out | Stream to print to. |
Definition at line 151 of file ossimGpkgTileEntry.cpp.
References saveState().
Referenced by operator<<().
std::ostream & ossimGpkgTileEntry::printValidate | ( | std::ostream & | out | ) | const |
Validate method.
Prints data from database and computed values.
out | Stream to print to. |
Definition at line 159 of file ossimGpkgTileEntry.cpp.
References ossimGpkgTileMatrixSetRecord::getHeight(), ossimGpkgTileMatrixSetRecord::getWidth(), m_tileMatrix, m_tileMatrixSet, and ossimGpkgDatabaseRecordBase::print().
void ossimGpkgTileEntry::saveState | ( | ossimKeywordlist & | kwl, |
const std::string & | prefix | ||
) | const |
Saves the state of object.
kwl | Initialized by this. |
prefix | e.g. "image0.". Can be empty. |
Definition at line 135 of file ossimGpkgTileEntry.cpp.
References m_srs, m_tileMatrix, m_tileMatrixSet, ossimGpkgTileMatrixSetRecord::saveState(), ossimGpkgSpatialRefSysRecord::saveState(), ossimString::string(), and ossimString::toString().
Referenced by print().
void ossimGpkgTileEntry::setSrs | ( | const ossimGpkgSpatialRefSysRecord & | srs | ) |
Sets the spatial ref sys.
srs |
Definition at line 92 of file ossimGpkgTileEntry.cpp.
References m_srs.
Referenced by ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
void ossimGpkgTileEntry::setTileMatrixSet | ( | const ossimGpkgTileMatrixSetRecord & | set | ) |
Sets the tile matrix set.
set |
Definition at line 82 of file ossimGpkgTileEntry.cpp.
References m_tileMatrixSet.
Referenced by ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
void ossimGpkgTileEntry::sortTileMatrix | ( | ) |
Sorts the m_tileMatrix by zoom levels with the highest zoom level being at the lowest array index.
The highest zoom level is the best resolution in ossim. In other words if zoom level 21 is highest zoom level this is equal to r0 (reduced resolution 0.
Definition at line 123 of file ossimGpkgTileEntry.cpp.
References m_tileMatrix.
Referenced by ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
void ossimGpkgTileEntry::sortTileMatrixExtents | ( | ) |
Sorts the m_tileMatrixExtents by zoom levels with the highest zoom level being at the lowest array index.
The highest zoom level is the best resolution in ossim. In other words if zoom level 21 is highest zoom level this is equal to r0 (reduced resolution 0.
Definition at line 128 of file ossimGpkgTileEntry.cpp.
References m_tileMatrixExtents.
Referenced by ossim_gpkg::getTileEntries(), and ossim_gpkg::getTileEntry().
|
friend |
Convenience operator << function.
out | Stream to print to. |
obj | Object to print. |
Definition at line 208 of file ossimGpkgTileEntry.cpp.
|
private |
Definition at line 176 of file ossimGpkgTileEntry.h.
Referenced by getNewMapProjection(), getSrs(), operator=(), saveState(), and setSrs().
|
private |
Definition at line 178 of file ossimGpkgTileEntry.h.
Referenced by addTileMatrix(), getGsd(), getNewMapProjection(), getNumberOfLines(), getNumberOfSamples(), getSubImageOffset(), getTiePoint(), getTileMatrix(), getZoomLevelMatrixSizes(), getZoomLevels(), operator=(), printValidate(), saveState(), and sortTileMatrix().
|
private |
Definition at line 179 of file ossimGpkgTileEntry.h.
Referenced by addTileMatrixExtent(), getNumberOfLines(), getNumberOfSamples(), getSubImageOffset(), getTiePoint(), getTileMatrixExtent(), operator=(), and sortTileMatrixExtents().
|
private |
Definition at line 177 of file ossimGpkgTileEntry.h.
Referenced by getNumberOfLines(), getNumberOfSamples(), getTiePoint(), getTileMatrixSet(), operator=(), printValidate(), saveState(), and setTileMatrixSet().