GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
putvalue.c File Reference
#include <grass/raster.h>
#include "raster3d_intern.h"
Include dependency graph for putvalue.c:

Go to the source code of this file.

Functions

int Rast3d_put_float (RASTER3D_Map *map, int x, int y, int z, float value)
 Is equivalent to Rast3d_put_value (map, x, y, z, &value, FCELL_TYPE). More...
 
int Rast3d_put_double (RASTER3D_Map *map, int x, int y, int z, double value)
 Is equivalent to Rast3d_put_value (map, x, y, z, &value, DCELL_TYPE). More...
 
int Rast3d_put_value (RASTER3D_Map *map, int x, int y, int z, const void *value, int type)
 After converting *value of type into the type specified at the initialization time (i.e. typeIntern) this function writes the value into the tile buffer corresponding to cell-coordinate (x, y, z). More...
 

Function Documentation

◆ Rast3d_put_double()

int Rast3d_put_double ( RASTER3D_Map map,
int  x,
int  y,
int  z,
double  value 
)

Is equivalent to Rast3d_put_value (map, x, y, z, &value, DCELL_TYPE).

Parameters
map
x
y
z
value
Returns
1 ... if successful, 0 ... otherwise.

Definition at line 57 of file putvalue.c.

References FCELL_TYPE, NULL, Rast3d_coord2tile_index(), Rast3d_error(), Rast3d_get_tile_ptr(), Rast3d_put_float(), and RASTER3D_Map::typeIntern.

Referenced by Rast3d_put_float().

◆ Rast3d_put_float()

int Rast3d_put_float ( RASTER3D_Map map,
int  x,
int  y,
int  z,
float  value 
)

Is equivalent to Rast3d_put_value (map, x, y, z, &value, FCELL_TYPE).

Parameters
map
x
y
z
value
Returns
1 ... if successful, 0 ... otherwise.

Definition at line 21 of file putvalue.c.

References DCELL_TYPE, NULL, Rast3d_coord2tile_index(), Rast3d_error(), Rast3d_get_tile_ptr(), Rast3d_put_double(), and RASTER3D_Map::typeIntern.

Referenced by Rast3d_put_double().

◆ Rast3d_put_value()

int Rast3d_put_value ( RASTER3D_Map map,
int  x,
int  y,
int  z,
const void *  value,
int  type 
)

After converting *value of type into the type specified at the initialization time (i.e. typeIntern) this function writes the value into the tile buffer corresponding to cell-coordinate (x, y, z).

Parameters
map
x
y
z
value
type
Returns
1 ... if successful, 0 ... otherwise.

Definition at line 96 of file putvalue.c.