Transform coefficients for transforming from (pixel, line) coordinates in raster space to (x, y) coordinates in projection space. More...
#include <GeoTransform.h>
Public Member Functions | |
GeoTransform ()=default | |
Default constructor (identity transform) | |
GeoTransform (double x0, double y0, double dx, double dy) | |
Constructor. More... | |
GeoTransform (const std::array< double, 6 > &coeffs) | |
Construct from GDAL affine transform coefficients. More... | |
std::array< double, 6 > | getCoeffs () const |
Get equivalent GDAL affine transform coefficients. More... | |
double | transformX (int pixel) const |
double | transformY (int line) const |
bool | isIdentity () const |
True if the transform is identity. More... | |
Public Attributes | |
double | x0 = 0. |
double | y0 = 0. |
double | dx = 1. |
double | dy = 1. |
Transform coefficients for transforming from (pixel, line) coordinates in raster space to (x, y) coordinates in projection space.
Only separable, axis-aligned transforms are supported. That is, the transform must be able to be decomposed into
and
|
inline |
Constructor.
[in] | x0 | Left edge of the left-most pixel in the raster |
[in] | y0 | Upper edge of the upper-most line in the raster |
[in] | dx | Pixel width |
[in] | dy | Line height |
isce3::io::gdal::GeoTransform::GeoTransform | ( | const std::array< double, 6 > & | coeffs | ) |
Construct from GDAL affine transform coefficients.
Only separable, axis-aligned transforms are supported, (
and
)
isce3::except::InvalidArgument | if the supplied transform is unsupported |
[in] | coeffs | Affine transform coefficients such as those produced by GDALGetGeoTransform() |
std::array< double, 6 > isce3::io::gdal::GeoTransform::getCoeffs | ( | ) | const |
Get equivalent GDAL affine transform coefficients.
|
inline |
True if the transform is identity.