GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-bea8435a9e
close_ogr.c File Reference

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"
Include dependency graph for close_ogr.c:

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...
 

Detailed Description

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.

Author
Original author CERL, probably Dave Gerdes or Mike Higgins.
Update to GRASS 5.7 Radim Blazek and Piero Cavalieri.

Definition in file close_ogr.c.

Function Documentation

◆ V1_close_ogr()

◆ V2_close_ogr()

int V2_close_ogr ( struct Map_info Map)

Close vector map on topological level (write out fidx file)

Parameters
Mappointer to Map_info structure
Returns
0 on success
non-zero on error

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().