GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-d6dec75dd4
Format_info_pg Struct Reference

Non-native format info (PostGIS) More...

#include <dig_structs.h>

Collaboration diagram for Format_info_pg:

Data Fields

char * conninfo
 Connection string. More...
 
char * db_name
 Database name (derived from conninfo) More...
 
char * schema_name
 Schema name. More...
 
char * table_name
 Table name. More...
 
char * where
 SQL where statement (of filter features) More...
 
char * fid_column
 FID column. More...
 
char * geom_column
 Geometry column (simple feature access) More...
 
SF_FeatureType feature_type
 Feature type (simple feature access) More...
 
int coor_dim
 Coordinates dimension (2D or 3D) More...
 
int srid
 Spatial reference system id (see spatial_ref_sys table) More...
 
dbDriverdbdriver
 Open DB driver when writing attributes. More...
 
struct field_infofi
 
int inTransaction
 Start/Finish transaction. More...
 
PGconn * conn
 PGconn object (generated by PQconnectdb) More...
 
PGresult * res
 
char * cursor_name
 Open cursor. More...
 
int cursor_fid
 
int next_line
 Next line to be read. More...
 
struct Format_info_cache cache
 Lines cache for reading feature. More...
 
struct Format_info_offset offset
 Offset list used for building pseudo-topology (simple features access) More...
 
char * topogeom_column
 TopoGeometry column (feature table) More...
 
char * toposchema_name
 Topology schema name and id. More...
 
int toposchema_id
 
int topo_geo_only
 Topology format. More...
 

Detailed Description

Non-native format info (PostGIS)

Definition at line 590 of file dig_structs.h.

Field Documentation

◆ cache

struct Format_info_cache Format_info_pg::cache

Lines cache for reading feature.

Definition at line 665 of file dig_structs.h.

Referenced by V1_close_pg(), V1_rewind_pg(), Vect__get_area_points(), and Vect_get_isle_points().

◆ conn

◆ conninfo

char* Format_info_pg::conninfo

◆ coor_dim

int Format_info_pg::coor_dim

Coordinates dimension (2D or 3D)

Definition at line 626 of file dig_structs.h.

◆ cursor_fid

int Format_info_pg::cursor_fid

Definition at line 660 of file dig_structs.h.

◆ cursor_name

char* Format_info_pg::cursor_name

Open cursor.

Definition at line 659 of file dig_structs.h.

Referenced by V1_close_pg(), Vect__close_cursor_pg(), and Vect__open_cursor_next_line_pg().

◆ db_name

char* Format_info_pg::db_name

Database name (derived from conninfo)

Definition at line 598 of file dig_structs.h.

Referenced by V1_close_pg(), Vect_build_pg(), and Vect_get_finfo_dsn_name().

◆ dbdriver

dbDriver* Format_info_pg::dbdriver

Open DB driver when writing attributes.

This driver is open by V2_open_new_pg() and closed by V1_close_pg().

Definition at line 639 of file dig_structs.h.

Referenced by V1_close_pg().

◆ feature_type

SF_FeatureType Format_info_pg::feature_type

Feature type (simple feature access)

Definition at line 622 of file dig_structs.h.

Referenced by Vect_build_pg().

◆ fi

struct field_info* Format_info_pg::fi

Definition at line 640 of file dig_structs.h.

Referenced by V1_close_pg().

◆ fid_column

char* Format_info_pg::fid_column

◆ geom_column

char* Format_info_pg::geom_column

Geometry column (simple feature access)

Definition at line 618 of file dig_structs.h.

Referenced by V1_close_pg(), and Vect__open_cursor_next_line_pg().

◆ inTransaction

int Format_info_pg::inTransaction

Start/Finish transaction.

Definition at line 645 of file dig_structs.h.

Referenced by V1_delete_line_pg(), and Vect_build_pg().

◆ next_line

int Format_info_pg::next_line

Next line to be read.

Definition at line 665 of file dig_structs.h.

Referenced by V1_rewind_pg().

◆ offset

struct Format_info_offset Format_info_pg::offset

Offset list used for building pseudo-topology (simple features access)

Definition at line 665 of file dig_structs.h.

Referenced by V1_delete_line_pg(), V2_open_old_pg(), Vect__load_map_lines_pg(), Vect__load_map_nodes_pg(), Vect_build_pg(), and Vect_fidx_dump().

◆ res

◆ schema_name

◆ srid

int Format_info_pg::srid

Spatial reference system id (see spatial_ref_sys table)

Definition at line 631 of file dig_structs.h.

Referenced by Vect__insert_face_pg().

◆ table_name

◆ topo_geo_only

int Format_info_pg::topo_geo_only

Topology format.

TRUE to store only Topo-Geo data in DB otherwise GRASS-like topology is also maintained in DB

Definition at line 694 of file dig_structs.h.

Referenced by Vect__load_map_lines_pg(), Vect__load_map_nodes_pg(), and Vect_get_finfo_topology_info().

◆ topogeom_column

char* Format_info_pg::topogeom_column

TopoGeometry column (feature table)

Definition at line 682 of file dig_structs.h.

Referenced by V1_close_pg(), Vect__load_map_lines_pg(), Vect__load_plus_head(), Vect__open_cursor_next_line_pg(), and Vect_get_finfo_topology_info().

◆ toposchema_id

int Format_info_pg::toposchema_id

Definition at line 687 of file dig_structs.h.

Referenced by V2_open_old_pg(), and Vect__load_plus_head().

◆ toposchema_name

◆ where

char* Format_info_pg::where

SQL where statement (of filter features)

Definition at line 610 of file dig_structs.h.

Referenced by dig_read_frmt_ascii(), and Vect__open_cursor_next_line_pg().


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