Rogue Wave Views Maps Package API Reference Guide |
Rogue Wave Views Documentation Home |
This class is an IlvMapFeatureIterator
specialized for reading GeoTIFF files.
More...
#include <ilviews/maps/format/geotiff/gtiffreader.h>
Public Member Functions | |
IlvGeoTIFFReader (const char *filename) | |
Creates an instance of the GeoTIFF reader from a file name. More... | |
IlvGeoTIFFReader (istream &input) | |
Creates an instance of the GeoTIFF reader from an istream . More... | |
IlInt | getColumnCount () |
Returns the number of columns. More... | |
IlvFeatureRenderer * | getDefaultFeatureRenderer (IlvDisplay *display) |
Returns the default renderer for this feature iterator. More... | |
IlInt | getImageHeight () |
Returns the height of the image. More... | |
IlInt | getImageWidth () |
Returns the width of the image. More... | |
virtual IlvMapsError | getInitStatus () const |
Checks the initialization status of this feature iterator. More... | |
virtual IlBoolean | getLowerRightCorner (IlvCoordinate &coordinate) const |
Returns the lower right corner of the rectangle containing all the map features of this iterator. More... | |
virtual const IlvMapFeature * | getNextFeature (IlvMapsError &status) |
Returns the next map feature of the iterator, or 0 if the iteration is finished. The returned feature is owned by the feature iterator. More... | |
const IlvProjection * | getProjection () const |
Returns the projection in which the geometric coordinates of the map features are expressed or 0 if the feature iterator returns ungeoreferenced map features. More... | |
IlInt | getRowCount () |
Returns the number of row. More... | |
IlvTIFFStreamer * | getStreamer () const |
Retrieves the IlvTIFFStreamer opened by the reader. More... | |
IlUInt | getTileHeight () |
Returns the height of a tile in pixels. More... | |
IlvRect & | getTileOrigin (IlvMapInfo *info) |
Returns the tile origin of the file opened by this reader. More... | |
IlUInt | getTileWidth () |
Returns the width of a tile in pixels. More... | |
virtual IlBoolean | getUpperLeftCorner (IlvCoordinate &coordinate) const |
Returns the upper left corner of the rectangle containing all the map features of this iterator. More... | |
IlFloat | getXScale () |
Returns the x pixel scale. More... | |
IlFloat | getYScale () |
Returns the y pixel scale,. More... | |
IlBoolean | isTiled () const |
Tells if the file opened by the reader is tiled or not. More... | |
virtual IlvBitmapData * | readTile (IlInt col, IlInt row) |
Reads the specified tile. More... | |
void | setSourceProjection (IlvProjection *p) |
Sets the projection of geometries generated by this feature iterator. More... | |
Public Member Functions inherited from IlvMapFeatureIterator | |
virtual IlvClassInfo * | getClassInfo () const =0 |
Returns the class information for this feature iterator. More... | |
Protected Member Functions | |
virtual IlvMapFeature * | getMapFeature () |
Returns the map feature. More... | |
virtual void | setInitStatus (IlvMapsError status) |
Sets the error status of the reader. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from IlvMapFeatureIterator | |
static IlvClassInfo * | ClassInfo () |
Returns the class information of the class. More... | |
static IlvClassInfo ** | ClassInfoRef () |
Returns the address of the class information of the class. More... | |
This class is an IlvMapFeatureIterator
specialized for reading GeoTIFF files.
Library: ilvmaps
IlvGeoTIFFReader::IlvGeoTIFFReader | ( | const char * | filename | ) |
Creates an instance of the GeoTIFF reader from a file name.
filename | The name of a GeoTIFF file. |
IlvGeoTIFFReader::IlvGeoTIFFReader | ( | istream & | input | ) |
Creates an instance of the GeoTIFF reader from an istream
.
input | A stream opened on a GeoTIFF file. |
IlInt IlvGeoTIFFReader::getColumnCount | ( | ) |
Returns the number of columns.
If the file is tiled, the method returns the number of columns. If not, this method returns 1
.
|
virtual |
Returns the default renderer for this feature iterator.
Returns a renderer that can be used to translate the map features returned by this iterator into graphic objects. Feature iterators that store some rendering information in the attributes of the map features, such as color, text font, line thickness and so on, can return a specific renderer which is able to take these attributes into account during the rendering process.
Implements IlvMapFeatureIterator.
IlInt IlvGeoTIFFReader::getImageHeight | ( | ) |
Returns the height of the image.
IlInt IlvGeoTIFFReader::getImageWidth | ( | ) |
Returns the width of the image.
|
virtual |
Checks the initialization status of this feature iterator.
Implements IlvMapFeatureIterator.
|
virtual |
Returns the lower right corner of the rectangle containing all the map features of this iterator.
IlFalse
if lower right is unknown. Implements IlvMapFeatureIterator.
|
protectedvirtual |
Returns the map feature.
IlvMapFeature
.
|
virtual |
Returns the next map feature of the iterator, or 0
if the iteration is finished. The returned feature is owned by the feature iterator.
status | Stores the status of the operation. This status is IlvMaps::NoError() if no error occurs. |
Implements IlvMapFeatureIterator.
|
virtual |
Returns the projection in which the geometric coordinates of the map features are expressed or 0
if the feature iterator returns ungeoreferenced map features.
Implements IlvMapFeatureIterator.
IlInt IlvGeoTIFFReader::getRowCount | ( | ) |
Returns the number of row.
If the file is tiled, the method returns the number of rows. If not, this method returns 1
.
IlvTIFFStreamer* IlvGeoTIFFReader::getStreamer | ( | ) | const |
Retrieves the IlvTIFFStreamer
opened by the reader.
IlvTIFFStreamer
opened by the reader. IlUInt IlvGeoTIFFReader::getTileHeight | ( | ) |
Returns the height of a tile in pixels.
0
if the image is not tiled. IlvRect& IlvGeoTIFFReader::getTileOrigin | ( | IlvMapInfo * | info | ) |
Returns the tile origin of the file opened by this reader.
If the file opened is not tiled, the method returns the whole image rectangle.
info | The IlvMapInfo used to adapt images coordinates to Rogue Wave Views coordinates. |
IlUInt IlvGeoTIFFReader::getTileWidth | ( | ) |
Returns the width of a tile in pixels.
0
if the image is not tiled.
|
virtual |
Returns the upper left corner of the rectangle containing all the map features of this iterator.
IlFalse
if upper left is unknown. Implements IlvMapFeatureIterator.
IlFloat IlvGeoTIFFReader::getXScale | ( | ) |
Returns the x pixel scale.
IlFloat IlvGeoTIFFReader::getYScale | ( | ) |
Returns the y pixel scale,.
IlBoolean IlvGeoTIFFReader::isTiled | ( | ) | const |
Tells if the file opened by the reader is tiled or not.
IlTrue
if the file is tiled, IlFalse
otherwise.
|
virtual |
Reads the specified tile.
This method reads the tile at col, row and returns the resulting IlvBitmapData
. If the file is not tiled or if the tile at col, row is not part of the image, the method returns 0
.
IlvBitmapData
.
|
protectedvirtual |
Sets the error status of the reader.
status | The status to set. |
|
virtual |
Sets the projection of geometries generated by this feature iterator.
This method is to be used when feature source is not georeferenced. The default implementation of this method does nothing.
projection | The projection to be set. This projection becomes shared and is locked by this feature iterator. |
Reimplemented from IlvMapFeatureIterator.
© 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.