Geo::GDAL  2.1
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 Extent ()
 
public method FromGCPs (array GCPs, scalar ApproxOK)
 
public method Inv ()
 
public method NorthUp ()
 
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 cell coordinates
(x,y) is the location in projection coordinates
or vice versa. A Geo::GDAL::GeoTransform object is a reference to an anonymous array [a,b,c,d,e,f].

Definition at line 5108 of file all.pm.

Member Function Documentation

public method Geo::GDAL::GeoTransform::Apply ( array reference  x,
array reference  y 
)

Object method.

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::Extent ( )
Code:
click to view
public method Geo::GDAL::GeoTransform::FromGCPs ( array  GCPs,
scalar  ApproxOK 
)

Object method. 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 ( )

Object method.

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
public method Geo::GDAL::GeoTransform::NorthUp ( )
Code:
click to view

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