Views
Maps Package API Reference Guide
Product Documentation:
Views Documentation Home
List of all members | Public Member Functions
IlvGeoTIFFTiler Class Reference

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)
 Initializes a new 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...
 

Detailed Description

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.

See also
IlvGeoTIFFTileLoader, IlvGeoTIFFLayer.

Constructor & Destructor Documentation

◆ IlvGeoTIFFTiler()

IlvGeoTIFFTiler::IlvGeoTIFFTiler ( const char *  input,
const char *  output,
IlInt  tileWidth,
IlInt  tileHeight 
)

Initializes a new GeoTIFF tiler.

The getInitStatus() method checks if the tiler is valid.

Parameters
inputThe input file.
outputThe output file.
tileWidthThe width of the tiles in pixels. The tile width must be a multiple of 16 pixels.
tileHeightThe height of a tile in pixels. The tile height must be a multiple of 16 pixels.

Member Function Documentation

◆ getColumnCount()

IlInt IlvGeoTIFFTiler::getColumnCount ( ) const

Returns the number of columns.

Returns
The number of columns.

◆ getCompression()

IlvTIFFStreamer::Compression IlvGeoTIFFTiler::getCompression ( ) const

Returns the compression method used to generate the tiles.

Returns
The compression method.

◆ getInitStatus()

IlvMapsError IlvGeoTIFFTiler::getInitStatus ( ) const

Checks the initialization status of this GeoTIFF tiler.

Returns
The error code that may have happened during the tiler initialization.

◆ getRowCount()

IlInt IlvGeoTIFFTiler::getRowCount ( ) const

Returns the number of rows.

Returns
The number of rows.

◆ getTileHeight()

IlInt IlvGeoTIFFTiler::getTileHeight ( ) const

Returns the tile height in pixels.

Returns
The tile height.

◆ getTileWidth()

IlInt IlvGeoTIFFTiler::getTileWidth ( ) const

Returns the tile width in pixels.

Returns
The tile width.

◆ performTiling()

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.

Parameters
outStreamerThe streamer.
Returns
IlvMaps::NoError() if the tiling was successful or an error code if it failed.

◆ setCompression()

void IlvGeoTIFFTiler::setCompression ( IlvTIFFStreamer::Compression  c)

Sets the compression method used to generate the tiles.

The compression can be any of IlvTIFFstreamer::None, IlvTIFFstreamer::Packbits, IlvTIFFstreamer::Zip.

Parameters
cThe compression method.