2#ifndef _GeoImageGeoTiff_h_
3#define _GeoImageGeoTiff_h_
6 #include <geotiff/xtiffio.h>
7 #include <geotiff/geotiff.h>
30 unsigned char *
GetImage(
size_t ts,
size_t &width,
size_t &height);
32 unsigned char *
GetImage(
size_t ts,
const double pcsExtentsReq[4],
string proj4StringReq,
size_t maxWidthReq,
size_t maxHeightReq,
double pcsExtentsImg[4],
double geoCornersImg[8],
33 string &proj4StringImg,
size_t &width,
size_t &height);
37 std::vector<double> _tiffTimes;
38 std::vector<double> _times;
39 unsigned char * _texture;
42 string _getProjectionFromGTIF(GTIF *gtifHandle)
const;
44 void _initTimeVector(TIFF *tif,
const vector<double> ×);
46 bool _getTiffTime(TIFF *tif,
UDUnits *udunits,
double &tifftime)
const;
48 int _getBestDirNum(
size_t ts)
const;
50 int _getGTIFInfo(TIFF *tif,
size_t width,
size_t height,
double pcsExtents[4],
double geoCorners[8],
string &proj4String)
const;
52 bool _extractSubtexture(
unsigned char *texture,
size_t width,
size_t height,
const double pcsExtentsReq[4],
string proj4StringReq,
const double pcsExtentsImg[4],
const double geoCornersImg[8],
53 string proj4StringImg,
string &subProj4StringImg,
size_t &subWidth,
size_t &subHeight,
double subPCSExtentsImg[4],
double subGeoCornersImg[8])
const;
A class for managing GeoTiff images.
unsigned char * GetImage(size_t ts, const double pcsExtentsReq[4], string proj4StringReq, size_t maxWidthReq, size_t maxHeightReq, double pcsExtentsImg[4], double geoCornersImg[8], string &proj4StringImg, size_t &width, size_t &height)
unsigned char * GetImage(size_t ts, size_t &width, size_t &height)
int Initialize(string path, vector< double > times)
virtual ~GeoImageGeoTiff()
An abstract class for managing geo-referenced images.