GRASS
Class libvect
java.lang.Object
|
+--GRASS.libvect
- public class libvect
- extends java.lang.Object
This class is intended to wrap functionality in Vector library of GRASS.
- See Also:
libgis
|
Constructor Summary |
libvect(libgis lg)
Intializes this object by saving pointer to GRASS library object. |
|
Method Summary |
Mapinfo |
Vect_open_new(java.lang.String name)
Opens the vector map name in the current mapset for writing. |
Mapinfo |
Vect_open_old(java.lang.String name,
java.lang.String mapset)
Opens the vector map name in mapset for reading. |
void |
Vect_set_open_level(int level)
Allows you to specify at which level the map is to be opened. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
libvect
public libvect(libgis lg)
- Intializes this object by saving pointer to GRASS library object.
Loads libvect.so. libvect.so must be somewhere on LD_LIBRARY_PATH.
- Parameters:
lg - Previously initialized GRASS library- See Also:
libgis
Vect_open_old
public Mapinfo Vect_open_old(java.lang.String name,
java.lang.String mapset)
throws GRASSException
- Opens the vector map name in mapset for reading.
Wraps GRASS library routine:
Vect_open_old (Map, name, mapset)
struct Map_info *Map;
char *name, *mapset;
See the GRASS 4.2 Programmer's Manual,
Section 13.3. Opening and closing vector maps
- Parameters:
name - existing map namemapset - mapset name where the map resides- Throws:
- GRASSException - if an error was returned by the GRASS routine
Vect_open_new
public Mapinfo Vect_open_new(java.lang.String name)
throws GRASSException
- Opens the vector map name in the current mapset for writing.
Wraps GRASS library routine:
Vect_open_new (Map, name)
struct Map_info *Map;
char *name;
See the GRASS 4.2 Programmer's Manual,
Section 13.3. Opening and closing vector maps
- Parameters:
name - new map name- Throws:
- GRASSException - if an error was returned by the GRASS routine
Vect_set_open_level
public void Vect_set_open_level(int level)
- Allows you to specify at which level the map is to be opened.
It is recommended that it only be used to force opening at level one(1).
Wraps GRASS library routine:
Vect_set_open_level (level)
int level;
See the GRASS 4.2 Programmer's Manual,
Section 13.3. Opening and closing vector maps
- Parameters:
level - level to set
GRASS-JNI Home Page