GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-a2d9ad8523
raster3d/close.c File Reference

3D Raster Library - Close 3D raster file More...

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <grass/raster.h>
#include <grass/glocale.h>
#include "raster3d_intern.h"
Include dependency graph for raster3d/close.c:

Go to the source code of this file.

Functions

int Rast3d_close (RASTER3D_Map *map)
 Close 3D raster map files. More...
 

Detailed Description

3D Raster Library - Close 3D raster file

(C) 1999-2009, 2011 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
USACERL and many others

Definition in file raster3d/close.c.

Function Documentation

◆ Rast3d_close()

int Rast3d_close ( RASTER3D_Map map)

Close 3D raster map files.

Closes g3d-file. If map is new and cache-mode is used for map then every tile which is not flushed before closing is flushed.

Parameters
mappointer to RASTER3D_Map to be closed
Returns
1 success
0 failure

Definition at line 153 of file raster3d/close.c.

References RASTER3D_Map::operation, and RASTER3D_WRITE_DATA.

Referenced by close_g3d_file().