GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
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. More... | |
int | Vect_save_frmt (struct Map_info *Map) |
Save format definition file for vector map. More... | |
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 295 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(), and V1_close_pg().
void Vect__free_offset | ( | struct Format_info_offset * | offset | ) |
Free memory of offset array
cache | pointer to offset array to be freed |
Definition at line 314 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().
int Vect_close | ( | struct Map_info * | Map | ) |
Close vector map.
Map | pointer to Map_info |
Definition at line 72 of file vector/Vlib/close.c.
References _, Plus_head::built, Format_info_pg::conninfo, Format_info_ogr::dsn, FALSE, Map_info::fInfo, Map_info::format, 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_FORMAT_OGR, GV_FORMAT_POSTGIS, Map_info::level, Map_info::mapset, Map_info::name, Format_info::ogr, Format_info::pg, Map_info::plus, Map_info::support_updated, Map_info::temporary, TRUE, Vect_build(), Vect_close(), Vect_copy_head_data(), Vect_copy_map_dblinks(), Vect_copy_map_lines_field(), Vect_get_name(), Vect_hist_copy(), Vect_is_3d(), Vect_map_del_dblink(), and Vect_open_new().
Referenced by Vect_close().
int Vect_save_frmt | ( | struct Map_info * | Map | ) |
Save format definition file for vector map.
Map | pointer to Map_info structure |
Definition at line 243 of file vector/Vlib/close.c.
References _, Format_info_pg::conninfo, Format_info_ogr::dsn, Map_info::fInfo, Map_info::format, G_fatal_error(), G_fopen_new(), G_verbose_message(), G_warning(), GPATH_MAX, GV_DIRECTORY, GV_FORMAT_OGR, GV_FORMAT_POSTGIS, GV_FRMT_ELEMENT, Format_info_ogr::layer_name, Map_info::name, NULL, Format_info::ogr, Format_info::pg, Format_info_pg::schema_name, and Format_info_pg::table_name.
Referenced by V1_close_ogr(), and V1_close_pg().