GRASS
Class FD

java.lang.Object
  |
  +--GRASS.FD

public class FD
extends java.lang.Object

Wraps file descriptors if ones are used to access GRASS cell files. This class does not have any public constructors. Use methods in libgis to create objects of this class.

See Also:
libgis

Method Summary
 void G_close_cell()
          Closes previously opened raster file.
 void G_get_map_row_nomask(CELL buf, int row)
          Reads the specified row from the raster into the cell buffer while masking is suppressed.
 void G_get_map_row(CELL buf, int row)
          Reads the specified row from the raster into the cell buffer.
 void G_put_map_row_random(CELL buf, int row, int col, int ncells)
           
 void G_put_map_row(CELL buf)
           
 void G_unopen_cell()
          Closes previously opened raster file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

G_get_map_row

public void G_get_map_row(CELL buf,
                          int row)
                   throws GRASSException
Reads the specified row from the raster into the cell buffer. Somewhat equivalent to GRASS library routine:
 G_get_map_row (fd, cell, row)
 int fd;
 CELL *cell;
 int row;
 
See the GRASS 4.2 Programmer's Manual, Section 12.9.6 Reading Raster files
Parameters:
buf - CELL buffer allocated with G_allocate_cell_buf()
row - row number in range 0..G_window_rows()
Throws:
GRASSException - with appropriate message if error occurred reading raster file

G_get_map_row_nomask

public void G_get_map_row_nomask(CELL buf,
                                 int row)
                          throws GRASSException
Reads the specified row from the raster into the cell buffer while masking is suppressed. Somewhat equivalent to GRASS library routine:
 G_get_map_row_nomask (fd, cell, row)
 int fd;
 CELL *cell;
 int row;
 
See the GRASS 4.2 Programmer's Manual, Section 12.9.6 Reading Raster files
Parameters:
buf - cell buffer allocated with G_allocate_cell_buf()
row - row number in range 0..G_window_rows()
Throws:
GRASSException - with appropriate message if error while reading raster file occurred

G_put_map_row

public void G_put_map_row(CELL buf)
                   throws GRASSException

G_put_map_row_random

public void G_put_map_row_random(CELL buf,
                                 int row,
                                 int col,
                                 int ncells)
                          throws GRASSException

G_close_cell

public void G_close_cell()
Closes previously opened raster file. Somewhat equivalent to GRASS library routine:
 G_close_cell (fd)
           int fd;
 
See the GRASS 4.2 Programmer's Manual, Section 12.9.8 Closing Raster Files

G_unopen_cell

public void G_unopen_cell()
Closes previously opened raster file. If open for writing, the raster file is not created and the temporary file created when the raster file was opened is removed. Somewhat equivalent to GRASS library routine:
 G_unopen_cell (fd)
           int fd;
 
See the GRASS 4.2 Programmer's Manual, Section 12.9.8 Closing Raster Files


GRASS-JNI Home Page