74 if (!
G_getl2(buf,
sizeof(buf), fp))
85 if (strcmp(
name, vname) == 0)
88 if (tilecount >= talloc) {
121 for (col = 0; col < rd_window->
cols; col++) {
122 east = rd_window->
west + rd_window->
ew_res * (col + 0.5);
210 p1 = (
unsigned char *)buf + size * p->
clist->
value[j];
211 p2 = (
unsigned char *)tmpbuf + size * p->
clist->
value[j];
int G_getl2(char *, int, FILE *)
Gets a line of text from a file of any pedigree.
struct ilist * G_new_ilist(void)
Return a new integer list.
void G_free(void *)
Free allocated memory.
FILE * G_fopen_old_misc(const char *, const char *, const char *, const char *)
open a database misc file for reading
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
void G_free_ilist(struct ilist *)
Free allocated memory of an integer list.
const char * G_find_raster2(const char *, const char *)
Find a raster map (look but don't touch)
const char * G_find_raster(char *, const char *)
Find a raster map.
void G_ilist_add(struct ilist *, int)
Add item to ilist.
char * G_store(const char *)
Copy string to allocated memory.
int Rast_is_null_value(const void *, RASTER_MAP_TYPE)
To check if a raster value is set to NULL.
void Rast_unopen(int)
Unopen a raster map.
void * Rast_allocate_input_buf(RASTER_MAP_TYPE)
void Rast_get_row_nomask(int, void *, int, RASTER_MAP_TYPE)
Read raster row without masking.
int Rast__open_old(const char *, const char *)
Lower level function, open cell files, supercell files, and the MASK file.
size_t Rast_cell_size(RASTER_MAP_TYPE)
Returns size of a raster cell in bytes.
void Rast_set_null_value(void *, int, RASTER_MAP_TYPE)
To set one or more raster values to null.
void Rast_get_cellhd(const char *, const char *, struct Cell_head *)
Read the raster header.
#define PROJECTION_LL
Projection code - Latitude-Longitude.
2D/3D raster map header (used also for region)
double ew_res
Resolution - east to west cell size for 2D data.
double north
Extent coordinates (north)
double east
Extent coordinates (east)
double ns_res
Resolution - north to south cell size for 2D data.
int rows
Number of rows for 2D data.
int cols
Number of columns for 2D data.
double south
Extent coordinates (south)
double west
Extent coordinates (west)
struct fileinfo * fileinfo
struct Cell_head rd_window
struct tileinfo * tileinfo
int n_values
Number of values in the list.
int * value
Array of values.
void Rast_close_vrt(struct R_vrt *vrt)
int cmp_wnd(const void *a, const void *b)
int Rast_get_vrt_row(int fd, void *buf, int row, RASTER_MAP_TYPE data_type)
struct R_vrt * Rast_get_vrt(const char *vname, const char *vmapset)