|
QGIS API Documentation
2.12.0-Lyon
|
Utility class for gathering information about rasters. More...
#include <qgsalignraster.h>
Public Member Functions | |
| RasterInfo (const QString &layerpath) | |
| Construct raster info with a path to a raster file. More... | |
| ~RasterInfo () | |
| int | bandCount () const |
| Return number of raster bands in the file. More... | |
| QSizeF | cellSize () const |
| Return cell size in map units. More... | |
| QString | crs () const |
| Return CRS in WKT format. More... | |
| void | dump () const |
| write contents of the object to standard error stream - for debugging More... | |
| QgsRectangle | extent () const |
| Return extent of the raster. More... | |
| QPointF | gridOffset () const |
| Return grid offset. More... | |
| double | identify (double mx, double my) |
| Get raster value at the given coordinates (from the first band) More... | |
| bool | isValid () const |
| Check whether the given path is a valid raster. More... | |
| QPointF | origin () const |
| Return origin of the raster. More... | |
| QSize | rasterSize () const |
| Return size of the raster grid in pixels. More... | |
Protected Attributes | |
| int | mBandCnt |
| number of raster's bands More... | |
| QString | mCrsWkt |
| CRS stored in WKT format. More... | |
| GDALDatasetH | mDataset |
| handle to open GDAL dataset More... | |
| double | mGeoTransform [6] |
| geotransform coefficients More... | |
| int | mXSize |
| raster grid size More... | |
| int | mYSize |
Friends | |
| class | QgsAlignRaster |
Utility class for gathering information about rasters.
Definition at line 44 of file qgsalignraster.h.
| QgsAlignRaster::RasterInfo::RasterInfo | ( | const QString & | layerpath | ) |
Construct raster info with a path to a raster file.
Definition at line 558 of file qgsalignraster.cpp.
| QgsAlignRaster::RasterInfo::~RasterInfo | ( | ) |
Definition at line 578 of file qgsalignraster.cpp.
|
inline |
Return number of raster bands in the file.
Definition at line 59 of file qgsalignraster.h.
| QSizeF QgsAlignRaster::RasterInfo::cellSize | ( | ) | const |
Return cell size in map units.
Definition at line 584 of file qgsalignraster.cpp.
|
inline |
Return CRS in WKT format.
Definition at line 55 of file qgsalignraster.h.
| void QgsAlignRaster::RasterInfo::dump | ( | ) | const |
write contents of the object to standard error stream - for debugging
Definition at line 605 of file qgsalignraster.cpp.
| QgsRectangle QgsAlignRaster::RasterInfo::extent | ( | ) | const |
Return extent of the raster.
Definition at line 595 of file qgsalignraster.cpp.
| QPointF QgsAlignRaster::RasterInfo::gridOffset | ( | ) | const |
Return grid offset.
Definition at line 589 of file qgsalignraster.cpp.
| double QgsAlignRaster::RasterInfo::identify | ( | double | mx, |
| double | my | ||
| ) |
Get raster value at the given coordinates (from the first band)
Definition at line 620 of file qgsalignraster.cpp.
|
inline |
Check whether the given path is a valid raster.
Definition at line 52 of file qgsalignraster.h.
| QPointF QgsAlignRaster::RasterInfo::origin | ( | ) | const |
Return origin of the raster.
Definition at line 600 of file qgsalignraster.cpp.
|
inline |
Return size of the raster grid in pixels.
Definition at line 57 of file qgsalignraster.h.
|
friend |
Definition at line 87 of file qgsalignraster.h.
|
protected |
number of raster's bands
Definition at line 85 of file qgsalignraster.h.
|
protected |
CRS stored in WKT format.
Definition at line 79 of file qgsalignraster.h.
|
protected |
handle to open GDAL dataset
Definition at line 77 of file qgsalignraster.h.
|
protected |
geotransform coefficients
Definition at line 81 of file qgsalignraster.h.
|
protected |
raster grid size
Definition at line 83 of file qgsalignraster.h.
|
protected |
Definition at line 83 of file qgsalignraster.h.
1.8.9.1