|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
Vector map info. More...
#include <dig_structs.h>

Data Fields | ||
| int | format | |
| Map format (native, ogr, postgis) | ||
| int | temporary | |
| Temporary map flag. | ||
| struct dblinks * | dblnk | |
| Array of DB links. | ||
| struct Plus_head | plus | |
| Plus info (topology, version, ...) | ||
| int | open | |
| Open indicator. | ||
| int | mode | |
| int | level | |
| Topology level. | ||
| int | head_only | |
| Open only header. | ||
| int | support_updated | |
| Support files were updated. | ||
| char * | name | |
| Map name (for 4.0) | ||
| char * | mapset | |
| Mapset name. | ||
| char * | location | |
| Location name. | ||
| char * | gisdbase | |
| GISDBASE path. | ||
| plus_t | next_line | |
| Feature id for sequential access. | ||
| struct { | ||
| int region_flag | ||
| Non-zero value to enable region constraint. More... | ||
| struct bound_box box | ||
| Region (bbox) constraint. More... | ||
| int type_flag | ||
| Non-zero value to enable feature type constraint. More... | ||
| int type | ||
| Feature type constraint. More... | ||
| int field_flag | ||
| Non-zero value to enable field constraint. More... | ||
| int field | ||
| Field number constraint (see line_cats structure) More... | ||
| } | constraint | |
| Constraints for sequential feature access. | ||
| int | proj | |
| ??? | ||
| FILE * | hist_fp | |
| History file. | ||
| struct Graph_info | dgraph | |
| Graph info (built for network analysis) | ||
| struct dig_head | head | |
| Header info. | ||
| struct gvfile | dig_fp | |
| GV file pointer (native format only) | ||
| struct Format_info | fInfo | |
| Format info for non-native formats. | ||
| struct site_att * | site_att | |
| Array of attributes loaded from db. | ||
| int | n_site_att | |
| Number of attributes in site_att array. | ||
| int | n_site_dbl | |
| Number of double attributes for one site. | ||
| int | n_site_str | |
| Number of string attributes for one site. | ||
Vector map info.
Maintains all information about an individual open vector map. The structure must be passed to the most vector library routines.
Definition at line 1231 of file dig_structs.h.
Region (bbox) constraint.
Definition at line 1339 of file dig_structs.h.
| struct { ... } Map_info::constraint |
Constraints for sequential feature access.
| struct Graph_info Map_info::dgraph |
Graph info (built for network analysis)
Definition at line 1371 of file dig_structs.h.
Referenced by NetA_get_node_costs().
GV file pointer (native format only)
Definition at line 1383 of file dig_structs.h.
| int Map_info::field |
Field number constraint (see line_cats structure)
Definition at line 1355 of file dig_structs.h.
| int Map_info::field_flag |
Non-zero value to enable field constraint.
Definition at line 1351 of file dig_structs.h.
| struct Format_info Map_info::fInfo |
Format info for non-native formats.
Definition at line 1388 of file dig_structs.h.
Referenced by Vect_copy_map_lines_field().
| int Map_info::format |
Map format (native, ogr, postgis)
Definition at line 1243 of file dig_structs.h.
Referenced by Vect__open_old(), Vect_copy(), and Vect_copy_map_lines_field().
| char* Map_info::gisdbase |
GISDBASE path.
Definition at line 1319 of file dig_structs.h.
| int Map_info::head_only |
Open only header.
Non-zero code to open only header of vector map
Definition at line 1292 of file dig_structs.h.
Referenced by Vect__open_old().
| FILE* Map_info::hist_fp |
| int Map_info::level |
Topology level.
Definition at line 1285 of file dig_structs.h.
Referenced by Vect__open_old(), and Vect_set_open_level().
| char* Map_info::location |
Location name.
Note: location and gisdbase is useful if changed (v.proj or external apps)
Definition at line 1315 of file dig_structs.h.
| char* Map_info::mapset |
Mapset name.
Definition at line 1308 of file dig_structs.h.
Referenced by Vect__open_old(), Vect_copy(), Vect_open_old(), Vect_open_old2(), Vect_open_old_head(), Vect_open_old_head2(), Vect_open_tmp_old(), Vect_open_tmp_update(), Vect_open_update(), Vect_open_update2(), and Vect_open_update_head().
| int Map_info::mode |
Definition at line 1276 of file dig_structs.h.
| int Map_info::n_site_att |
Number of attributes in site_att array.
Definition at line 1403 of file dig_structs.h.
| int Map_info::n_site_dbl |
Number of double attributes for one site.
Definition at line 1409 of file dig_structs.h.
| int Map_info::n_site_str |
Number of string attributes for one site.
Definition at line 1415 of file dig_structs.h.
| char* Map_info::name |
Map name (for 4.0)
Definition at line 1304 of file dig_structs.h.
Referenced by Vect_copy_table_by_cats().
| plus_t Map_info::next_line |
Feature id for sequential access.
Note: Line id starts with 1 - see Vect_read_next_line()
Definition at line 1326 of file dig_structs.h.
| int Map_info::open |
Open indicator.
Should be 0x5522AA22 (VECT_OPEN_CODE) if opened correctly or 0x22AA2255 (VECT_CLOSED_CODE) if closed
Anything else implies that structure has never been initialized
Definition at line 1268 of file dig_structs.h.
Plus info (topology, version, ...)
Definition at line 1258 of file dig_structs.h.
| int Map_info::proj |
???
Definition at line 1361 of file dig_structs.h.
| int Map_info::region_flag |
Non-zero value to enable region constraint.
Definition at line 1335 of file dig_structs.h.
Array of attributes loaded from db.
Definition at line 1397 of file dig_structs.h.
| int Map_info::support_updated |
Support files were updated.
Non-zero code to indicate that support files were updated
Definition at line 1299 of file dig_structs.h.
| int Map_info::temporary |
Temporary map flag.
Definition at line 1248 of file dig_structs.h.
| int Map_info::type |
Feature type constraint.
Definition at line 1347 of file dig_structs.h.
Referenced by Vect_rename(), Vect_rewrite_line(), and Vect_write_line().
| int Map_info::type_flag |
Non-zero value to enable feature type constraint.
Definition at line 1343 of file dig_structs.h.