GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-bea8435a9e
|
Vector library - Close map (OGR) More...
#include <stdlib.h>
#include <grass/vector.h>
#include <grass/glocale.h>
#include <ogr_api.h>
#include "local_proto.h"
Go to the source code of this file.
Functions | |
int | V1_close_ogr (struct Map_info *Map) |
Close vector map (OGR dsn & layer) on level 1. More... | |
int | V2_close_ogr (struct Map_info *Map) |
Close vector map on topological level (write out fidx file) More... | |
Vector library - Close map (OGR)
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2009, 2012 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 close_ogr.c.
int V1_close_ogr | ( | struct Map_info * | Map | ) |
Close vector map (OGR dsn & layer) on level 1.
Map | pointer to Map_info structure |
Definition at line 35 of file close_ogr.c.
References _, Format_info_ogr::cache, db_close_database_shutdown_driver(), Format_info_ogr::dbdriver, Format_info_ogr::driver_name, Format_info_ogr::ds, Format_info_ogr::dsn, Format_info_ogr::feature_cache, Map_info::fInfo, Map_info::format, G_debug(), G_fatal_error(), G_find_file2(), G_free(), G_free_tokens(), G_mapset(), GV_FORMAT_OGR_DIRECT, GV_MODE_RW, GV_MODE_WRITE, Format_info_ogr::layer_name, Format_info_ogr::layer_options, Map_info::mapset, Map_info::mode, Map_info::name, Format_info::ogr, Vect__free_cache(), Vect__write_head(), VECT_OPEN, and Vect_save_frmt().
int V2_close_ogr | ( | struct Map_info * | Map | ) |
Close vector map on topological level (write out fidx file)
Map | pointer to Map_info structure |
Definition at line 90 of file close_ogr.c.
References _, Map_info::fInfo, G_debug(), G_fatal_error(), G_warning(), Map_info::mapset, Map_info::name, Format_info_ogr::offset, Format_info::ogr, Vect__free_offset(), VECT_OPEN, and Vect_save_fidx().