12 unsigned char *tmp, *
tmp2;
32 Rast3d_error(
"Rast3d_readIndex: error in Rast3d_malloc");
55 Rast3d_error(
"Rast3d_readIndex: error in Rast3d_malloc");
111 Rast3d_error(
"Rast3d_flush_index: error in Rast3d_malloc");
129 if (!Rast3d_readIndex(map)) {
130 Rast3d_error(
"Rast3d_flush_index: error in Rast3d_readIndex");
139static long *cmpIndex;
141static int indexSortCompare(
const void *a,
const void *
b)
145 offset1 = cmpIndex[*((
const long *)a)];
146 offset2 = cmpIndex[*((
const long *)
b)];
169 Rast3d_error(
"Rast3d_init_index: error in Rast3d_malloc");
191 if (!Rast3d_readIndex(map)) {
192 Rast3d_error(
"Rast3d_init_index: error in Rast3d_readIndex");
198 Rast3d_error(
"Rast3d_init_index: error in Rast3d_malloc");
204 cmpIndex = map->
index;
void Rast3d_free(void *)
Same as free (ptr).
void Rast3d_long_decode(unsigned char *, long *, int, int)
void * Rast3d_malloc(int)
Same as malloc (nBytes), except that in case of error Rast3d_error() is invoked.
int Rast3d_compute_clipped_tile_dimensions(RASTER3D_Map *, int, int *, int *, int *, int *, int *, int *)
Computes the dimensions of the tile when clipped to fit the region of map. The clipped dimensions are...
void Rast3d_error(const char *,...) __attribute__((format(printf
int Rast3d_long_encode(long *, unsigned char *, int)
void Rast3d_rle_decode(char *, char *, int, int, int *, int *)
int Rast3d_flush_index(RASTER3D_Map *map)
int Rast3d_init_index(RASTER3D_Map *map, int hasIndex)
#define RASTER3D_WRITE_DATA