int tsmPutTile ( TsmHandle *tsmh, Pyramid *pyramid, int ix, int iy, int level, const unsigned char *tileBuffer, tspSymbol imgFormat ) Writes a single tile to a Pyramid
Writes a single tile to a Pyramid. The tsmPutTile function will write a single tile (ix,iy,level) to the Pyramid, pyramid.N.B. this function is part of the old style server-centric interface to tsmApi. You should really start using the new leaner, cleaner, and sexier connection-based interface (see tsmConnect). This function is now just an emulation layer on top of the relevant connection-based function(s): tsmWriteTile.
The function supports one optional parameter to specify the image format to use (see below).
N.B. when writing tiles to a TIFF file on local disk, the order in which you write the data is important. The tiles should be written in row-major, left-to-right order, e.g. p0p0, p1p0, p2p0,... p0p1, p1p1, p2p1... etc. The TIFF file will be created automatically when then first tile is output, and it will be closed automatically when then last tile is written.