|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--GRASS.Range
This class wraps GRASS library struct Range. See the GRASS 4.2 Programmer's Manual, Section 12.20.5 struct Range
libgis| Constructor Summary | |
Range()
Constructs an empty object and allocates memory for GRASS struct Range. |
|
Range(java.lang.String name,
java.lang.String mapset)
Reads and creates range object for the raster file in the specified mapset. |
|
| Method Summary | |
void |
G_init_range()
Initializes the range structure for updates. |
void |
G_row_update_range(CELL buf,
int n)
This routine updates the range data just like G_update_range, but for values from the row of cell values. |
void |
G_update_range(int cat)
Compares the cat value with the minimum and maximum values in the range structure, modifying the range if cat extends the range. |
void |
G_write_range(java.lang.String name)
Writes the range information for the raster file name in the current mapset from the range structure. |
int |
max()
Extracts the maximum value from the range structure. |
int |
min()
Extracts the minimum value from the range structure. |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public Range()
public Range(java.lang.String name,
java.lang.String mapset)
throws GRASSException
G_read_range (name, mapset, range) char *name; char *mapset; struct Range *range;See the GRASS 4.2 Programmer's Manual, Section 12.10.5 Raster Range File
name - GRASS raster file namemapset - Name of mapset where raster file should reside| Method Detail |
public void G_write_range(java.lang.String name)
throws GRASSException
G_write_range (name, range) write raster range file
char *name;
struct Range *range;
See the GRASS 4.2 Programmer's Manual,
Section 12.10.5 Raster Range Filename - GRASS raster file namepublic void G_init_range()
G_init_range (range)
struct Range *range;
See the GRASS 4.2 Programmer's Manual,
Section 12.10.5 Raster Range Filepublic void G_update_range(int cat)
G_update_range (cat, range)
CELL cat;
struct Range *range;
See the GRASS 4.2 Programmer's Manual,
Section 12.10.5 Raster Range Filecat - category value
public void G_row_update_range(CELL buf,
int n)
G_row_update_range (cell, n, range)
CELL *cell;
int n;
struct Range *range;
See the GRASS 4.2 Programmer's Manual,
Section 12.10.5 Raster Range Filebuf - buffer of cell valuesn - number of values to be used for updatepublic int min()
G_get_range_min_max (range, min, max)
struct Range *range;
See the GRASS 4.2 Programmer's Manual,
Section 12.10.5 Raster Range Filepublic int max()
G_get_range_min_max (range, min, max)
struct Range *range;
See the GRASS 4.2 Programmer's Manual,
Section 12.10.5 Raster Range Filepublic java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||