|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
|
Vector library - header manipulation (relevant for external formats) More...

Go to the source code of this file.
Functions | |
| const char * | Vect_get_finfo_dsn_name (struct Map_info *Map) |
| Get datasource name (relevant only for non-native formats) | |
| char * | Vect_get_finfo_layer_name (struct Map_info *Map) |
| Get layer name (relevant only for non-native formats) | |
| const char * | Vect_get_finfo_format_info (struct Map_info *Map) |
| Get format info as string (relevant only for non-native formats) | |
| const char * | Vect_get_finfo_geometry_type (struct Map_info *Map) |
| Get geometry type as string (relevant only for non-native formats) | |
| const struct Format_info * | Vect_get_finfo (struct Map_info *Map) |
| Get header info for non-native formats. | |
| int | Vect_get_finfo_topology_info (struct Map_info *Map, char **toposchema, char **topogeom, int *topo_geo_only) |
| Get topology type (relevant only for non-native formats) | |
Vector library - header manipulation (relevant for external formats)
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2013 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 header_finfo.c.
| const struct Format_info * Vect_get_finfo | ( | struct Map_info * | Map | ) |
Get header info for non-native formats.
| Map | pointer to Map_info structure |
Definition at line 209 of file header_finfo.c.
References NULL.
Get datasource name (relevant only for non-native formats)
Returns:
| Map | pointer to Map_info structure |
Definition at line 37 of file header_finfo.c.
References _, G_debug(), G_free(), G_warning(), GV_FORMAT_OGR, GV_FORMAT_OGR_DIRECT, GV_FORMAT_POSTGIS, NULL, and Vect_get_full_name().
Get format info as string (relevant only for non-native formats)
| Map | pointer to Map_info structure |
Definition at line 104 of file header_finfo.c.
References GV_FORMAT_OGR, GV_FORMAT_OGR_DIRECT, GV_FORMAT_POSTGIS, and NULL.
Referenced by Vect_build_ogr(), and Vect_build_pg().
Get geometry type as string (relevant only for non-native formats)
Note: All inner spaces are removed, function returns feature type in lowercase.
| Map | pointer to Map_info structure |
Definition at line 131 of file header_finfo.c.
References _, DB_SQL_MAX, G_debug(), G_free(), G_malloc, G_store(), G_str_replace(), G_str_to_lower(), G_warning(), GV_FORMAT_OGR, GV_FORMAT_OGR_DIRECT, GV_FORMAT_POSTGIS, NULL, and Format_info_pg::res.
Referenced by Vect_build_ogr(), Vect_build_pg(), Vect_copy_map_lines_field(), and Vect_fidx_dump().
Get layer name (relevant only for non-native formats)
Returns:
Note: allocated string should be freed by G_free()
| Map | pointer to Map_info structure |
Definition at line 71 of file header_finfo.c.
References _, G_asprintf(), G_debug(), G_free(), G_store(), G_warning(), GV_FORMAT_OGR, GV_FORMAT_OGR_DIRECT, GV_FORMAT_POSTGIS, name, NULL, and Vect_get_full_name().
Referenced by Vect_copy_map_lines_field().
| int Vect_get_finfo_topology_info | ( | struct Map_info * | Map, |
| char ** | toposchema, | ||
| char ** | topogeom, | ||
| int * | topo_geo_only | ||
| ) |
Get topology type (relevant only for non-native formats)
| Map | pointer to Map_info structure | |
| [out] | toposchema | Topology schema name or NULL |
| [out] | topogeom | TopoGeometry column name or NULL |
| [out] | topo_geo_only | TRUE for Topo-Geo data model or NULL |
Definition at line 232 of file header_finfo.c.
References G_store(), GV_FORMAT_OGR, GV_FORMAT_OGR_DIRECT, GV_FORMAT_POSTGIS, GV_TOPO_NATIVE, GV_TOPO_POSTGIS, GV_TOPO_PSEUDO, and Format_info_pg::topo_geo_only.