GRASS
Class libfun
java.lang.Object
|
+--GRASS.libfun
- public class libfun
- extends java.lang.Object
Class that provides methods to imitate behaviour of some of GRASS commands.
It is recommended to avoid ever using this class.
- See Also:
libgis
|
Field Summary |
static int |
TYPE_RAST
Type of GRASS file raster. |
static int |
TYPE_SITES
Type of GRASS file sites. |
static int |
TYPE_VECT
Type of GRASS file vector. |
|
Constructor Summary |
libfun(libgis lg)
Intializes this object by saving pointer to GRASS library object. |
|
Method Summary |
java.util.Enumeration |
g_list(int type)
Attempts to emulate behaviour of g.list command in a way that its
output can be useful in Java applications. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TYPE_RAST
public static final int TYPE_RAST
- Type of GRASS file raster.
TYPE_VECT
public static final int TYPE_VECT
- Type of GRASS file vector.
TYPE_SITES
public static final int TYPE_SITES
- Type of GRASS file sites.
libfun
public libfun(libgis lg)
- Intializes this object by saving pointer to GRASS library object.
- Parameters:
lg - Previously initialized GRASS library- See Also:
libgis
g_list
public java.util.Enumeration g_list(int type)
throws GRASSException
- Attempts to emulate behaviour of g.list command in a way that its
output can be useful in Java applications. Mostly intended for providing
list of file names for user interface elements. This method directly
checks content of directories under GRASS database locations with
respect to mapset search path. There is no certainty that algorithm
used provides correct results.
- Parameters:
type - types of GRASS files to list (rasters, vectors, sites)- Returns:
- Enumeration of unique names of GRASS files
- Throws:
- GRASSException - Exception with an appropriate error message
is thrown in case (1) of unpredictable situation and (2)
I/O problem
GRASS-JNI Home Page