Versions in this module Expand all Collapse all v0 v0.1.0 Dec 31, 2021 Changes in this version + type AllIterator struct + func NewAllIterator(r *Raster) *AllIterator + func (it *AllIterator) Error() error + func (it *AllIterator) Get() *Cell + func (it *AllIterator) Next() bool + type Bitmap struct + Data []bool + Size int + Xsize int + Ysize int + func NewBitmap(xsize, ysize int) *Bitmap + func NewBitmapWithRaster(r *Raster) *Bitmap + func (bm *Bitmap) Get(x, y int) bool + func (bm *Bitmap) GetWithCell(c *Cell) bool + func (bm *Bitmap) IsInRegion(x, y int) bool + func (bm *Bitmap) Set(x, y int) + func (bm *Bitmap) SetWithCell(c *Cell) + func (bm *Bitmap) String() string + func (bm *Bitmap) Unset(x, y int) + func (bm *Bitmap) UnsetWithCell(c *Cell) + type BorderIterator struct + func NewBorderIterator(r *Raster) *BorderIterator + func (it *BorderIterator) Error() error + func (it *BorderIterator) Get() *Cell + func (it *BorderIterator) Next() bool + type Cell struct + Value *float64 + Xindex int + Yindex int + func (c *Cell) EdgeDirection(r *Raster) Direction + func (c *Cell) GetValue() float64 + func (c *Cell) RelativeDirection(neighbor *Cell) Direction + func (c *Cell) SetValue(val float64) + type Direction int + const Bottom + const BottomLeft + const BottomRight + const Left + const None + const Right + const Top + const TopLeft + const TopRight + func (d Direction) IsDiagonal() bool + type InnerRegionIterator struct + func NewInnerRegionIterator(r *Raster) *InnerRegionIterator + func (it *InnerRegionIterator) Error() error + func (it *InnerRegionIterator) Get() *Cell + func (it *InnerRegionIterator) Next() bool + type Intmap struct + Data []int + Size int + Xsize int + Ysize int + func NewIntmap(xsize, ysize int) *Intmap + func NewIntmapWithRaster(r *Raster) *Intmap + func (bm *Intmap) Get(x, y int) int + func (bm *Intmap) GetWithCell(c *Cell) int + func (bm *Intmap) IsInRegion(x, y int) bool + func (bm *Intmap) Set(x, y, val int) + func (bm *Intmap) SetWithCell(c *Cell, val int) + func (bm *Intmap) String() string + type Iterator interface + Error func() error + Get func() *Cell + Next func() bool + type NeighborIterator struct + func NewNeighborIterator(r *Raster, xCenter int, yCenter int) *NeighborIterator + func NewNeighborIteratorWithCell(r *Raster, c *Cell) *NeighborIterator + func (it *NeighborIterator) Error() error + func (it *NeighborIterator) Get() *Cell + func (it *NeighborIterator) Next() bool + type Raster struct + CellXSize float64 + CellYSize float64 + Data []float64 + Nodata float64 + Size int + Xsize int + Ysize int + func CopyRaster(r *Raster) *Raster + func NewRaster(xsize, ysize int, cellXSize, cellYSize, noData float64) *Raster + func NewRasterWithRaster(r *Raster) *Raster + func (r *Raster) Get(x, y int) float64 + func (r *Raster) GetWithCell(c *Cell) float64 + func (r *Raster) IsInRegion(x, y int) bool + func (r *Raster) Set(x, y int, val float64) + func (r *Raster) SetWithCell(c *Cell, val float64) + func (r *Raster) String() string