GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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

◆ box

struct bound_box Map_info::box

Region (bbox) constraint.

Definition at line 1366 of file dig_structs.h.

Referenced by Vect_get_constraint_box().

◆ constraint

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().

◆ dblnk

◆ dgraph

struct Graph_info Map_info::dgraph

Graph info (built for network analysis)

Definition at line 1398 of file dig_structs.h.

Referenced by Vect_net_get_graph(), Vect_net_get_line_cost(), and Vect_net_get_node_cost().

◆ dig_fp

struct gvfile Map_info::dig_fp

◆ field

int Map_info::field

Field number constraint (see line_cats structure)

Definition at line 1382 of file dig_structs.h.

Referenced by Vect_set_constraint_field().

◆ field_flag

int Map_info::field_flag

Non-zero value to enable field constraint.

Definition at line 1378 of file dig_structs.h.

Referenced by Vect_remove_constraints(), and Vect_set_constraint_field().

◆ fInfo

◆ format

◆ gisdbase

char* Map_info::gisdbase

GISDBASE path.

Definition at line 1346 of file dig_structs.h.

◆ head

◆ head_only

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.

◆ hist_fp

FILE* Map_info::hist_fp

History file.

Definition at line 1393 of file dig_structs.h.

Referenced by Vect_hist_copy(), Vect_hist_rewind(), and Vect_hist_write().

◆ level

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_build_partial(), Vect_build_sidx(), Vect_close(), Vect_level(), and Vect_rewind().

◆ location

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.

◆ mapset

◆ mode

int Map_info::mode

Definition at line 1304 of file dig_structs.h.

Referenced by V1_close_nat(), V1_close_ogr(), and V1_close_pg().

◆ n_site_att

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.

◆ n_site_dbl

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.

◆ n_site_str

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.

◆ name

◆ next_line

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_rewind_nat(), V2_rewind_ogr(), V2_rewind_pg(), Vect_get_next_line_id(), and Vect_read_next_line().

◆ open

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_topo_pg(), Vect_coor_info(), and Vect_level().

◆ plus

◆ proj

int Map_info::proj

???

Definition at line 1388 of file dig_structs.h.

◆ region_flag

int Map_info::region_flag

Non-zero value to enable region constraint.

Definition at line 1362 of file dig_structs.h.

Referenced by V1_read_next_line_nat(), Vect_get_constraint_box(), and Vect_remove_constraints().

◆ site_att

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.

◆ support_updated

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_build_partial(), Vect_close(), and Vect_save_fidx().

◆ temporary

int Map_info::temporary

◆ type

int Map_info::type

Feature type constraint.

Definition at line 1374 of file dig_structs.h.

◆ type_flag

int Map_info::type_flag

Non-zero value to enable feature type constraint.

Definition at line 1370 of file dig_structs.h.

Referenced by Vect_remove_constraints().


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