Rogue Wave Views Maps Package API Reference Guide |
Rogue Wave Views Documentation Home |
A GeoTIFF file tiler. More...
#include <ilviews/maps/format/geotiff/gtifftiler.h>
Public Member Functions | |
IlvGeoTIFFTiler (const char *input, const char *output, IlInt tileWidth, IlInt tileHeight) | |
Constructs a GeoTIFF tiler. More... | |
IlInt | getColumnCount () const |
Returns the number of columns. More... | |
IlvTIFFStreamer::Compression | getCompression () const |
Returns the compression method used to generate the tiles. More... | |
IlvMapsError | getInitStatus () const |
Checks the initialization status of this GeoTIFF tiler. More... | |
IlInt | getRowCount () const |
Returns the number of rows. More... | |
IlInt | getTileHeight () const |
Returns the tile height in pixels. More... | |
IlInt | getTileWidth () const |
Returns the tile width in pixels. More... | |
IlvMapsError | performTiling (IlvTIFFStreamer &outStreamer) |
Performs the tiling. More... | |
void | setCompression (IlvTIFFStreamer::Compression c) |
Sets the compression method used to generate the tiles. More... | |
A GeoTIFF file tiler.
Library: ilvmaps
An IlvGeoTIFFTiler
is used to generate and to save tile information for a given GeoTIFF file.
Tiled GeoTIFF files can be read by the IlvGeoTIFFTileLoader
and the IlvGeoTIFFLayer
.
IlvGeoTIFFTiler::IlvGeoTIFFTiler | ( | const char * | input, |
const char * | output, | ||
IlInt | tileWidth, | ||
IlInt | tileHeight | ||
) |
Constructs a GeoTIFF tiler.
input | The input file. |
output | The output file. |
tileWidth | The width of the tiles in pixels. The tile width must be a multiple of 16 pixels. |
tileHeight | The height of a tile in pixels. The tile height must be a multiple of 16 pixels. The getInitStatus() method checks if the tiler is valid. |
IlInt IlvGeoTIFFTiler::getColumnCount | ( | ) | const |
Returns the number of columns.
IlvTIFFStreamer::Compression IlvGeoTIFFTiler::getCompression | ( | ) | const |
Returns the compression method used to generate the tiles.
IlvMapsError IlvGeoTIFFTiler::getInitStatus | ( | ) | const |
Checks the initialization status of this GeoTIFF tiler.
IlInt IlvGeoTIFFTiler::getRowCount | ( | ) | const |
Returns the number of rows.
IlInt IlvGeoTIFFTiler::getTileHeight | ( | ) | const |
Returns the tile height in pixels.
IlInt IlvGeoTIFFTiler::getTileWidth | ( | ) | const |
Returns the tile width in pixels.
IlvMapsError IlvGeoTIFFTiler::performTiling | ( | IlvTIFFStreamer & | outStreamer | ) |
Performs the tiling.
This method opens the file whose name has been defined at construction time, reads the file and writes the output file with the current tiling parameters.
outStreamer | The streamer. |
IlvMaps::NoError()
if the tiling was successful or an error code if it failed. void IlvGeoTIFFTiler::setCompression | ( | IlvTIFFStreamer::Compression | c | ) |
Sets the compression method used to generate the tiles.
c | The compression method. The compression can be any of IlvTIFFstreamer::None , IlvTIFFstreamer::Packbits , IlvTIFFstreamer::Zip . |
© Copyright 2017, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.