int tsmParseCreateParams ( char *image_name, TsmTileParams *tile, TsmTspecParams *tspec )

Try to extract info about an input image

Documentation

Try to extract info about an input image.

This function can be used to try and extract as much information about an image that is available in the image file itself, or in any standard associated files. The information that is extracted is written directly into the provided TsmTileParams and/or TsmTspecParams structures (which can then be passed to the tsmCreateTspec or tsmCreate*Tiles functions). This can be used to make life easier for the client by reducing the amount of work they need to do.

The actual information that can be extract is obviously dependent on how much information is provided by a particular file format:

N.B. you should call tsmInitTileParams and tsmInitTspecParams for the tile and tspec structures, respectively, before calling this function.

Returns:
TRUE if the operation was successful, FALSE if an error occurred.
Parameters:
image_name - the name of the source image that we want to try and find out about.
format - the format of the image file, currently only TSM_LAS
tile - the TsmTileParams to fill with any relevant values that are found for the image file.
tspec - the TsmTspecParams to fill with any relevant values that are found for the image file.
Author:
Martin Reddy
Version:
23 March 1998
See Also:
tsmInitTileParams, tsmInitTspecParams, tsmCreateTspec, tsmCreateLevelsTiles, tsmCreateAllTiles, TsmTileParams, TsmTspecParams


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

Back to tsmApi Home Page