|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-ddeab64dbf
|
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>
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. | |
| const char * | Vect_get_column_types (struct Map_info *Map, int field) |
| Fetches list of DB column types of vector map attribute table. | |
| 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. | |
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.
Definition in file dbcolumns.c.
| #define BUFF_MAX 2000 |
Definition at line 26 of file dbcolumns.c.
Fetches list of DB column names of vector map attribute table.
| Map | vector map |
| field | layer number |
Definition at line 37 of file dbcolumns.c.
References BUFF_MAX, field_info::database, db_close_database_shutdown_driver(), db_describe_table(), db_get_column_name(), db_get_table_column(), db_get_table_number_of_columns(), db_init_handle(), db_init_string(), DB_OK, db_open_database(), db_set_handle(), db_set_string(), db_shutdown_driver(), db_start_driver(), field_info::driver, G_debug(), G_free(), G_malloc, G_store(), G_str_concat(), NULL, field_info::table, Vect_destroy_field_info(), Vect_get_field(), and Vect_get_num_dblinks().
Fetches list of DB column names and types of vector map attribute table.
| Map | vector map |
| field | layer number |
Definition at line 163 of file dbcolumns.c.
References BUFF_MAX, field_info::database, db_close_database_shutdown_driver(), db_describe_table(), db_get_column_name(), db_get_column_sqltype(), db_get_table_column(), db_get_table_number_of_columns(), db_init_handle(), db_init_string(), DB_OK, db_open_database(), db_set_handle(), db_set_string(), db_shutdown_driver(), db_sqltype_name(), db_start_driver(), field_info::driver, G_calloc, G_debug(), G_free(), G_malloc, G_store(), G_str_concat(), NULL, field_info::table, Vect_destroy_field_info(), Vect_get_field(), and Vect_get_num_dblinks().
Fetches list of DB column types of vector map attribute table.
| Map | vector map |
| field | layer number |
Definition at line 99 of file dbcolumns.c.
References BUFF_MAX, field_info::database, db_close_database_shutdown_driver(), db_describe_table(), db_get_column_sqltype(), db_get_table_column(), db_get_table_number_of_columns(), db_init_handle(), db_init_string(), DB_OK, db_open_database(), db_set_handle(), db_set_string(), db_shutdown_driver(), db_sqltype_name(), db_start_driver(), field_info::driver, G_debug(), G_free(), G_malloc, G_store(), G_str_concat(), NULL, field_info::table, Vect_destroy_field_info(), Vect_get_field(), and Vect_get_num_dblinks().