NAME

getTileFromDisk - Read a tile from file cache

SYNOPSIS

#include "topo/index.h"

Example compile flags (system dependent):
  -DLINUX_X86_64 -DLINUX_X86_64_OPTERON  -DGNU_COMPILER 
   -I/home/kobus/include
   -L/home/kobus/misc/load/linux_x86_64_opteron -L/usr/lib/x86_64-linux-gnu
  -lKJB                               -lfftw3  -lgsl -lgslcblas -ljpeg  -lSVM -lstdc++                    -lpthread -lSLATEC -lg2c    -lacml -lacml_mv -lblas -lg2c      -lncursesw 


int getTileFromDisk
(
	int x,
	int y,
	int typ,
	char zone,
	char *buf,
	size_t bufsize
);

PARAMETERS

int x
UTM easting of location whose tile we want
int y
UTM northing of location whose tile we want
int typ
Tileset of tile we want
char zone
UTM zone of location whose tile we want
char *buf
buffer into which to write the tile image data
size_t bufsize
size of buffer 'buf'

DESCRIPTION

Retreives specified tile from disk, places it in 'buf' This and all file cache functions are NOT reentrant, because they access static structures.

RETURNS

Return value is the size of the tile in bytes, if found. If not found, or if another error occurs, returns 0.

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Scott Morris

DOCUMENTER

Andrew Predoehl

SEE ALSO

initIndexFile , closeIndexFile , addIndexEntry , findTileOnDisk , invalidateEntry