int tsmCheckSumTile ( TsmHandle *tsmh, Pyramid *pyramid, int ix, int iy, int level, unsigned char *tileBuffer, int numBytes )

Retrieves and checksums a tile

Documentation

Retrieves and checksums a tile.

This routine will perform a tsmGetTile for the specified tile and then do a tsmCheckSumTileBuffer on the resulting data to calculate the tile's checksum.

Returns:
the tile's checksum, or -1 if tsmGetTile failed
Parameters:
tsmh - the TSM session handle returned from tsmOpen.
pyramid - the pyramid structure, e.g. as returned from tsmGetPyramid.
ix - the x-coordinate of the tile to checksum.
iy - the y-ccordinate of the tile to checksum.
level - the level of the pyramid to retrieve the tile from.
tileBuffer - a buffer to write the tile data into.
numBytes - the byte size of the tile buffer (if set to 0, then this value will be computed using tsmNumBytesPerTile)
See Also:
tsmCheckSumTileBuffer, tsmGetTile, tsmNumBytesPerTile


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page