30 #ifndef _GDAL_RASTERHH_
31 #define _GDAL_RASTERHH_
56 GdalRaster(): f_data(0), f_size(0), f_format(-1), f_currentRow(-1), f_changed(0), f_warped_ds(0) {};
63 void createRaster(
const std::string& file,
int categ = 0 );
71 void createRaster(
const std::string& output_file_source,
const std::string& file,
const MapFormat& format );
86 int iget(
int x,
int y,
Scalar *val );
87 int iput(
int x,
int y,
Scalar val );
117 int calcMinMax(
int band=0 );
153 void open(
char mode );
156 void create(
int format );
160 static void initGdal();
167 void read (
Scalar *buf,
int first_row,
int num_rows );
173 void write(
Scalar *buf,
int first_row,
int num_rows );
175 void loadRow(
int row,
bool writeOperation=
false );
GDALDataset * f_warped_ds
double Scalar
Type of map values.
virtual int put(Coord px, Coord py, Scalar val)=0
A common interface to rasters.
virtual int getMinMax(Scalar *min, Scalar *max)=0
double Coord
Type of map coordinates.
bool hasCustomGeotransform()
virtual int deleteRaster()=0
virtual int getExtentInStandardCs(Coord *xmin, Coord *ymin, Coord *xmax, Coord *ymax)
virtual void createRaster(const std::string &source, int categ=0)=0