GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
vector/Vlib/close.c File Reference

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"
Include dependency graph for vector/Vlib/close.c:

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)
 

Detailed Description

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.

Author
Original author CERL, probably Dave Gerdes or Mike Higgins.
Update to GRASS 5.7 Radim Blazek and David D. Gray.
Update to GRASS 7 Martin Landa <landa.martin gmail.com>

Definition in file vector/Vlib/close.c.

Function Documentation

◆ Vect__free_cache()

void Vect__free_cache ( struct Format_info_cache cache)

Free memory of line cache

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

◆ Vect__free_offset()

void Vect__free_offset ( struct Format_info_offset offset)

Free memory of offset array

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

◆ Vect_close()

◆ Vect_save_frmt()