GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
|
Raster Library - Utilization of GDAL library. More...
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <grass/config.h>
#include <grass/gis.h>
#include <grass/raster.h>
#include <grass/gprojects.h>
#include <grass/glocale.h>
#include "R.h"
Go to the source code of this file.
Functions | |
void | Rast_init_gdal (void) |
Initialization. More... | |
struct GDAL_link * | Rast_get_gdal_link (const char *name, const char *mapset) |
Get GDAL link settings for given raster map. More... | |
struct GDAL_link * | Rast_create_gdal_link (const char *name, RASTER_MAP_TYPE map_type) |
Create GDAL settings for given raster map. More... | |
void | Rast_close_gdal_link (struct GDAL_link *gdal) |
Close existing GDAL link. More... | |
int | Rast_close_gdal_write_link (struct GDAL_link *gdal) |
Close existing GDAL link and write out data. More... | |
Raster Library - Utilization of GDAL library.
(C) 2010 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 gdal.c.
void Rast_close_gdal_link | ( | struct GDAL_link * | gdal | ) |
Close existing GDAL link.
gdal | pointer to GDAL_link to be closed |
Definition at line 401 of file gdal.c.
References GDAL_link::data, GDAL_link::filename, and G_free().
int Rast_close_gdal_write_link | ( | struct GDAL_link * | gdal | ) |
Close existing GDAL link and write out data.
gdal | pointer to GDAL_link to be closed |
Definition at line 418 of file gdal.c.
References _, GDAL_link::data, dst, FALSE, GDAL_link::filename, G_free(), G_strcasecmp(), G_warning(), NULL, and Rast_gdal_raster_IO().
struct GDAL_link* Rast_create_gdal_link | ( | const char * | name, |
RASTER_MAP_TYPE | map_type | ||
) |
Create GDAL settings for given raster map.
name | map name |
map_type | map type (CELL, FCELL, DCELL) |
Definition at line 242 of file gdal.c.
References driver, G_is_initialized(), GPATH_MAX, Rast__init_window(), and Rast_init_gdal().
struct GDAL_link* Rast_get_gdal_link | ( | const char * | name, |
const char * | mapset | ||
) |
Get GDAL link settings for given raster map.
name | map name |
mapset | name of mapset |
Definition at line 61 of file gdal.c.
Referenced by Rast__open_old().
void Rast_init_gdal | ( | void | ) |
Initialization.
Register all GDAL drivers.
Definition at line 39 of file gdal.c.
Referenced by Rast_create_gdal_link(), and Rast_init_all().