affine

package
v0.0.0-...-9fcebae Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Affine

type Affine struct {
	A float64
	B float64
	C float64
	D float64
	E float64
	F float64
}

Affine data structure This is the same as Affine Python package used in rasterio

func FromGDAL

func FromGDAL(transform [6]float64) *Affine

Create an Affine transform from GDAL's representation

func (*Affine) Invert

func (a *Affine) Invert() *Affine

Invert the Affine transform

func (*Affine) Multiply

func (a *Affine) Multiply(x float64, y float64) (float64, float64)

Apply the transform to x and y using matrix multiplication

func (*Affine) Resolution

func (a *Affine) Resolution() (float64, float64)

Return the x, y resolution of the Affine transform

func (*Affine) Scale

func (a *Affine) Scale(x float64, y float64) *Affine

Scale the Affine transform

func (*Affine) String

func (a *Affine) String() string

func (*Affine) ToGDAL

func (a *Affine) ToGDAL() (transform [6]float64)

Convert Affine transform to GDAL's representation

type Bounds

type Bounds struct {
	Xmin float64
	Ymin float64
	Xmax float64
	Ymax float64
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL