GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-7413740dd8
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 
22 void Rast3d_set_null_tile_type(RASTER3D_Map *map, void *tile, int type)
23 {
24  Rast3d_set_null_value(tile, map->tileSize, type);
25 }
26 
27 /*---------------------------------------------------------------------------*/
28 
29 /*!
30  * \brief
31  *
32  * Is equivalent to Rast3d_set_null_tile_type (map, tile, Rast3d_file_type_map
33  * (map)).
34  *
35  * \param map
36  * \param tile
37  * \return void
38  */
39 
40 void Rast3d_set_null_tile(RASTER3D_Map *map, void *tile)
41 {
42  Rast3d_set_null_tile_type(map, tile, map->typeIntern);
43 }
void Rast3d_set_null_value(void *, int, int)
Fills the vector pointed to by c with nofElts NULL-values of type.
Definition: null.c:34
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:40
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:22