isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
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. 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.
 

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

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
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

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

Get equivalent GDAL affine transform coefficients.

Returns
Affine transform coefficients
bool isce3::io::gdal::GeoTransform::isIdentity ( ) const
inline

True if the transform is identity.


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

Generated for ISCE3.0 by doxygen 1.8.5.