GRASS GIS 7 Programmer's Manual  7.5.svn(2018)-r72886
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Map_info Struct Reference

Vector map info. More...

#include <dig_structs.h>

Collaboration diagram for Map_info:

Data Fields

int format
 Map format (native, ogr, postgis) More...
 
int temporary
 Temporary map flag. More...
 
struct dblinksdblnk
 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_attsite_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...
 

Detailed Description

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 1259 of file dig_structs.h.

Field Documentation

struct bound_box Map_info::box

Region (bbox) constraint.

Definition at line 1366 of file dig_structs.h.

Referenced by V__map_overlap(), Vect_get_constraint_box(), and Vect_set_constraint_region().

struct Graph_info Map_info::dgraph
int Map_info::field

Field number constraint (see line_cats structure)

Definition at line 1382 of file dig_structs.h.

Referenced by V1_read_next_line_nat(), V2_read_next_line_nat(), and Vect_set_constraint_field().

int Map_info::field_flag

Non-zero value to enable field constraint.

Definition at line 1378 of file dig_structs.h.

Referenced by V1_read_next_line_nat(), V2_read_next_line_nat(), Vect_remove_constraints(), and Vect_set_constraint_field().

char* Map_info::gisdbase

GISDBASE path.

Definition at line 1346 of file dig_structs.h.

Referenced by Vect__open_old(), Vect_close(), and Vect_subst_var().

int Map_info::head_only

Open only header.

Non-zero code to open only header of vector map

Definition at line 1320 of file dig_structs.h.

Referenced by Vect__open_old(), and Vect_close().

FILE* Map_info::hist_fp
int Map_info::level

Topology level.

  • 1 (without topo)
  • 2 (with 2D topology)
  • 3 (with 3D topology) - not yet implemented

Definition at line 1313 of file dig_structs.h.

Referenced by Vect__open_old(), Vect_build_partial(), Vect_build_sidx(), Vect_close(), Vect_delete_line(), Vect_level(), Vect_read_next_line(), Vect_restore_line(), Vect_rewind(), Vect_rewrite_line(), and Vect_write_line().

char* Map_info::location

Location name.

Note: location and gisdbase is useful if changed (v.proj or external apps)

Definition at line 1342 of file dig_structs.h.

Referenced by Vect__open_old(), Vect_close(), and Vect_subst_var().

int Map_info::mode
int Map_info::n_site_att

Number of attributes in site_att array.

Todo:
To be removed?

Definition at line 1430 of file dig_structs.h.

int Map_info::n_site_dbl

Number of double attributes for one site.

Todo:
To be removed

Definition at line 1436 of file dig_structs.h.

int Map_info::n_site_str

Number of string attributes for one site.

Todo:
To be removed?

Definition at line 1442 of file dig_structs.h.

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 1353 of file dig_structs.h.

Referenced by V2_read_next_line_nat(), V2_read_next_line_ogr(), V2_read_next_line_pg(), 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 1296 of file dig_structs.h.

Referenced by Vect__open_old(), Vect__open_topo_pg(), Vect_close(), Vect_coor_info(), and Vect_level().

struct Plus_head Map_info::plus

Plus info (topology, version, ...)

Definition at line 1286 of file dig_structs.h.

Referenced by V1_open_old_pg(), V2__add_line_to_topo_nat(), V2__delete_line_from_topo_nat(), V2_delete_line_nat(), V2_delete_line_pg(), V2_delete_line_sfa(), V2_read_line_nat(), V2_read_line_pg(), V2_read_line_sfa(), V2_read_next_line_nat(), V2_read_next_line_ogr(), V2_read_next_line_pg(), V2_restore_line_nat(), V2_rewrite_line_nat(), V2_rewrite_line_pg(), V2_rewrite_line_sfa(), V2_write_line_nat(), V2_write_line_sfa(), Vect__build_downgrade(), Vect__build_sfa(), Vect__init_head(), Vect__open_old(), Vect__open_topo_pg(), Vect_area_alive(), Vect_attach_centroids(), Vect_attach_isle(), Vect_attach_isles(), Vect_build_line_area(), Vect_build_nat(), Vect_build_ogr(), Vect_build_partial(), Vect_build_pg(), Vect_build_sidx(), Vect_cidx_find_all(), Vect_cidx_find_next(), Vect_cidx_get_cat_by_index(), Vect_cidx_get_field_index(), Vect_cidx_get_field_number(), Vect_cidx_get_num_cats_by_index(), Vect_cidx_get_num_fields(), Vect_cidx_get_num_types_by_index(), Vect_cidx_get_num_unique_cats_by_index(), Vect_cidx_get_type_count(), Vect_cidx_get_type_count_by_index(), Vect_cidx_get_unique_cats_by_index(), Vect_cidx_open(), Vect_cidx_save(), Vect_clean_small_angles_at_nodes(), Vect_close(), Vect_find_area(), Vect_get_area_area(), Vect_get_area_boundaries(), Vect_get_area_box(), Vect_get_area_centroid(), Vect_get_area_isle(), Vect_get_area_num_isles(), Vect_get_area_perimeter(), Vect_get_area_points(), Vect_get_area_points_geos(), Vect_get_built(), Vect_get_centroid_area(), Vect_get_isle_area(), Vect_get_isle_boundaries(), Vect_get_isle_box(), Vect_get_isle_points(), Vect_get_isle_points_geos(), Vect_get_line_areas(), Vect_get_line_box(), Vect_get_line_nodes(), Vect_get_line_offset(), Vect_get_line_type(), Vect_get_map_box(), Vect_get_node_coor(), Vect_get_node_line(), Vect_get_node_line_angle(), Vect_get_node_n_lines(), 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_primitives(), 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_isle_find_area(), Vect_line_alive(), Vect_merge_lines(), Vect_node_alive(), Vect_open_sidx(), Vect_open_topo(), Vect_point_in_area(), Vect_point_in_area_outer_ring(), Vect_point_in_island(), Vect_read_line(), Vect_read_line_geos(), Vect_remove_small_areas_nat(), Vect_reset_updated(), Vect_save_fidx(), Vect_save_sidx(), Vect_save_topo(), Vect_select_areas_by_box(), Vect_select_isles_by_box(), Vect_select_lines_by_box(), Vect_select_nodes_by_box(), Vect_set_category_index_update(), Vect_set_release_support(), Vect_set_updated(), Vect_sidx_dump(), Vect_tin_get_z(), Vect_topo_check(), and Vect_topo_dump().

int Map_info::proj

???

Definition at line 1388 of file dig_structs.h.

int Map_info::region_flag
struct site_att* Map_info::site_att

Array of attributes loaded from db.

Todo:
To be removed?

Definition at line 1424 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 1327 of file dig_structs.h.

Referenced by Vect__open_old(), Vect__open_topo_pg(), Vect_build_partial(), Vect_close(), and Vect_save_fidx().

int Map_info::type
int Map_info::type_flag

Non-zero value to enable feature type constraint.

Definition at line 1370 of file dig_structs.h.

Referenced by V1_read_next_line_nat(), V2_read_next_line_nat(), V2_read_next_line_ogr(), V2_read_next_line_pg(), Vect_remove_constraints(), and Vect_set_constraint_type().


The documentation for this struct was generated from the following file: