|
GRASS 8 Programmer's Manual 8.6.0dev(2026)-56a9afeb9f
|
Vector library - Close vector map. More...
#include <stdlib.h>#include <stdio.h>#include <string.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <grass/vector.h>#include <grass/glocale.h>#include "local_proto.h"
Go to the source code of this file.
Functions | |
| int | Vect_close (struct Map_info *Map) |
| Close vector map. | |
| int | Vect_save_frmt (struct Map_info *Map) |
| Save format definition file for vector map. | |
| void | Vect__free_cache (struct Format_info_cache *cache) |
| void | Vect__free_offset (struct Format_info_offset *offset) |
Vector library - Close vector map.
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2015 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 vector/Vlib/close.c.
| void Vect__free_cache | ( | struct Format_info_cache * | cache | ) |
Free memory of line cache
| cache | pointer to lines cache to be freed |
Definition at line 284 of file vector/Vlib/close.c.
References G_free(), G_zero(), Format_info_cache::lines, Format_info_cache::lines_alloc, Format_info_cache::lines_cats, Format_info_cache::lines_types, and Vect_destroy_line_struct().
Referenced by V1_close_ogr(), V1_close_pg(), and Vect__load_plus_pg().
| void Vect__free_offset | ( | struct Format_info_offset * | offset | ) |
Free memory of offset array
| offset | pointer to offset array to be freed |
Definition at line 303 of file vector/Vlib/close.c.
References Format_info_offset::array, G_free(), and G_zero().
Referenced by V2_close_ogr(), and V2_close_pg().
Close vector map.
| Map | pointer to Map_info |
Definition at line 65 of file vector/Vlib/close.c.
References _, dig_free_plus(), FALSE, G_debug(), G_find_file2(), G_find_key_value(), G_fopen_old(), G_fread_key_value(), G_free(), G_mapset(), G_store(), G_strcasecmp(), G_warning(), GV_BUILD_ALL, GV_CIDX_ELEMENT, GV_FIDX_ELEMENT, GV_FORMAT_OGR, GV_FORMAT_POSTGIS, GV_SIDX_ELEMENT, GV_TOPO_ELEMENT, AMI_STREAM< T >::name(), TRUE, V2_close_ogr(), V2_close_pg(), Vect_build(), Vect_cidx_save(), Vect_close(), VECT_CLOSED_CODE, Vect_coor_info(), Vect_copy_head_data(), Vect_copy_map_dblinks(), Vect_copy_map_lines_field(), Vect_get_full_name(), Vect_get_name(), Vect_hist_copy(), Vect_is_3d(), Vect_map_del_dblink(), Vect_open_new(), Vect_save_sidx(), and Vect_save_topo().
Referenced by Gp_load_sites(), Gv_load_vect(), Vect__delete(), Vect_close(), Vect_copy(), and Vect_rename().
Save format definition file for vector map.
| Map | pointer to Map_info structure |
Definition at line 237 of file vector/Vlib/close.c.
References _, G_fatal_error(), G_fopen_new(), G_verbose_message(), G_warning(), GPATH_MAX, GV_DIRECTORY, GV_FORMAT_OGR, GV_FORMAT_POSTGIS, GV_FRMT_ELEMENT, AMI_STREAM< T >::name(), and NULL.
Referenced by V1_close_ogr(), and V1_close_pg().