141 double xres = (xmax - xmin) / xdim;
142 double yres = (ymax - ymin) / ydim;
145 *col = (int) floor ( (x - xmin) / xres );
146 *row = (int) floor ( (ymax - y) / yres );
virtual bool hasCustomGeotransform()
int get(Coord x, Coord y, Scalar *val) const
double Scalar
Type of map values.
virtual int put(Coord px, Coord py, Scalar val)=0
A common interface to rasters.
int put(Coord x, Coord y, Scalar val)
int getExtent(Coord *xmin, Coord *ymin, Coord *xmax, Coord *ymax) const
virtual int get(Coord px, Coord py, Scalar *val)=0
double Coord
Type of map coordinates.
virtual int deleteRaster()=0
virtual int getExtentInStandardCs(Coord *xmin, Coord *ymin, Coord *xmax, Coord *ymax)
int getRowColumn(Coord x, Coord y, int *row, int *col)