1 #include "csf.h"
2 #include "csfimpl.h"
3
4 /* write one cell to a CSF raster file
5 * RputCell writes one cell value to a
6 * file.
7 * returns
8 * 1 if cell is successfully written, not 1 if not.
9 *
10 * example
11 * .so examples/rawbin.tr
12 */
RputCell(MAP * map,size_t rowNr,size_t colNr,void * cellValue)13 size_t RputCell(
14 MAP *map, /* map handle */
15 size_t rowNr, /* Row number of cell */
16 size_t colNr, /* Column number of cell */
17 void *cellValue) /* read-write. Buffer large enough to
18 * hold one cell in the in-file cell representation
19 * or the in-app cell representation.
20 * If these types are not equal then the buffer is
21 * converted from the in-app to the in-file
22 * cell representation.
23 */
24 {
25 return RputSomeCells(map,
26 (map->raster.nrCols * rowNr) + colNr,
27 (size_t)1, cellValue) ;
28 }
29