|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--GRASS.Mapinfo
Wraps GRASS library struc Map_info which is used to access vector files in GRASS database. This class does not have any public constructors. Use methods in libvect to create objects of this class.
libvect| Method Summary | |
long |
getOffset()
Inquiries file offset. |
java.lang.String |
toString()
Returns a string representation of the object. |
int |
V2_area_att(int area)
Retrieves area's attribute number. |
int |
V2_line_att(int line)
Retrieves line's attribute number. |
int |
V2_num_areas()
Returns total number of areas in the vector Map. |
int |
V2_num_lines()
Returns total number of lines in the vector Map. |
linepnts |
V2_read_line(int line)
This routine will read a line from the vector map at the specified line index in the map. |
void |
Vect_close()
This routine closes an open vector map and cleans up the structures associated with it. |
linepnts |
Vect_get_area_points(int area)
Creates a new linepnts structure with the list of points which describe an area in clockwise order. |
int |
Vect_level()
Returns the number of the level at which a Map is opened at or -1 if Map is not opened. |
linepnts |
Vect_read_next_line()
This is the primary routine for reading through a vector map. |
void |
Vect_remove_constraints()
Removes all constraints currently affecting this object. |
void |
Vect_rewind()
Resets the read pointer to the beginning of the map. |
void |
Vect_set_constraint_region(double n,
double s,
double e,
double w)
This method is broken! I will fix it in GRASS-JNI release for GRASS 5. This routine will set a restriction on reading only those lines which fall entirely or partially in the specified rectangular region. |
void |
Vect_set_constraint_type(int type)
This routine will set a restriction on reading only those lines which match the types specified. |
long |
Vect_write_line(int type,
linepnts points)
This method will write out a line. |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Method Detail |
public long getOffset()
public int Vect_level()
Vect_level (Map) struct Map_info *Map;See the GRASS 4.2 Programmer's Manual, Section 13.7. Miscellaneous (Vector Library)
public linepnts Vect_read_next_line()
throws GRASSException
Vect_read_next_line (Map, Points)
struct Map_info *Map;
struct line_pnts *Points;
See the GRASS 4.2 Programmer's Manual,
Section 13.4. Reading and writing vector maps
public int V2_num_lines()
throws GRASSException
V2_num_lines (Map)
struct Map_info *Map;
See the GRASS 4.2 Programmer's Manual,
Section 13.7. Miscellaneous (Reading and writing vector maps)
public int V2_num_areas()
throws GRASSException
V2_num_areas (Map)
struct Map_info *Map;
See the GRASS 4.2 Programmer's Manual,
Section 13.7. Miscellaneous (Reading and writing vector maps)
public linepnts Vect_get_area_points(int area)
throws GRASSException
Vect_get_area_points (Map, area, Points)
struct Map_info *Map;
int area;
struct line_pnts *Points;
See the GRASS 4.2 Programmer's Manual,
Section 13.7. Miscellaneous (Reading and writing vector maps)int - area number in interval 1..V2_num_areas()
public linepnts V2_read_line(int line)
throws GRASSException
V2_read_line (Map, Points, line)
struct Map_info *Map;
struct line_pnts *Points;
int line;
See the GRASS 4.2 Programmer's Manual,
Section 13.4. Reading and writing vector mapsint - area number in interval 1..V2_num_lines()public int V2_line_att(int line)
V2_line_att (Map, line)
struct Map_info *Map;
int line;
See the GRASS 4.2 Programmer's Manual,
Section 13.7. Miscellaneous (Reading and writing vector maps)int - area number in interval 1..V2_num_lines()public int V2_area_att(int area)
V2_area_att (Map, line)
struct Map_info *Map;
int area;
See the GRASS 4.2 Programmer's Manual,
Section 13.7. Miscellaneous (Reading and writing vector maps)int - area number in interval 1..V2_num_areas()public void Vect_rewind()
Vect_rewind (Map)
struct Map_info *Map;
See the GRASS 4.2 Programmer's Manual,
Section 13.4. Reading and writing vector maps
public void Vect_set_constraint_region(double n,
double s,
double e,
double w)
Vect_set_constraint_region (Map, n, s, e, w)
struct Map_info *Map;
double n, s, e, w;
See the GRASS 4.2 Programmer's Manual,
Section 13.4. Reading and writing vector mapsn - coordinate of the northern edges - coordinate of the southern edgee - coordinate of the eastern edgew - coordinate of the western edgepublic void Vect_set_constraint_type(int type)
Vect_set_constraint_type (Map, type)
struct Map_info *Map;
int type;
See the GRASS 4.2 Programmer's Manual,
Section 13.4. Reading and writing vector mapstype - constraints type (see linepnts for type values)linepntspublic void Vect_remove_constraints()
Vect_remove_constraints (Map)
struct Map_info *Map;
See the GRASS 4.2 Programmer's Manual,
Section 13.4. Reading and writing vector maps
public long Vect_write_line(int type,
linepnts points)
throws GRASSException
long
Vect_write_line (Map, type, Points)
struct Map_info *Map;
int type;
struct line_pnts *Points;
See the GRASS 4.2 Programmer's Manual,
Section 13.4. Reading and writing vector mapstype - constraints type (see linepnts for type values)points - object with feature geometrypublic void Vect_close()
Vect_close (Map)
struct Map_info *Map;
See the GRASS 4.2 Programmer's Manual,
Section 13.4. Reading and writing vector mapspublic java.lang.String toString()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||