Load TWMS using GDAL. Iimage is flipped in y direction and the reading is not general enough yet.

This commit is contained in:
Kalle Bladin
2016-04-27 23:21:42 -04:00
parent fb97493e77
commit 78339e909c
7 changed files with 106 additions and 20 deletions
@@ -56,10 +56,12 @@ namespace openspace {
// Read using GDAL
/*
std::string testFile = absPath("map_service_configs/TERRA_CR_B143_2016-04-12.wms");
GDALDataset *poDataset;
GDALAllRegister();
poDataset = (GDALDataset *)GDALOpen(absPath("textures/earth_bluemarble.jpg").c_str(), GA_ReadOnly);
poDataset = (GDALDataset *)GDALOpen(testFile.c_str(), GA_ReadOnly);
assert(poDataset != NULL);
GdalDataConverter conv;
@@ -67,8 +69,8 @@ namespace openspace {
_testTexture->uploadTexture();
_testTexture->setFilter(ghoul::opengl::Texture::FilterMode::Linear);
*/
/*
// Set e texture to test
std::string fileName = "textures/earth_bluemarble.jpg";
@@ -85,7 +87,7 @@ namespace openspace {
//_testTexture->setFilter(ghoul::opengl::Texture::FilterMode::AnisotropicMipMap);
_testTexture->setFilter(ghoul::opengl::Texture::FilterMode::Linear);
}
*/
}
TextureTileSet::~TextureTileSet(){