int tsmCopyTile ( TsmConnection in, TsmConnection out, int tx, int ty, int level ) Copy a single tile from one dataset to another
Copy a single tile from one dataset to another.This function will take an input connection and copy the specified tile (tx,tx,res) from this dataset to an output connection. The input connection should of course be a read connection (i.e. opened with a "r" or "rw" parameter to tsmConnect), and the output connction should be a write connection.
Of course, the connections need not be on the same medium. So for example you could copy tiles from local disk to local disk, but also from a DPSS to local disk, etc.
N.B. you should ensure that the output connection has a valid tspec associated with it before using this function, and that it specifies a dataset size that can handle the tile coordinate from the input pyramid. The best way to do this is to do a tsmCopyTspec or tsmCopyTspecField before calling this function.