35 static int initialized;
172 struct GDAL_Options opts;
173 struct Key_Value *projinfo, *projunits, *projepsg;
179static void read_gdal_options(
void)
210 st->opts.format =
G_store(p ? p :
"GTiff");
247 if (
st->projinfo &&
st->projunits)
302 G_fatal_error(
_(
"Unable to create <%s> dataset using <%s> driver"),
310 G_message(
_(
"Driver <%s> does not support direct writing. "
311 "Using MEM driver for intermediate dataset."),
320 1, gdal->
type,
st->opts.options);
323 _(
"Unable to create <%s> dataset using memory driver"),
name);
407 G_warning(
_(
"Unable to create output file <%s> using driver <%s>"),
void G_free(void *)
Free allocated memory.
struct Key_Value * G_get_projinfo(void)
Gets projection information for location.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_warning(const char *,...) __attribute__((format(printf
struct Key_Value * G_get_projepsg(void)
Gets EPSG information for the current location.
int G_fwrite_key_value(FILE *, const struct Key_Value *)
Write key/value pairs to file.
int G_make_mapset_object_group(const char *)
Create directory for group of elements of a given type.
char * G_file_name(char *, const char *, const char *, const char *)
Builds full path names to GIS data files.
FILE * G_fopen_old(const char *, const char *, const char *)
Open a database file for reading.
void G_free_key_value(struct Key_Value *)
Free allocated Key_Value structure.
void G_set_key_value(const char *, const char *, struct Key_Value *)
Set value for given key.
char ** G_tokenize(const char *, const char *)
Tokenize string.
struct Key_Value * G_create_key_value(void)
Allocate and initialize Key_Value structure.
const char * G_find_key_value(const char *, const struct Key_Value *)
Find given key (case sensitive)
struct Key_Value * G_fread_key_value(FILE *)
Read key/values pairs from file.
FILE * G_fopen_old_misc(const char *, const char *, const char *, const char *)
open a database misc file for reading
int G_is_initialized(int *)
void G_initialize_done(int *)
int int G_strcasecmp(const char *, const char *)
String compare ignoring case (upper or lower)
char * G_store(const char *)
Copy string to allocated memory.
void G_message(const char *,...) __attribute__((format(printf
FILE * G_fopen_new_misc(const char *, const char *, const char *)
open a new database misc file
struct Key_Value * G_get_projunits(void)
Gets units information for location.
const char * G_find_raster2(const char *, const char *)
Find a raster map (look but don't touch)
const char * G_mapset(void)
Get current mapset name.
char * GPJ_grass_to_wkt2(const struct Key_Value *, const struct Key_Value *, const struct Key_Value *, int, int)
Converts a GRASS co-ordinate system representation to WKT style. EPSG code is preferred if available.
void Rast__init_window(void)
void Rast_set_d_null_value(DCELL *, int)
To set a number of DCELL raster values to NULL.
RASTER_MAP_TYPE Rast_map_type(const char *, const char *)
Determine raster data type.
int Rast_close_gdal_write_link(struct GDAL_link *gdal)
Close existing GDAL link and write out data.
struct GDAL_link * Rast_create_gdal_link(const char *name, RASTER_MAP_TYPE map_type)
Create GDAL settings for given raster map.
void Rast_close_gdal_link(struct GDAL_link *gdal)
Close existing GDAL link.
void Rast_init_gdal(void)
Initialization.
struct GDAL_link * Rast_get_gdal_link(const char *name, const char *mapset)
Get GDAL link settings for given raster map.
CPLErr Rast_gdal_raster_IO(GDALRasterBandH band, GDALRWFlag rw_flag, int x_off, int y_off, int x_size, int y_size, void *buffer, int buf_x_size, int buf_y_size, GDALDataType buf_type, int pixel_size, int line_size)
Input/output function for GDAL links.
struct Cell_head wr_window