This class is an IlvMapFeatureIterator
specialized for reading GeoTIFF files.
More...
#include <ilviews/maps/format/geotiff/gtiffreader.h>
This class is an IlvMapFeatureIterator
specialized for reading GeoTIFF files.
Library: ilvmaps
◆ IlvGeoTIFFReader() [1/2]
IlvGeoTIFFReader::IlvGeoTIFFReader |
( |
const char * |
filename | ) |
|
Initializes a new instance of the GeoTIFF reader from a file name.
- Parameters
-
filename | The name of a GeoTIFF file. |
◆ IlvGeoTIFFReader() [2/2]
IlvGeoTIFFReader::IlvGeoTIFFReader |
( |
std::istream & |
input | ) |
|
Initializes a new instance of the GeoTIFF reader from an istream
.
- Parameters
-
input | A stream opened on a GeoTIFF file. |
◆ getColumnCount()
IlInt IlvGeoTIFFReader::getColumnCount |
( |
| ) |
|
Returns the number of columns.
- Returns
- The number of columns, if the file is tiled. If it is not, this method returns
1
.
◆ getDefaultFeatureRenderer()
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.
- Parameters
-
display | The display that is used by the returned renderer. |
- Returns
- The default renderer for this feature iterator.
Implements IlvMapFeatureIterator.
◆ getImageHeight()
IlInt IlvGeoTIFFReader::getImageHeight |
( |
| ) |
|
Returns the height of the image.
- Returns
- The image height in pixels.
◆ getImageWidth()
IlInt IlvGeoTIFFReader::getImageWidth |
( |
| ) |
|
Returns the width of the image.
- Returns
- The image width in pixels.
◆ getInitStatus()
virtual IlvMapsError IlvGeoTIFFReader::getInitStatus |
( |
| ) |
const |
|
virtual |
Checks the initialization status of this feature iterator.
- Returns
- The error code that may have happened during the iterator initialization.
Implements IlvMapFeatureIterator.
◆ getLowerRightCorner()
Computes the lower right corner of the rectangle containing all the map features of this iterator.
- Parameters
-
result | Set on return to the lower right corner of the rectangle containing all the map features of this iterator. |
- Returns
IlFalse
if lower right is unknown.
Implements IlvMapFeatureIterator.
◆ getMapFeature()
◆ getNextFeature()
virtual const IlvMapFeature* IlvGeoTIFFReader::getNextFeature |
( |
IlvMapsError & |
status | ) |
|
|
virtual |
Returns the next map feature of the iterator.
- Parameters
-
status | Set on return to the status of the operation. This status is IlvMaps::NoError() if no error occurs. |
- Returns
- The next map feature available, or
0
if the iteration is finished. The returned feature is owned by the feature iterator.
Implements IlvMapFeatureIterator.
◆ getProjection()
Returns the projection in which the geometric coordinates of the map features are expressed.
- Returns
- The projection of the geometry, or
0
if the feature iterator returns ungeoreferenced map features.
Implements IlvMapFeatureIterator.
◆ getRowCount()
IlInt IlvGeoTIFFReader::getRowCount |
( |
| ) |
|
Returns the number of row.
- Returns
- The number of rows, if the file is tiled. If it is not, this method returns
1
.
◆ getStreamer()
◆ getTileHeight()
IlUInt IlvGeoTIFFReader::getTileHeight |
( |
| ) |
|
Returns the height of a tile in pixels.
- Returns
- The height of a tile in pixels, or
0
if the image is not tiled.
◆ getTileOrigin()
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.
- Parameters
-
info | The IlvMapInfo used to adapt images coordinates to Rogue Wave Views coordinates. |
- Returns
- The tile origin.
◆ getTileWidth()
IlUInt IlvGeoTIFFReader::getTileWidth |
( |
| ) |
|
Returns the width of a tile in pixels.
- Returns
- The width of a tile in pixels, or
0
if the image is not tiled.
◆ getUpperLeftCorner()
Computes the upper left corner of the rectangle containing all the map features of this iterator.
- Parameters
-
result | Set on return to the upper left corner of the rectangle containing all the map features of this iterator. |
- Returns
IlFalse
if upper left is unknown.
Implements IlvMapFeatureIterator.
◆ getXScale()
IlFloat IlvGeoTIFFReader::getXScale |
( |
| ) |
|
Returns the x pixel scale.
- Returns
- The x pixels scale.
◆ getYScale()
IlFloat IlvGeoTIFFReader::getYScale |
( |
| ) |
|
Returns the y pixel scale,.
- Returns
- The y pixels scale.
◆ isTiled()
IlBoolean IlvGeoTIFFReader::isTiled |
( |
| ) |
const |
Indicates if the file opened by the reader is tiled or not.
- Returns
IlTrue
if the file is tiled, IlFalse
otherwise.
◆ readTile()
Reads the specified tile.
This method reads the tile at col, row and returns the resulting IlvBitmapData
.
- Parameters
-
col | The tile column index. |
row | The tile row index. |
- Returns
- The resulting
IlvBitmapData
, or 0
if the file is not tiled or if the tile at col, row is not part of the image.
◆ setInitStatus()
virtual void IlvGeoTIFFReader::setInitStatus |
( |
IlvMapsError |
status | ) |
|
|
protectedvirtual |
Sets the error status of the reader.
- Parameters
-
◆ setSourceProjection()
void IlvGeoTIFFReader::setSourceProjection |
( |
IlvProjection * |
projection | ) |
|
|
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.
- Parameters
-
projection | The projection to be set. This projection becomes shared and is locked by this feature iterator. |
Reimplemented from IlvMapFeatureIterator.