rwlogo

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
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)
 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...
 

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 ( const char *  input,
const char *  output,
IlInt  tileWidth,
IlInt  tileHeight 
)

Constructs a GeoTIFF tiler.

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. The getInitStatus() method checks if the tiler is valid.

Member Function Documentation

IlInt IlvGeoTIFFTiler::getColumnCount ( ) const

Returns the number of columns.

Returns
The number of columns.
IlvTIFFStreamer::Compression IlvGeoTIFFTiler::getCompression ( ) const

Returns the compression method used to generate the tiles.

Returns
The compression method.
IlvMapsError IlvGeoTIFFTiler::getInitStatus ( ) const

Checks the initialization status of this GeoTIFF tiler.

Returns
The error code that may have happened during the tiler initialization.
IlInt IlvGeoTIFFTiler::getRowCount ( ) const

Returns the number of rows.

Returns
The number of rows.
IlInt IlvGeoTIFFTiler::getTileHeight ( ) const

Returns the tile height in pixels.

Returns
The tile height.
IlInt IlvGeoTIFFTiler::getTileWidth ( ) const

Returns the tile width in pixels.

Returns
The tile width.
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.
void IlvGeoTIFFTiler::setCompression ( IlvTIFFStreamer::Compression  c)

Sets the compression method used to generate the tiles.

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

© Copyright 2015, 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.