isce3 0.25.0
Loading...
Searching...
No Matches
isce3::io::gdal::GeoTransform Struct Reference

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.
 
 GeoTransform (const std::array< double, 6 > &coeffs)
 Construct from GDAL affine transform coefficients.
 
std::array< double, 6 > getCoeffs () const
 Get equivalent GDAL affine transform coefficients.
 
double transformX (int pixel) const
 
double transformY (int line) const
 
bool isIdentity () const
 True if the transform is identity.
 

Public Attributes

double x0 = 0.
 
double y0 = 0.
 
double dx = 1.
 
double dy = 1.
 

Detailed Description

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

f(pixel) -> x

and

g(line) -> y

Constructor & Destructor Documentation

◆ GeoTransform() [1/2]

isce3::io::gdal::GeoTransform::GeoTransform ( double x0,
double y0,
double dx,
double dy )
inline

Constructor.

Parameters
[in]x0Left edge of the left-most pixel in the raster
[in]y0Upper edge of the upper-most line in the raster
[in]dxPixel width
[in]dyLine height

◆ GeoTransform() [2/2]

isce3::io::gdal::GeoTransform::GeoTransform ( const std::array< double, 6 > & coeffs)

Construct from GDAL affine transform coefficients.

Only separable, axis-aligned transforms are supported, (

coeffs[2] == 0.

and

coeffs[4] == 0.

)

Exceptions
isce3::except::InvalidArgumentif the supplied transform is unsupported
Parameters
[in]coeffsAffine transform coefficients such as those produced by GDALGetGeoTransform()

Member Function Documentation

◆ getCoeffs()

std::array< double, 6 > isce3::io::gdal::GeoTransform::getCoeffs ( ) const

Get equivalent GDAL affine transform coefficients.

Returns
Affine transform coefficients

The documentation for this struct was generated from the following files:

Generated for ISCE3.0 by doxygen 1.13.2.