rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Maps Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvGeoTIFFTiler Class Reference

A GeoTIFF file tiler. More...

#include <ilviews/maps/format/geotiff/gtifftiler.h>

List of all members.

Public Member Functions

 IlvGeoTIFFTiler (const char *input, const char *output, IlInt tileWidth, IlInt tileHeight)
 Constructs a GeoTIFF tiler.
IlInt getColumnCount () const
 Returns the number of columns.
IlvTIFFStreamer::Compression getCompression () const
 Returns the compression method used to generate the tiles.
IlvMapsError getInitStatus () const
 Checks the initialization status of this GeoTIFF tiler.
IlInt getRowCount () const
 Returns the number of rows.
IlInt getTileHeight () const
 Returns the tile height in pixels.
IlInt getTileWidth () const
 Returns the tile width in pixels.
IlvMapsError performTiling (IlvTIFFStreamer &outStreamer)
 Performs the tiling.
void setCompression (IlvTIFFStreamer::Compression c)
 Sets the compression method used to generate the tiles.

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:
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.

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:
outStreamer The 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:
compression The compression method. The compression can be any of IlvTIFFstreamer::None, IlvTIFFstreamer::Packbits, IlvTIFFstreamer::Zip.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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