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);
184 rows = rd_window->
north - rd_window->
ns_res * (row + 1);
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 Cell_head rd_window
void Rast_set_null_value(void *, int, RASTER_MAP_TYPE)
To set one or more raster values to null.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
int Rast_get_vrt_row(int fd, void *buf, int row, RASTER_MAP_TYPE data_type)
struct tileinfo * tileinfo
2D/3D raster map header (used also for region)
double west
Extent coordinates (west)
void Rast_get_row_nomask(int, void *, int, RASTER_MAP_TYPE)
Read raster row without masking.
void Rast_close_vrt(struct R_vrt *vrt)
int n_values
Number of values in the list.
void G_free(void *)
Free allocated memory.
int Rast__open_old(const char *, const char *)
Lower level function, open cell files, supercell files, and the MASK file.
struct R_vrt * Rast_get_vrt(const char *vname, const char *vmapset)
void * Rast_allocate_input_buf(RASTER_MAP_TYPE)
void G_ilist_add(struct ilist *, int)
Add item to ilist.
double north
Extent coordinates (north)
void Rast_unopen(int)
Unopen a raster map.
size_t Rast_cell_size(RASTER_MAP_TYPE)
Returns size of a raster cell in bytes.
double south
Extent coordinates (south)
FILE * G_fopen_old_misc(const char *, const char *, const char *, const char *)
open a database misc file for reading
int cmp_wnd(const void *a, const void *b)
#define PROJECTION_LL
Projection code - Latitude-Longitude.
struct fileinfo * fileinfo
const char * G_find_raster(char *, const char *)
Find a raster map.
int cols
Number of columns for 2D data.
void Rast_get_cellhd(const char *, const char *, struct Cell_head *)
Read the raster header.
double ns_res
Resolution - north to south cell size for 2D data.
double east
Extent coordinates (east)
const char * G_find_raster2(const char *, const char *)
Find a raster map (look but don't touch)
char * G_store(const char *)
Copy string to allocated memory.
int * value
Array of values.
double ew_res
Resolution - east to west cell size for 2D data.
struct ilist * G_new_ilist()
Return a new integer list.
int rows
Number of rows for 2D data.
void G_free_ilist(struct ilist *)
Free allocated memory of an integer list.
int Rast_is_null_value(const void *, RASTER_MAP_TYPE)
To check if a raster value is set to NULL.