GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
Vector map info. More...
#include <dig_structs.h>
Data Fields | |
int | format |
Map format (native, ogr, postgis) More... | |
int | temporary |
Temporary map flag. More... | |
struct dblinks * | dblnk |
Array of DB links. More... | |
struct Plus_head | plus |
Plus info (topology, version, ...) More... | |
int | open |
Open indicator. More... | |
int | mode |
int | level |
Topology level. More... | |
int | head_only |
Open only header. More... | |
int | support_updated |
Support files were updated. More... | |
char * | name |
Map name (for 4.0) More... | |
char * | mapset |
Mapset name. More... | |
char * | location |
Location name. More... | |
char * | gisdbase |
GISDBASE path. More... | |
plus_t | next_line |
Feature id for sequential access. More... | |
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. More... | |
int | proj |
??? More... | |
FILE * | hist_fp |
History file. More... | |
struct Graph_info | dgraph |
Graph info (built for network analysis) More... | |
struct dig_head | head |
Header info. More... | |
struct gvfile | dig_fp |
GV file pointer (native format only) More... | |
struct Format_info | fInfo |
Format info for non-native formats. More... | |
struct site_att * | site_att |
Array of attributes loaded from db. More... | |
int | n_site_att |
Number of attributes in site_att array. More... | |
int | n_site_dbl |
Number of double attributes for one site. More... | |
int | n_site_str |
Number of string attributes for one site. More... | |
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 1243 of file dig_structs.h.
struct bound_box Map_info::box |
Region (bbox) constraint.
Definition at line 1347 of file dig_structs.h.
Referenced by Vect_get_constraint_box().
struct { ... } Map_info::constraint |
Constraints for sequential feature access.
Referenced by V1_read_next_line_nat(), Vect_get_constraint_box(), Vect_remove_constraints(), and Vect_set_constraint_field().
struct dblinks* Map_info::dblnk |
Array of DB links.
Definition at line 1265 of file dig_structs.h.
Referenced by Vect_get_dblink(), Vect_get_field(), Vect_get_field_by_name(), Vect_get_num_dblinks(), Vect_map_check_dblink(), Vect_map_del_dblink(), Vect_read_dblinks(), and Vect_write_dblinks().
struct Graph_info Map_info::dgraph |
Graph info (built for network analysis)
Definition at line 1378 of file dig_structs.h.
Referenced by Vect_net_get_graph(), and Vect_net_get_node_cost().
struct gvfile Map_info::dig_fp |
GV file pointer (native format only)
Definition at line 1378 of file dig_structs.h.
Referenced by dig__read_head(), dig__write_head(), V1_close_nat(), V1_delete_line_nat(), V1_open_new_nat(), V1_open_old_nat(), V1_read_next_line_nat(), V1_rewind_nat(), and Vect_coor_info().
int Map_info::field |
Field number constraint (see line_cats structure)
Definition at line 1367 of file dig_structs.h.
Referenced by Vect_set_constraint_field().
int Map_info::field_flag |
Non-zero value to enable field constraint.
Definition at line 1363 of file dig_structs.h.
Referenced by Vect_remove_constraints(), and Vect_set_constraint_field().
struct Format_info Map_info::fInfo |
Format info for non-native formats.
Definition at line 1378 of file dig_structs.h.
Referenced by V1_close_ogr(), V1_delete_line_ogr(), V1_open_new_ogr(), V1_open_old_ogr(), V1_rewind_ogr(), V1_rewind_pg(), V2__update_area_pg(), V2__write_node_pg(), V2_close_ogr(), V2_open_old_ogr(), Vect__get_area_points(), Vect__get_area_points_pg(), Vect__insert_face_pg(), Vect__load_map_lines_pg(), Vect__load_map_nodes_pg(), Vect__load_plus_head(), Vect_build_ogr(), Vect_build_partial(), Vect_close(), Vect_fidx_dump(), Vect_get_finfo(), Vect_get_finfo_dsn_name(), Vect_get_finfo_format_info(), Vect_get_finfo_geometry_type(), Vect_get_finfo_layer_name(), Vect_get_finfo_topology_info(), Vect_get_full_name(), Vect_get_isle_points(), Vect_maptype(), Vect_save_frmt(), and Vect_sfa_get_num_features().
int Map_info::format |
Map format (native, ogr, postgis)
Definition at line 1255 of file dig_structs.h.
Referenced by V1_close_ogr(), V2__write_area_sfa(), Vect__build_sfa(), Vect__get_area_points(), Vect_build_partial(), Vect_close(), Vect_coor_info(), Vect_fidx_dump(), Vect_get_finfo_dsn_name(), Vect_get_finfo_format_info(), Vect_get_finfo_geometry_type(), Vect_get_finfo_layer_name(), Vect_get_finfo_topology_info(), Vect_get_full_name(), Vect_get_isle_points(), Vect_maptype(), Vect_maptype_info(), Vect_open_fidx(), Vect_read_dblinks(), Vect_remove_small_areas(), Vect_save_frmt(), Vect_set_constraint_field(), Vect_sfa_get_num_features(), and Vect_write_dblinks().
char* Map_info::gisdbase |
GISDBASE path.
Definition at line 1331 of file dig_structs.h.
struct dig_head Map_info::head |
Header info.
Definition at line 1378 of file dig_structs.h.
Referenced by dig__read_head(), dig__write_head(), V1_close_nat(), V1_delete_line_nat(), V1_open_new_nat(), V1_open_old_nat(), V1_open_old_ogr(), V1_rewind_nat(), Vect__init_head(), Vect_build_partial(), Vect_get_comment(), Vect_get_date(), Vect_get_map_date(), Vect_get_map_name(), Vect_get_organization(), Vect_get_person(), Vect_get_proj(), Vect_get_scale(), Vect_get_thresh(), Vect_is_3d(), Vect_set_comment(), Vect_set_date(), Vect_set_map_date(), Vect_set_map_name(), Vect_set_organization(), Vect_set_person(), Vect_set_proj(), Vect_set_thresh(), and Vect_set_zone().
int Map_info::head_only |
Open only header.
Non-zero code to open only header of vector map
Definition at line 1304 of file dig_structs.h.
FILE* Map_info::hist_fp |
History file.
Definition at line 1378 of file dig_structs.h.
Referenced by Vect_hist_copy(), Vect_hist_rewind(), and Vect_hist_write().
int Map_info::level |
Topology level.
Definition at line 1297 of file dig_structs.h.
Referenced by Vect__open_old(), Vect_build_partial(), Vect_build_sidx(), Vect_close(), Vect_level(), and Vect_rewind().
char* Map_info::location |
Location name.
Note: location and gisdbase is useful if changed (v.proj or external apps)
Definition at line 1327 of file dig_structs.h.
char* Map_info::mapset |
Mapset name.
Definition at line 1320 of file dig_structs.h.
Referenced by V1_close_nat(), V1_close_ogr(), V1_open_old_nat(), V2_close_ogr(), V2_open_old_ogr(), Vect__get_element_path(), Vect__read_head(), Vect_cidx_open(), Vect_close(), Vect_copy(), Vect_get_full_name(), Vect_get_mapset(), Vect_open_fidx(), Vect_open_old(), Vect_open_old2(), Vect_open_old_head(), Vect_open_old_head2(), Vect_open_tmp_old(), Vect_open_tmp_update(), Vect_open_topo(), Vect_open_update(), Vect_open_update2(), Vect_open_update_head(), Vect_read_dblinks(), Vect_save_fidx(), Vect_set_db_updated(), and Vect_write_dblinks().
int Map_info::mode |
Definition at line 1288 of file dig_structs.h.
Referenced by V1_close_nat(), and V1_close_ogr().
int Map_info::n_site_att |
Number of attributes in site_att array.
Definition at line 1415 of file dig_structs.h.
int Map_info::n_site_dbl |
Number of double attributes for one site.
Definition at line 1421 of file dig_structs.h.
int Map_info::n_site_str |
Number of string attributes for one site.
Definition at line 1427 of file dig_structs.h.
char* Map_info::name |
Map name (for 4.0)
Definition at line 1316 of file dig_structs.h.
Referenced by dig__read_head(), V1_close_nat(), V1_close_ogr(), V1_open_old_nat(), V1_rewind_ogr(), V1_rewind_pg(), V2_close_ogr(), V2_open_old_ogr(), V2_rewind_ogr(), V2_rewind_pg(), Vect__get_path(), Vect__read_head(), Vect_cidx_open(), Vect_close(), Vect_get_full_name(), Vect_get_name(), Vect_open_fidx(), Vect_open_topo(), Vect_read_dblinks(), Vect_rewind(), Vect_save_fidx(), Vect_save_frmt(), Vect_save_topo(), Vect_set_updated(), and Vect_write_dblinks().
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 1338 of file dig_structs.h.
Referenced by V2_rewind_nat(), V2_rewind_ogr(), V2_rewind_pg(), Vect_get_next_line_id(), and Vect_read_next_line().
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 1280 of file dig_structs.h.
Referenced by Vect_coor_info(), and Vect_level().
struct Plus_head Map_info::plus |
Plus info (topology, version, ...)
Definition at line 1265 of file dig_structs.h.
Referenced by Vect__build_sfa(), Vect__init_head(), Vect__load_map_lines_pg(), Vect__load_map_nodes_pg(), Vect__load_plus_head(), Vect_area_alive(), Vect_attach_isle(), Vect_attach_isles(), Vect_build_line_area(), Vect_build_ogr(), Vect_build_partial(), Vect_build_sidx(), Vect_cidx_open(), Vect_close(), Vect_find_area(), Vect_get_area_box(), Vect_get_area_centroid(), Vect_get_area_isle(), Vect_get_area_num_isles(), Vect_get_area_points(), Vect_get_area_points_geos(), Vect_get_built(), Vect_get_isle_area(), Vect_get_isle_box(), Vect_get_isle_points(), Vect_get_isle_points_geos(), Vect_get_map_box(), Vect_get_node_coor(), Vect_get_num_areas(), Vect_get_num_faces(), Vect_get_num_holes(), Vect_get_num_islands(), Vect_get_num_kernels(), Vect_get_num_lines(), Vect_get_num_nodes(), Vect_get_num_updated_lines(), Vect_get_num_updated_nodes(), Vect_get_num_volumes(), Vect_get_updated_line(), Vect_get_updated_line_offset(), Vect_get_updated_node(), Vect_isle_alive(), Vect_node_alive(), Vect_open_topo(), Vect_save_fidx(), Vect_save_sidx(), Vect_save_topo(), Vect_select_isles_by_box(), Vect_select_nodes_by_box(), Vect_set_category_index_update(), Vect_set_release_support(), and Vect_sidx_dump().
int Map_info::proj |
???
Definition at line 1373 of file dig_structs.h.
int Map_info::region_flag |
Non-zero value to enable region constraint.
Definition at line 1347 of file dig_structs.h.
Referenced by V1_read_next_line_nat(), Vect_get_constraint_box(), and Vect_remove_constraints().
struct site_att* Map_info::site_att |
Array of attributes loaded from db.
Definition at line 1409 of file dig_structs.h.
int Map_info::support_updated |
Support files were updated.
Non-zero code to indicate that supoort file were updated
Definition at line 1311 of file dig_structs.h.
Referenced by Vect_build_partial(), Vect_close(), and Vect_save_fidx().
int Map_info::temporary |
Temporary map flag.
Definition at line 1260 of file dig_structs.h.
Referenced by V1_close_nat(), V1_open_new_nat(), Vect__get_element_path(), Vect__get_path(), Vect_build_partial(), Vect_close(), and Vect_maptype().
int Map_info::type |
Feature type constraint.
Definition at line 1359 of file dig_structs.h.
int Map_info::type_flag |
Non-zero value to enable feature type constraint.
Definition at line 1355 of file dig_structs.h.
Referenced by Vect_remove_constraints().