metatile

metatile

Functions

int xyz_to_meta ()
int metatile_read ()

Types and Values

Description

Functions

xyz_to_meta ()

int
xyz_to_meta (char *path,
             size_t len,
             const char *dir,
             int x,
             int y,
             int z);

Returns the path to the meta-tile and the offset within the meta-tile


metatile_read ()

int
metatile_read (const char *dir,
               int x,
               int y,
               int z,
               char *buf,
               size_t sz,
               int *compressed,
               char *log_msg);

Reads into buf upto size specified by sz

Returns whether the file is in a compressed format (possibly only gzip)

Error messages returned in log_msg

Types and Values

METATILE_MAX_SIZE

#define METATILE_MAX_SIZE (1 * 1024 * 1024)