1 #ifndef GRASS_RASTER3DDEFS_H
2 #define GRASS_RASTER3DDEFS_H
139 const
char *,
int,
int, const
int *);
195 int *,
int *,
int *,
int *);
201 int,
int,
int,
int,
int);
223 double *,
double *,
double *);
231 int,
int,
void *,
int));
242 double,
double,
double,
double,
double,
double,
int,
int,
245 double,
int,
int,
int,
void *,
int);
247 double,
double,
double,
double,
int,
int,
274 double *,
double *,
double *,
double *,
int *,
int *,
275 int *,
double *,
double *,
double *,
int *,
int *,
int *,
276 int *,
int *,
int *,
int *,
int *,
int *,
int *,
int *,
277 char **,
int *,
int *);
279 double,
double,
double,
int,
int,
int,
double,
double,
280 double,
int,
int,
int,
int,
int,
int,
int,
int,
int,
281 int,
int,
char *,
int,
int);
286 int,
int,
int,
int,
int,
int,
int,
int,
double,
double,
287 double,
double,
double,
double,
int,
int,
int,
double,
288 double,
double,
char *,
int,
int);
294 double *,
double *,
double *);
296 double *,
double *,
double *);
345 int *,
int *,
int *);
351 int *,
int *,
int *,
int *);
void Rast3d_gradient_double(RASTER3D_Array_double *, double *, RASTER3D_Array_double *, RASTER3D_Array_double *, RASTER3D_Array_double *)
Gradient computation.
int Rast3d_read_tile_double(RASTER3D_Map *, int, void *)
Is equivalent to Rast3d_read_tile (map, tileIndex, tile, DCELL_TYPE).
void Rast3d_copy_values(const void *, int, int, void *, int, int, int)
void * Rast3d_cache_new_read(int, int, int, read_fn *, void *)
void Rast3d_retile(void *, const char *, int, int, int)
Makes a copy of map with name nameOut which has tile dimensions tileX, tileY, tileZ....
int Rast3d_rewrite_header(RASTER3D_Map *map)
void Rast3d_get_value(RASTER3D_Map *, int, int, int, void *, int)
Returns in *value the resampled cell-value of the cell with window-coordinate (x, y,...
int Rast3d_cache_lock(RASTER3D_cache *, int)
int Rast3d_fill_header(RASTER3D_Map *, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, int, double, double, double, double, double, double, int, int, int, double, double, double, char *, int, int)
int Rast3d_g3d_type2cell_type(int)
int Rast3d_cache_size_encode(int, int)
Returns a number which encodes multiplicity n of cacheCode. This value can be used to specify the siz...
int Rast3d_flush_all_tiles(RASTER3D_Map *)
void Rast3d_cache_lock_intern(RASTER3D_cache *, int)
void * Rast3d_realloc(void *, int)
Same as realloc (ptr, nBytes), except that in case of error Rast3d_error() is invoked.
void Rast3d_mask_num(RASTER3D_Map *, int, int, int, void *, int)
Replaces the value stored in value with the NULL-value if Rast3d_is_masked (x, y, z) returns 1....
void Rast3d_location2coord(RASTER3D_Region *, double, double, double, int *, int *, int *)
Converts region-coordinates (north, east, top) into cell-coordinates (x, y, z).
int Rast3d_write_header(RASTER3D_Map *, int, int, double, double, double, double, double, double, int, int, int, double, double, double, int, int, int, int, int, int, int, int, int, int, int, char *, int, int)
int Rast3d_read_colors(const char *, const char *, struct Colors *)
Reads color file for map name in mapset into the Colors structure.
void Rast3d_write_ascii(void *, const char *)
Writes the cell-values of map in ascii format to file fname. The values are organized by horizontal s...
int Rast3d_mask_is_off(RASTER3D_Map *)
Returns 1 if the mask for map is turned off. Returns 0 otherwise.
int Rast3d_cache_flush_all(RASTER3D_cache *)
int Rast3d_put_float(RASTER3D_Map *, int, int, int, float)
Is equivalent to Rast3d_put_value (map, x, y, z, &value, FCELL_TYPE).
void Rast3d_cache_dispose(RASTER3D_cache *)
void Rast3d_set_xdr_null_num(void *, int)
void Rast3d_nearest_neighbor(RASTER3D_Map *, int, int, int, void *, int)
The default resampling function which uses nearest neighbor resampling. This method converts the wind...
void Rast3d_filename(char *, const char *, const char *, const char *)
int Rast3d_flush_tile(RASTER3D_Map *, int)
Writes the tile with tileIndex to the file corresponding to map and removes the tile from the cache (...
int Rast3d_write_colors(const char *, const char *, struct Colors *)
Writes the colors for map name in mapset into a color file.
int Rast3d_read_cats(const char *, const char *, struct Categories *)
Reads the categories file for map name in mapset and stores the categories in the pcats structure....
void Rast3d_cache_set_load_fun(RASTER3D_cache *, read_fn *, void *)
int Rast3d_mask_d_select(DCELL *, d_Mask *)
int Rast3d_is_xdr_null_double(const double *)
void Rast3d_free(void *)
Same as free (ptr).
int Rast3d_file_type_map(RASTER3D_Map *)
Returns the type with which tiles of map are stored on file.
void Rast3d_rle_encode(char *, char *, int, int)
int Rast3d_rle_count_only(char *, int, int)
int Rast3d_cache_put_elt(RASTER3D_cache *, int, const void *)
int Rast3d_tile_type_map(RASTER3D_Map *)
Returns the type in which tiles of map are stored in memory.
void Rast3d_get_nof_tiles_map(RASTER3D_Map *, int *, int *, int *)
Returns the dimensions of the tile-cube used to tile the region of map. These numbers include partial...
void Rast3d_set_xdr_null_double(double *)
void Rast3d_fatal_error_noargs(const char *) __attribute__((noreturn))
void Rast3d_compute_optimal_tile_dimension(RASTER3D_Region *, int, int *, int *, int *, int)
Compute the optimal tile size.
void Rast3d_autolock_on(RASTER3D_Map *)
Turns autolock mode on.
const char * Rast3d_get_vertical_unit(RASTER3D_Map *map)
Return the name of the unit of map. Units are defined in gis.h.
void * Rast3d_open_cell_old(const char *, const char *, RASTER3D_Region *, int, int)
Opens existing g3d-file name in mapset. Tiles are stored in memory with type which must be any of FCE...
void Rast3d_get_region_value(RASTER3D_Map *, double, double, double, void *, int)
Returns in value the value of the map which corresponds to region coordinates (north,...
int Rast3d_flush_index(RASTER3D_Map *)
void Rast3d_cache_hash_dispose(Rast3d_cache_hash *)
void Rast3d_cache_hash_remove_name(Rast3d_cache_hash *, int)
float Rast3d_get_float_region(RASTER3D_Map *, int, int, int)
Is equivalent to Rast3d_get_value_region (map, x, y, z, &value, FCELL_TYPE); return value.
void Rast3d_region_to_cell_head(RASTER3D_Region *, struct Cell_head *)
Returns in region2d the 2d portion of region3d.
int Rast3d_init_copy_from_xdr(RASTER3D_Map *, int)
int Rast3d_get_cache_limit(void)
Get cache limit.
void Rast3d_get_tile_dimensions_map(RASTER3D_Map *, int *, int *, int *)
Returns the tile dimensions used for map.
int Rast3d_unlock_all(RASTER3D_Map *)
Unlocks every tile in cache of map.
void Rast3d_cache_autolock_off(RASTER3D_cache *)
void Rast3d_set_null_tile_type(RASTER3D_Map *, void *, int)
Assumes that tile is a tile with the same dimensions as the tiles of map. Fills tile with NULL-values...
int Rast3d_read_doubles(int, int, double *, int)
void Rast3d_mask_tile(RASTER3D_Map *, int, void *, int)
Replaces the values stored in tile (with tileIndex) for which Rast3d_is_masked returns 1 with NULL-va...
void Rast3d_make_mapset_map_directory(const char *)
void Rast3d_get_tile_dimension(int *, int *, int *)
get Tile Dimension
void Rast3d_tile_index_origin(RASTER3D_Map *, int, int *, int *, int *)
Computes the cell-coordinates (x, y, z) which correspond to the origin of the tile with tileIndex.
void Rast3d_change_precision(void *, int, const char *)
Makes a copy of map with name nameOut which is written with precision. The source code can be found i...
int Rast3d_write_doubles(int, int, const double *, int)
int Rast3d_cache_load(RASTER3D_cache *, int)
void Rast3d_get_volume_a(void *, double[2][2][2][3], int, int, int, void *, int)
void Rast3d_cache_reset(RASTER3D_cache *)
int Rast3d_read_history(const char *, const char *, struct History *)
read raster3d History file
void Rast3d_long_decode(unsigned char *, long *, int, int)
int Rast3d_is_valid_location(RASTER3D_Region *, double, double, double)
Returns 1 if region-coordinates (north, east, top) are inside the region of map. Returns 0 otherwise.
int Rast3d_key_set_int(struct Key_Value *, const char *, const int *)
int Rast3d_dispose_cache(RASTER3D_Map *)
void Rast3d_extract2d_region(RASTER3D_Region *, struct Cell_head *)
Returns in region2d the 2d portion of region3d.
int Rast3d_tile_index_in_range(RASTER3D_Map *, int)
Returns 1 if tileIndex is a valid index for map. Returns 0 otherwise.
void Rast3d_get_coords_map_window(RASTER3D_Map *, int *, int *, int *)
void Rast3d_get_region_struct_map(RASTER3D_Map *, RASTER3D_Region *)
Returns in region the region of map.
void Rast3d_get_resampling_fun(RASTER3D_Map *, void(**)(RASTER3D_Map *, int, int, int, void *, int))
Returns in resampleFun a pointer to the resampling function used by map.
void Rast3d_set_standard3d_input_params(void)
Initializes a parameter structure for the subset of command line arguments which lets the user overwr...
void Rast3d_set_null_value(void *, int, int)
Fills the vector pointed to by c with nofElts NULL-values of type.
void Rast3d_min_unlocked(RASTER3D_Map *, int)
Sets the minimum number of unlocked tiles to minUnlocked. This function should be used in combination...
int Rast3d_unlock_tile(RASTER3D_Map *, int)
Unlocks tile with tileIndex.
int Rast3d_mask_map_exists(void)
Returns 1 if the 3d mask is loaded.
void Rast3d_set_resampling_fun(RASTER3D_Map *, void(*)(RASTER3D_Map *, int, int, int, void *, int))
Sets the resampling function to be used by Rast3d_get_value () (cf.{g3d:G3d.getValue})....
int Rast3d_is_null_value_num(const void *, int)
int Rast3d_mask_open_old(void)
int Rast3d_coord_in_range(RASTER3D_Map *, int, int, int)
Returns 1 if cell-coordinate (x, y, z) is a coordinate inside the region. Returns 0 otherwise.
int Rast3d_write_history(const char *, struct History *)
write raster3d History file
void Rast3d_autolock_off(RASTER3D_Map *)
Turns autolock mode Off.
void Rast3d_free_tiles(void *)
Is equivalent to Rast3d_free (tiles);
void Rast3d_set_null_tile(RASTER3D_Map *, void *)
Is equivalent to Rast3d_set_null_tile_type (map, tile, Rast3d_file_type_map (map)).
int Rast3d_tile_precision_map(RASTER3D_Map *)
Returns the precision used to store map.
void Rast3d_set_tile_dimension(int, int, int)
set Tile Dimension
int Rast3d_read_range(const char *, const char *, struct FPRange *)
int Rast3d__compute_cache_size(RASTER3D_Map *, int)
void Rast3d_copy_float2Double(const float *, int, double *, int, int)
void Rast3d_set_vertical_unit2(RASTER3D_Map *map, int)
set Vertical unit from integer value defined in gis.h (U_METERS, ...)
int Rast3d_key_get_string(struct Key_Value *, const char *, char **)
void Rast3d_adjust_region_res(RASTER3D_Region *)
Computes an adjusts the number of cells per dimension in the region structure from the region boundar...
int Rast3d_read_header(RASTER3D_Map *, int *, int *, double *, double *, double *, double *, double *, double *, int *, int *, int *, double *, double *, double *, int *, int *, int *, int *, int *, int *, int *, int *, int *, int *, int *, char **, int *, int *)
void Rast3d_get_coords_map(RASTER3D_Map *, int *, int *, int *)
Returns the size of the region of map in cells.
int Rast3d_init_index(RASTER3D_Map *, int)
void Rast3d_mask_off(RASTER3D_Map *)
Turns off the mask for map. This is the default. Do not invoke this function after the first tile has...
void Rast3d_mask_double(RASTER3D_Map *, int, int, int, double *)
Same as Rast3d_mask_num (x, y, z, value, DCELL_TYPE).
void Rast3d_set_error_fun(void(*)(const char *))
set error function
void Rast3d_tile_index2tile(RASTER3D_Map *, int, int *, int *, int *)
Converts index tileIndex into tile-coordinates (xTile, yTile, zTile).
int Rast3d_cache_flush(RASTER3D_cache *, int)
void Rast3d_region_from_to_cell_head(struct Cell_head *, RASTER3D_Region *)
Replaces the 2d portion of region3d with the values stored in region2d.
void Rast3d_get_block(RASTER3D_Map *, int, int, int, int, int, int, void *, int)
Copies the cells contained in the block (cube) with vertices (x0, y0, z0) and (x0 + nx - 1,...
int Rast3d_get_vertical_unit2(RASTER3D_Map *map)
Returns the vertical unit of map as integer. Units are defined in gis.h.
void * Rast3d_get_tile_ptr(RASTER3D_Map *, int)
This function returns a pointer to a tile which contains the data for the tile with index tileIndex....
int Rast3d_tile_use_cache_map(RASTER3D_Map *)
Returns 1 if map uses cache, returns 0 otherwise.
void Rast3d_cache_hash_reset(Rast3d_cache_hash *)
void * Rast3d_cache_new(int, int, int, write_fn *, void *, read_fn *, void *)
void Rast3d_print_header(RASTER3D_Map *)
Prints the header information of map.
int Rast3d_read_region_map(const char *, const char *, RASTER3D_Region *)
void Rast3d_set_file_type(int)
set G3d file type
RASTER3D_Region * Rast3d_window_ptr(void)
void Rast3d_set_unit(RASTER3D_Map *map, const char *)
Set the data unit defintiong.
int Rast3d_key_set_string(struct Key_Value *, const char *, char *const *)
int Rast3d_write_tile_float(RASTER3D_Map *, int, const void *)
Is equivalent to Rast3d_write_tile (map, tileIndex, tile, FCELL_TYPE).
void Rast3d_get_aligned_volume(void *, double, double, double, double, double, double, int, int, int, void *, int)
void Rast3d_set_cache_limit(int)
Set cache limit.
void Rast3d_cache_autolock_on(RASTER3D_cache *)
int Rast3d_write_cats(const char *, struct Categories *)
Writes the categories stored in the cats structure into the categories file for map name in the curre...
int Rast3d_mask_file_exists(void)
Returns 1 if the 3d mask file exists.
void Rast3d_adjust_region(RASTER3D_Region *)
Computes an adjusts the resolutions in the region structure from the region boundaries and number of ...
int Rast3d_range_load(RASTER3D_Map *)
Loads the range into the range structure of map.
void Rast3d_location2coord_double(RASTER3D_Region *, double, double, double, double *, double *, double *)
Converts region-coordinates (north, east, top) into cell-coordinates (x, y, z).
int Rast3d_get_file_type(void)
get G3d file type
int Rast3d_put_value(RASTER3D_Map *, int, int, int, const void *, int)
After converting *value of type into the type specified at the initialization time (i....
void * Rast3d_alloc_tiles(RASTER3D_Map *, int)
Is equivalent to Rast3d_alloc_tiles_type (map, nofTiles, Rast3d_file_type_map (map)).
void Rast3d_get_nearest_neighbor_fun_ptr(void(**)(RASTER3D_Map *, int, int, int, void *, int))
Returns in nnFunPtr a pointer to Rast3d_nearest_neighbor () (cf.{g3d:G3d.nearestNeighbor}).
void __attribute__((noreturn))
int Rast3d_tile2tile_index(RASTER3D_Map *, int, int, int)
Returns tile-index corresponding to tile-coordinates (xTile, yTile, zTile).
void Rast3d_get_value_region(RASTER3D_Map *, int, int, int, void *, int)
Returns in *value the cell-value of the cell with region-coordinate (x, y, z). The value returned is ...
const char * Rast3d_mask_file(void)
Returns the name of the 3d mask file.
void Rast3d_cache_set_min_unlock(RASTER3D_cache *, int)
int Rast3d_mask_close(void)
void Rast3d_skip_error(const char *)
void Rast3d_range_update_from_tile(RASTER3D_Map *, const void *, int, int, int, int, int, int, int, int)
char * Rast3d_get_window_params(void)
void Rast3d_tile_coord_origin(RASTER3D_Map *, int, int, int, int *, int *, int *)
Computes the cell-coordinates (x, y, z) which correspond to the origin of the tile with tile-coordina...
void Rast3d_print_error(const char *)
Prints error message.
void * Rast3d_cache_hash_new(int)
void Rast3d_mask_on(RASTER3D_Map *)
Turns on the mask for map. Do not invoke this function after the first tile has been read since the r...
void Rast3d_get_block_nocache(RASTER3D_Map *, int, int, int, int, int, int, void *, int)
void Rast3d_mask_float(RASTER3D_Map *, int, int, int, float *)
Same as Rast3d_mask_num (x, y, z, value, FCELL_TYPE).
int Rast3d_init_fp_xdr(RASTER3D_Map *, int)
int Rast3d_key_get_int(struct Key_Value *, const char *, int *)
void Rast3d_parse_vallist(char **, d_Mask **)
int Rast3d_key_set_value(struct Key_Value *, const char *, const char *, const char *, int, int, const int *)
int Rast3d_write_ints(int, int, const int *, int)
void Rast3d_get_window_value(RASTER3D_Map *, double, double, double, void *, int)
Returns in value the value of the map which corresponds to window coordinates (north,...
void Rast3d_make_aligned_volume_file(void *, const char *, double, double, double, double, double, double, int, int, int)
void Rast3d_coord2tile_coord(RASTER3D_Map *, int, int, int, int *, int *, int *, int *, int *, int *)
Converts cell-coordinates (x, y, z) into tile-coordinates (xTile, yTile, zTile) and the coordinate of...
void Rast3d_set_window_params(void)
void Rast3d_get_volume(void *, double, double, double, double, double, double, double, double, double, double, double, double, int, int, int, void *, int)
void Rast3d_get_compression_mode(int *, int *)
Gets compression mode.
int Rast3d_lock_tile(RASTER3D_Map *, int)
Locks tile with tileIndex in cache. If after locking fewer than the minimum number of unlocked tiles ...
int Rast3d_extern_length(int)
void Rast3d_get_window_map(RASTER3D_Map *, double *, double *, double *, double *, double *, double *)
int Rast3d_cache_remove_elt(RASTER3D_cache *, int)
int Rast3d_range_init(RASTER3D_Map *)
void * Rast3d_open_new_opt_tile_size(const char *, int, RASTER3D_Region *, int, int)
Opens new g3d-file with name in the current mapset. This method tries to compute optimal tile size ba...
void * Rast3d_open_cell_old_no_header(const char *, const char *)
int Rast3d_cache_unlock_all(RASTER3D_cache *)
const char * Rast3d_get_unit(RASTER3D_Map *map)
Return the data unit definition of map.
int Rast3d_end_cycle(RASTER3D_Map *)
Ends a cycle.
DCELL Rast3d_mask_match_d_interval(DCELL, d_Interval *)
void Rast3d_compare_files(const char *, const char *, const char *, const char *)
Compares the cell-values of file f1 in mapset mapset1 and file f2 in mapset mapset2....
int Rast3d_tile_load(RASTER3D_Map *, int)
Same functionality as Rast3d_get_tile_ptr() but does not return the pointer.
void Rast3d_cache_set_remove_fun(RASTER3D_cache *, write_fn *, void *)
void Rast3d_set_vertical_unit(RASTER3D_Map *map, const char *)
set Vertical unit from string
int Rast3d_read_window(RASTER3D_Region *, const char *)
Reads window from the file specified by windowName. The name is converted by the rules defined in win...
void Rast3d_region_copy(RASTER3D_Region *, RASTER3D_Region *)
Copies the values of regionSrc into regionDst.
void Rast3d_cache_hash_load_name(Rast3d_cache_hash *, int, int)
void int Rast3d_is_xdr_null_num(const void *, int)
int Rast3d_tile_in_range(RASTER3D_Map *, int, int, int)
Returns 1 if tile-coordinate (x, y, z) is a coordinate inside tile cube. Returns 0 otherwise.
int Rast3d_cache_unlock(RASTER3D_cache *, int)
int Rast3d_range_write(RASTER3D_Map *)
Writes the range which is stored in the range structure of map. (This function is invoked automatical...
int Rast3d_begin_cycle(RASTER3D_Map *)
Starts a new cycle.
int Rast3d_put_double(RASTER3D_Map *, int, int, int, double)
Is equivalent to Rast3d_put_value (map, x, y, z, &value, DCELL_TYPE).
void Rast3d_init_defaults(void)
Initializes the default values described in RASTER3D Defaults. Applications have to use this function...
void Rast3d_get_region_map(RASTER3D_Map *, double *, double *, double *, double *, double *, double *)
Returns the size of the region.
int Rast3d_read_tile(RASTER3D_Map *, int, void *, int)
Reads tile with index tileIndex into the tile buffer. The cells are stored with type type which must ...
int Rast3d_copy_to_xdr(const void *, int)
void * Rast3d_open_new_param(const char *, int, int, RASTER3D_Region *, int, int, int, int, int, int)
Opens new g3d-file with name in the current mapset. Tiles are stored in memory with typeIntern which ...
void Rast3d_change_type(void *, const char *)
Makes a copy of map with name nameOut in which the cells are of type FCELL_TYPE if they are DCELL_TYP...
void * Rast3d_open_cell_new(const char *, int, int, RASTER3D_Region *)
Opens new g3d-file with name in the current mapset. Tiles are stored in memory with type which must b...
int Rast3d_copy_from_xdr(int, void *)
void Rast3d_use_window_params(void)
Writes window to the file specified by windowName. The name is converted by the rules defined in wind...
void * Rast3d_alloc_tiles_type(RASTER3D_Map *, int, int)
Allocates a vector of nofTiles tiles with the same dimensions as the tiles of map and large enough to...
int Rast3d_compute_clipped_tile_dimensions(RASTER3D_Map *, int, int *, int *, int *, int *, int *, int *)
Computes the dimensions of the tile when clipped to fit the region of map. The clipped dimensions are...
int Rast3d_key_get_double(struct Key_Value *, const char *, double *)
int Rast3d_cache_lock_all(RASTER3D_cache *)
int Rast3d_read_tile_float(RASTER3D_Map *, int, void *)
Is equivalent to Rast3d_read_tile (map, tileIndex, tile, FCELL_TYPE).
void Rast3d_error(const char *,...) __attribute__((format(printf
int Rast3d_get_cache_size(void)
get cache size
int Rast3d_get_standard3d_params(int *, int *, int *, int *, int *, int *, int *, int *, int *, int *)
int Rast3d_write_tile_double(RASTER3D_Map *, int, const void *)
Is equivalent to Rast3d_write_tile (map, tileIndex, tile, DCELL_TYPE).
int Rast3d_fpcompress_read_xdr_nums(int, char *, int, int, int, char *, int)
double Rast3d_get_double(RASTER3D_Map *, int, int, int)
Is equivalent to Rast3d_get_value (map, x, y, z, &value, DCELL_TYPE); return value.
void Rast3d_set_compression_mode(int, int)
set compression mode
int Rast3d_write_tile(RASTER3D_Map *, int, const void *, int)
Writes tile with index tileIndex to the file corresponding to map. It is assumed that the cells in ti...
void Rast3d_set_window(RASTER3D_Region *)
Sets the default window used for every map opened later in the program. Can be used multiple times in...
void Rast3d_copy_double2Float(const double *, int, float *, int, int)
void Rast3d_fpcompress_print_binary(char *, int)
void Rast3d_incorporate2d_region(struct Cell_head *, RASTER3D_Region *)
Replaces the 2d portion of region3d with the values stored in region2d.
int Rast3d_read_ints(int, int, int *, int)
int Rast3d_mask_reopen(int)
This function should be used to adjust the cache size used for the 3d-mask. First the open 3d-mask is...
int Rast3d_key_set_double(struct Key_Value *, const char *, const double *)
int Rast3d_flush_tiles_in_cube(RASTER3D_Map *, int, int, int, int, int, int)
Writes those tiles for which every cell has coordinate contained in the axis-parallel cube defined by...
int Rast3d_cache_hash_name2index(Rast3d_cache_hash *, int)
int Rast3d_long_encode(long *, unsigned char *, int)
int Rast3d_key_get_value(struct Key_Value *, const char *, char *, char *, int, int, int *)
void Rast3d_set_cache_size(int)
set cache size
int Rast3d_is_xdr_null_float(const float *)
int Rast3d__remove_tile(RASTER3D_Map *, int)
void Rast3d_set_xdr_null_float(float *)
void Rast3d_get_window(RASTER3D_Region *)
Stores the current default window in window.
void Rast3d_fatal_error(const char *,...) __attribute__((format(printf
int Rast3d_close(RASTER3D_Map *)
Close 3D raster map files.
int Rast3d_cache_remove_all(RASTER3D_cache *)
int Rast3d_init_copy_to_xdr(RASTER3D_Map *, int)
void Rast3d_location2coord2(RASTER3D_Region *, double, double, double, int *, int *, int *)
Converts region-coordinates (north, east, top) into cell-coordinates (x, y, z). This function calls R...
int Rast3d_remove_color(const char *)
Removes the primary and/or secondary color file.
float Rast3d_get_float(RASTER3D_Map *, int, int, int)
Is equivalent to Rast3d_get_value (map, x, y, z, &value, FCELL_TYPE); return value.
void Rast3d_rle_decode(char *, char *, int, int, int *, int *)
int Rast3d_is_masked(RASTER3D_Map *, int, int, int)
Returns 1 if the cell with cell-coordinates (x, y, z) is masked out. Returns 0 otherwise.
void Rast3d_coord2tile_index(RASTER3D_Map *, int, int, int, int *, int *)
Converts cell-coordinates (x, y, z) into tileIndex and the offset of the cell within the tile.
void Rast3d_coord2location(RASTER3D_Region *, double, double, double, double *, double *, double *)
Converts cell-coordinates (x, y, z) into region-coordinates (north, east, top).
int Rast3d_cache_get_elt(RASTER3D_cache *, int, void *)
void Rast3d_range_min_max(RASTER3D_Map *, double *, double *)
Returns in min and max the minimum and maximum values of the range.
void Rast3d_fpcompress_dissect_xdr_double(unsigned char *)
void * Rast3d_cache_elt_ptr(RASTER3D_cache *, int)
double Rast3d_get_double_region(RASTER3D_Map *, int, int, int)
Is equivalent to Rast3d_get_value_region (map, x, y, z, &value, DCELL_TYPE); return value.
int Rast3d_fpcompress_write_xdr_nums(int, char *, int, int, char *, int)
int Rast3d_init_cache(RASTER3D_Map *, int)
void * Rast3d_malloc(int)
Same as malloc (nBytes), except that in case of error Rast3d_error() is invoked.
void Rast3d_set_window_map(RASTER3D_Map *, RASTER3D_Region *)
Sets the window for map to window. Can be used multiple times for the same map.
int Rast3d_mask_is_on(RASTER3D_Map *)
Returns 1 if the mask for map is turned on. Returns 0 otherwise.
int Rast3d_flush_tile_cube(RASTER3D_Map *, int, int, int, int, int, int)
Writes the tiles with tile-coordinates contained in the axis-parallel cube with vertices (xMin,...
int write_fn(int, const void *, void *)
int read_fn(int, void *, void *)
2D/3D raster map header (used also for region)
Raster history info (metadata)