GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
Go to the source code of this file.
Functions | |
void | Rast3d_get_coords_map (RASTER3D_Map *map, int *rows, int *cols, int *depths) |
Returns the size of the region of map in cells. More... | |
void | Rast3d_get_coords_map_window (RASTER3D_Map *map, int *rows, int *cols, int *depths) |
void | Rast3d_get_nof_tiles_map (RASTER3D_Map *map, int *nx, int *ny, int *nz) |
Returns the dimensions of the tile-cube used to tile the region of map. These numbers include partial tiles. More... | |
void | Rast3d_get_region_map (RASTER3D_Map *map, double *north, double *south, double *east, double *west, double *top, double *bottom) |
Returns the size of the region. More... | |
void | Rast3d_get_window_map (RASTER3D_Map *map, double *north, double *south, double *east, double *west, double *top, double *bottom) |
void | Rast3d_get_region_struct_map (RASTER3D_Map *map, RASTER3D_Region *region) |
Returns in region the region of map. More... | |
void | Rast3d_getWindowStructMap (RASTER3D_Map *map, RASTER3D_Region *window) |
void | Rast3d_get_tile_dimensions_map (RASTER3D_Map *map, int *x, int *y, int *z) |
Returns the tile dimensions used for map. More... | |
int | Rast3d_tile_type_map (RASTER3D_Map *map) |
Returns the type in which tiles of map are stored in memory. More... | |
void | Rast3d_set_unit (RASTER3D_Map *map, const char *unit) |
Set the data unit defintiong. More... | |
void | Rast3d_set_vertical_unit2 (RASTER3D_Map *map, int vertical_unit) |
set Vertical unit from integer value defined in gis.h (U_METERS, ...) More... | |
void | Rast3d_set_vertical_unit (RASTER3D_Map *map, const char *vertical_unit) |
set Vertical unit from string More... | |
const char * | Rast3d_get_unit (RASTER3D_Map *map) |
Return the data unit definition of map. More... | |
int | Rast3d_get_vertical_unit2 (RASTER3D_Map *map) |
Returns the vertical unit of map as integer. Units are defined in gis.h. More... | |
const char * | Rast3d_get_vertical_unit (RASTER3D_Map *map) |
Return the name of the unit of map. Units are defined in gis.h. More... | |
int | Rast3d_file_type_map (RASTER3D_Map *map) |
Returns the type with which tiles of map are stored on file. More... | |
int | Rast3d_tile_precision_map (RASTER3D_Map *map) |
Returns the precision used to store map. More... | |
int | Rast3d_tile_use_cache_map (RASTER3D_Map *map) |
Returns 1 if map uses cache, returns 0 otherwise. More... | |
void | Rast3d_print_header (RASTER3D_Map *map) |
Prints the header information of map. More... | |
int Rast3d_file_type_map | ( | RASTER3D_Map * | map | ) |
Returns the type with which tiles of map are stored on file.
map |
Definition at line 276 of file headerinfo.c.
References RASTER3D_Map::type.
void Rast3d_get_coords_map | ( | RASTER3D_Map * | map, |
int * | rows, | ||
int * | cols, | ||
int * | depths | ||
) |
Returns the size of the region of map in cells.
map | |
rows | |
cols | |
depths |
Definition at line 18 of file headerinfo.c.
References RASTER3D_Region::cols, RASTER3D_Region::depths, RASTER3D_Map::region, and RASTER3D_Region::rows.
Referenced by Rast3d_compare_files(), Rast3d_flush_tiles_in_cube(), and Rast3d_write_ascii().
void Rast3d_get_coords_map_window | ( | RASTER3D_Map * | map, |
int * | rows, | ||
int * | cols, | ||
int * | depths | ||
) |
Definition at line 27 of file headerinfo.c.
References RASTER3D_Region::cols, RASTER3D_Region::depths, RASTER3D_Region::rows, and RASTER3D_Map::window.
void Rast3d_get_nof_tiles_map | ( | RASTER3D_Map * | map, |
int * | nx, | ||
int * | ny, | ||
int * | nz | ||
) |
Returns the dimensions of the tile-cube used to tile the region of map. These numbers include partial tiles.
map | |
nx | |
ny | |
nz |
Definition at line 50 of file headerinfo.c.
References RASTER3D_Map::nx, RASTER3D_Map::ny, and RASTER3D_Map::nz.
Referenced by Rast3d_compare_files().
void Rast3d_get_region_map | ( | RASTER3D_Map * | map, |
double * | north, | ||
double * | south, | ||
double * | east, | ||
double * | west, | ||
double * | top, | ||
double * | bottom | ||
) |
Returns the size of the region.
map | |
north | |
south | |
east | |
west | |
top | |
bottom |
Definition at line 74 of file headerinfo.c.
References RASTER3D_Region::bottom, RASTER3D_Region::east, RASTER3D_Region::north, RASTER3D_Map::region, RASTER3D_Region::south, RASTER3D_Region::top, and RASTER3D_Region::west.
void Rast3d_get_region_struct_map | ( | RASTER3D_Map * | map, |
RASTER3D_Region * | region | ||
) |
Returns in region the region of map.
map | |
region |
Definition at line 112 of file headerinfo.c.
void Rast3d_get_tile_dimensions_map | ( | RASTER3D_Map * | map, |
int * | x, | ||
int * | y, | ||
int * | z | ||
) |
Returns the tile dimensions used for map.
map | |
x | |
y | |
z |
Definition at line 138 of file headerinfo.c.
References RASTER3D_Map::tileX, RASTER3D_Map::tileY, RASTER3D_Map::tileZ, and x.
Referenced by Rast3d_compare_files().
const char* Rast3d_get_unit | ( | RASTER3D_Map * | map | ) |
Return the data unit definition of map.
map |
Definition at line 223 of file headerinfo.c.
References RASTER3D_Map::unit.
const char* Rast3d_get_vertical_unit | ( | RASTER3D_Map * | map | ) |
Return the name of the unit of map. Units are defined in gis.h.
Vertical units may have temporal type
map |
Definition at line 260 of file headerinfo.c.
References G_get_units_name(), and RASTER3D_Map::vertical_unit.
int Rast3d_get_vertical_unit2 | ( | RASTER3D_Map * | map | ) |
Returns the vertical unit of map as integer. Units are defined in gis.h.
Vertical units may have temporal type
map |
Definition at line 242 of file headerinfo.c.
References RASTER3D_Map::vertical_unit.
void Rast3d_get_window_map | ( | RASTER3D_Map * | map, |
double * | north, | ||
double * | south, | ||
double * | east, | ||
double * | west, | ||
double * | top, | ||
double * | bottom | ||
) |
Definition at line 88 of file headerinfo.c.
References RASTER3D_Region::bottom, RASTER3D_Region::east, RASTER3D_Region::north, RASTER3D_Region::south, RASTER3D_Region::top, RASTER3D_Region::west, and RASTER3D_Map::window.
void Rast3d_getWindowStructMap | ( | RASTER3D_Map * | map, |
RASTER3D_Region * | window | ||
) |
Definition at line 119 of file headerinfo.c.
void Rast3d_print_header | ( | RASTER3D_Map * | map | ) |
Prints the header information of map.
map |
Definition at line 322 of file headerinfo.c.
References RASTER3D_Region::bottom, RASTER3D_Region::cols, RASTER3D_Map::compression, RASTER3D_Map::data_fd, DCELL_TYPE, RASTER3D_Region::depths, RASTER3D_Region::east, FCELL_TYPE, RASTER3D_Map::fileName, G_get_units_name(), RASTER3D_Region::north, RASTER3D_Map::nx, RASTER3D_Map::ny, RASTER3D_Map::nz, RASTER3D_Map::operation, RASTER3D_Map::precision, Rast3d_is_null_value_num(), Rast3d_range_min_max(), RASTER3D_NO_COMPRESSION, RASTER3D_READ_DATA, RASTER3D_WRITE_DATA, RASTER3D_Map::region, RASTER3D_Region::rows, RASTER3D_Region::south, RASTER3D_Map::tileX, RASTER3D_Map::tileY, RASTER3D_Map::tileZ, RASTER3D_Region::top, RASTER3D_Map::type, RASTER3D_Map::typeIntern, RASTER3D_Map::unit, RASTER3D_Map::useCache, RASTER3D_Map::useLzw, RASTER3D_Map::useRle, RASTER3D_Map::version, RASTER3D_Map::vertical_unit, and RASTER3D_Region::west.
Referenced by Rast3d_compare_files().
void Rast3d_set_unit | ( | RASTER3D_Map * | map, |
const char * | unit | ||
) |
Set the data unit defintiong.
map | |
unit |
Definition at line 173 of file headerinfo.c.
References G_store(), and RASTER3D_Map::unit.
void Rast3d_set_vertical_unit | ( | RASTER3D_Map * | map, |
const char * | vertical_unit | ||
) |
set Vertical unit from string
map | |
unit |
Definition at line 207 of file headerinfo.c.
References G_units(), and RASTER3D_Map::vertical_unit.
void Rast3d_set_vertical_unit2 | ( | RASTER3D_Map * | map, |
int | vertical_unit | ||
) |
set Vertical unit from integer value defined in gis.h (U_METERS, ...)
map | |
unit |
Definition at line 190 of file headerinfo.c.
References RASTER3D_Map::vertical_unit.
int Rast3d_tile_precision_map | ( | RASTER3D_Map * | map | ) |
Returns the precision used to store map.
map |
Definition at line 292 of file headerinfo.c.
References RASTER3D_Map::precision.
Referenced by Rast3d_compare_files().
int Rast3d_tile_type_map | ( | RASTER3D_Map * | map | ) |
Returns the type in which tiles of map are stored in memory.
map |
Definition at line 156 of file headerinfo.c.
References RASTER3D_Map::typeIntern.
Referenced by Rast3d_compare_files(), and Rast3d_write_ascii().
int Rast3d_tile_use_cache_map | ( | RASTER3D_Map * | map | ) |
Returns 1 if map uses cache, returns 0 otherwise.
map |
Definition at line 308 of file headerinfo.c.
References RASTER3D_Map::useCache.
Referenced by Rast3d_compare_files().