1 #include "csf.h" 2 #include "csfimpl.h" 3 4 /* read one cell from a CSF raster file 5 * RgetCell reads one cell value from a 6 * file. 7 * returns 8 * 1 if cell is successfully read, 9 * 0 if not 10 * 11 * example 12 * .so examples/csfdump1.tr 13 */ 14 size_t RgetCell( 15 MAP *map, /* map handle */ 16 size_t rowNr, /* row number of cell */ 17 size_t colNr, /* column number of cell */ 18 void *cellValue) /* write-only. buffer, large enough to hold 19 * the value of the cell in the file and app 20 * cell representation 21 */ 22 { 23 return RgetSomeCells(map, 24 ( (map->raster.nrCols) * rowNr) + colNr, 25 (size_t)1, cellValue); 26 } 27