GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
Loading...
Searching...
No Matches
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)
 
int temporary
 Temporary map flag.
 
struct dblinksdblnk
 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.
 
charname
 Map name (for 4.0)
 
charmapset
 Mapset name.
 
charlocation
 Location name.
 
chargisdbase
 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
 ???
 
FILEhist_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_attsite_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.
 

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

Field Documentation

◆ box

struct bound_box Map_info::box

Region (bbox) constraint.

Definition at line 1339 of file dig_structs.h.

◆ [struct]

struct { ... } Map_info::constraint

Constraints for sequential feature access.

◆ dblnk

struct dblinks* Map_info::dblnk

Array of DB links.

Definition at line 1253 of file dig_structs.h.

Referenced by Vect_copy_tables().

◆ dgraph

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

◆ dig_fp

struct gvfile Map_info::dig_fp

GV file pointer (native format only)

Definition at line 1383 of file dig_structs.h.

◆ field

int Map_info::field

Field number constraint (see line_cats structure)

Definition at line 1355 of file dig_structs.h.

◆ field_flag

int Map_info::field_flag

Non-zero value to enable field constraint.

Definition at line 1351 of file dig_structs.h.

◆ fInfo

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

◆ format

int Map_info::format

Map format (native, ogr, postgis)

  • GV_FORMAT_NATIVE
  • GV_FORMAT_OGR
  • GV_FORMAT_OGR_DIRECT
  • GV_FORMAT_POSTGIS

Definition at line 1243 of file dig_structs.h.

Referenced by Vect__open_old(), Vect_copy(), and Vect_copy_map_lines_field().

◆ gisdbase

char* Map_info::gisdbase

GISDBASE path.

Definition at line 1319 of file dig_structs.h.

◆ head

struct dig_head Map_info::head

Header info.

Definition at line 1376 of file dig_structs.h.

Referenced by Vect__open_old().

◆ head_only

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

◆ hist_fp

FILE* Map_info::hist_fp

History file.

Definition at line 1366 of file dig_structs.h.

Referenced by Vect_hist_copy().

◆ level

int Map_info::level

Topology level.

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

Definition at line 1285 of file dig_structs.h.

Referenced by Vect__open_old(), and Vect_set_open_level().

◆ location

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.

◆ mapset

◆ mode

int Map_info::mode

Definition at line 1276 of file dig_structs.h.

◆ n_site_att

int Map_info::n_site_att

Number of attributes in site_att array.

Todo:
To be removed?

Definition at line 1403 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 1409 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 1415 of file dig_structs.h.

◆ name

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

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

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

◆ plus

struct Plus_head Map_info::plus

Plus info (topology, version, ...)

Definition at line 1258 of file dig_structs.h.

◆ proj

int Map_info::proj

???

Definition at line 1361 of file dig_structs.h.

◆ region_flag

int Map_info::region_flag

Non-zero value to enable region constraint.

Definition at line 1335 of file dig_structs.h.

◆ site_att

struct site_att* Map_info::site_att

Array of attributes loaded from db.

Todo:
To be removed?

Definition at line 1397 of file dig_structs.h.

◆ support_updated

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.

◆ temporary

int Map_info::temporary

Temporary map flag.

Definition at line 1248 of file dig_structs.h.

◆ type

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

◆ type_flag

int Map_info::type_flag

Non-zero value to enable feature type constraint.

Definition at line 1343 of file dig_structs.h.


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