Geo::GDAL  2.0
Geo::GDAL::GeoTransform Class Reference

An array of affine transformation coefficients. More...

Public Member Functions

public method Apply (array reference x, array reference y)
 
public method FromGCPs (array GCPs, scalar ApproxOK)
 
public method Inv ()
 
public method new (array coeffs)
 

Detailed Description

An array of affine transformation coefficients.

The geo transformation has the form

x = a + column * b + row * c
y = d + column * e + row * f

where
(column,row) is the location in pixel coordinates
(x,y) is the location in projection coordinates
or vice versa. A Geo::GDAL::GeoTransform object is a reference to an anonymous array.

Definition at line 4180 of file all.pm.

Member Function Documentation

public method Geo::GDAL::GeoTransform::Apply ( array reference  x,
array reference  y 
)
Returns
a list (x, y), where x and y are references to arrays of transformed coordinates.
Code:
click to view
public method Geo::GDAL::GeoTransform::FromGCPs ( array  GCPs,
scalar  ApproxOK 
)

Compute transformation coefficients from a list of Geo::GDAL::GCP objects

Parameters
GCPsA list of Geo::GDAL::GCP objects.
ApproxOK[optional] Minimize the error in the coefficient (integer, default is true).
Returns
a new Geo::GDAL::GeoTransform object.
Code:
click to view
public method Geo::GDAL::GeoTransform::Inv ( )
Returns
a new Geo::GDAL::GeoTransform object, which is the inverse of this one (in void context changes this object).
Code:
click to view
public method Geo::GDAL::GeoTransform::new ( array  coeffs)

Class method.

Returns
a new Geo::GDAL::GeoTransform object.
Code:
click to view

The documentation for this class was generated from the following file: