GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
dbcolumns.c File Reference

Vector library - DB info on vectors maps. More...

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <grass/glocale.h>
#include <grass/vector.h>
#include <grass/dbmi.h>
Include dependency graph for dbcolumns.c:

Go to the source code of this file.

Macros

#define BUFF_MAX   2000
 

Functions

const char * Vect_get_column_names (struct Map_info *Map, int field)
 Fetches list of DB column names of vector map attribute table. More...
 
const char * Vect_get_column_types (struct Map_info *Map, int field)
 Fetches list of DB column types of vector map attribute table. More...
 
const char * Vect_get_column_names_types (struct Map_info *Map, int field)
 Fetches list of DB column names and types of vector map attribute table. More...
 

Detailed Description

Vector library - DB info on vectors maps.

Higher level functions for reading/writing/manipulating vectors.

(C) 2005-2009 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Markus Neteler

Definition in file dbcolumns.c.

Macro Definition Documentation

◆ BUFF_MAX

#define BUFF_MAX   2000

Definition at line 26 of file dbcolumns.c.

Function Documentation

◆ Vect_get_column_names()

const char* Vect_get_column_names ( struct Map_info Map,
int  field 
)

Fetches list of DB column names of vector map attribute table.

Parameters
Mapvector map
fieldlayer number
Returns
list of column(s) names on success
NULL on error

Definition at line 37 of file dbcolumns.c.

◆ Vect_get_column_names_types()

const char* Vect_get_column_names_types ( struct Map_info Map,
int  field 
)

Fetches list of DB column names and types of vector map attribute table.

Parameters
Mapvector map
fieldlayer number
Returns
list of column(s) types on success
NULL on error

Definition at line 149 of file dbcolumns.c.

◆ Vect_get_column_types()

const char* Vect_get_column_types ( struct Map_info Map,
int  field 
)

Fetches list of DB column types of vector map attribute table.

Parameters
Mapvector map
fieldlayer number
Returns
list of column(s) types on success
NULL on error

Definition at line 92 of file dbcolumns.c.