GRASS 8 Programmer's Manual  8.5.0dev(2025)-c070206eb1
tilenull.c
Go to the documentation of this file.
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <sys/types.h>
4 #include <unistd.h>
5 #include "raster3d_intern.h"
6 
7 /*---------------------------------------------------------------------------*/
8 
9 /*!
10  * \brief
11  *
12  * Assumes that <em>tile</em> is a tile with the same dimensions as the
13  * tiles of <em>map</em>. Fills <em>tile</em> with NULL-values of
14  * <em>type</em>.
15  *
16  * \param map
17  * \param tile
18  * \param type
19  * \return void
20  */
21 void Rast3d_set_null_tile_type(RASTER3D_Map *map, void *tile, int type)
22 {
23  Rast3d_set_null_value(tile, map->tileSize, type);
24 }
25 
26 /*---------------------------------------------------------------------------*/
27 
28 /*!
29  * \brief
30  *
31  * Is equivalent to Rast3d_set_null_tile_type (map, tile, Rast3d_file_type_map
32  * (map)).
33  *
34  * \param map
35  * \param tile
36  * \return void
37  */
38 void Rast3d_set_null_tile(RASTER3D_Map *map, void *tile)
39 {
40  Rast3d_set_null_tile_type(map, tile, map->typeIntern);
41 }
void Rast3d_set_null_value(void *, int, int)
Fills the vector pointed to by c with nofElts NULL-values of type.
Definition: null.c:33
int tileSize
Definition: raster3d.h:180
int typeIntern
Definition: raster3d.h:150
void Rast3d_set_null_tile(RASTER3D_Map *map, void *tile)
Is equivalent to Rast3d_set_null_tile_type (map, tile, Rast3d_file_type_map (map)).
Definition: tilenull.c:38
void Rast3d_set_null_tile_type(RASTER3D_Map *map, void *tile, int type)
Assumes that tile is a tile with the same dimensions as the tiles of map. Fills tile with NULL-values...
Definition: tilenull.c:21