GRASS Programmer's Manual  6.4.4(2014)-r
g3drange.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <rpc/types.h>
#include <rpc/xdr.h>
#include <grass/gis.h>
#include "G3d_intern.h"
Include dependency graph for g3drange.c:

Go to the source code of this file.

Functions

void G3d_range_updateFromTile (G3D_Map *map, const void *tile, int rows, int cols, int depths, int xRedundant, int yRedundant, int zRedundant, int nofNum, int type)
 
int G3d_readRange (const char *name, const char *mapset, struct FPRange *drange)
 
int G3d_range_load (G3D_Map *map)
 Loads the range into the range structure of map. More...
 
void G3d_range_min_max (G3D_Map *map, double *min, double *max)
 Returns in min and max the minimum and maximum values of the range. More...
 
int G3d_range_write (G3D_Map *map)
 Writes the range which is stored in the range structure of map. (This function is invoked automatically when a new file is closed). More...
 
int G3d_range_init (G3D_Map *map)
 

Function Documentation

int G3d_range_init ( G3D_Map *  map)

Definition at line 235 of file g3drange.c.

References G_init_fp_range().

Referenced by G3d_openCellNew(), and G3d_openCellOldNoHeader().

int G3d_range_load ( G3D_Map *  map)

Loads the range into the range structure of map.

Parameters
map
Returns
1 ... if successful 0 ... otherwise.

Definition at line 123 of file g3drange.c.

References G3d_readRange(), and G3D_WRITE_DATA.

Referenced by open_g3d_file().

void G3d_range_min_max ( G3D_Map *  map,
double *  min,
double *  max 
)

Returns in min and max the minimum and maximum values of the range.

Parameters
map
min
max
Returns
void

Definition at line 149 of file g3drange.c.

References G_get_fp_range_min_max().

Referenced by G3d_printHeader(), and open_g3d_file().

void G3d_range_updateFromTile ( G3D_Map *  map,
const void *  tile,
int  rows,
int  cols,
int  depths,
int  xRedundant,
int  yRedundant,
int  zRedundant,
int  nofNum,
int  type 
)
int G3d_range_write ( G3D_Map *  map)

Writes the range which is stored in the range structure of map. (This function is invoked automatically when a new file is closed).

Parameters
map
Returns
1 ... if successful 0 ... otherwise.

Definition at line 218 of file g3drange.c.

References G3d_error(), and G3d_filename().

int G3d_readRange ( const char *  name,
const char *  mapset,
struct FPRange *  drange 
)