util

package
v0.0.0-...-a9fe1cf Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllNotNil

func AllNotNil(data ...any) bool

func CalculateGeoreferenceParameters

func CalculateGeoreferenceParameters(img types.Dimension, rasterPoints []types.Coord, extent types.Extent, margin float64) *types.WorldFileParameter

func CalculateRotationAngle

func CalculateRotationAngle(point1, point2 types.Coord) float64

func DimRatio

func DimRatio(dim types.Dimension) float64

func FileNameWithoutExtension

func FileNameWithoutExtension(fileName string) string

func FindDiagonalPoints

func FindDiagonalPoints(rectangle []types.Coord) (types.Diagonal, error)

func GetFeatureDimensions

func GetFeatureDimensions(d types.Diagonal, margin float64) (types.Dimension, types.Dimension)

func GetImageDimensions

func GetImageDimensions(file io.Reader) (types.Dimension, error)

func GetOrientationTag

func GetOrientationTag(file io.Reader) (int, error)

func GetOrientedImageDimensions

func GetOrientedImageDimensions(file1 io.Reader, file2 io.Reader) (types.Dimension, error)

func GetOrientedImageTesting

func GetOrientedImageTesting(file multipart.File) (types.Dimension, error)

func GetRasterFeaturePoints

func GetRasterFeaturePoints(filePath string) ([]types.Coord, error)

func LW

func RemoveAll

func RemoveAll(dir string) error

func SaveFile

func SaveFile(filePath string, fileHeader *multipart.FileHeader) error

func WriteWorldFileParametersToFile

func WriteWorldFileParametersToFile(filePath string, p types.WorldFileParameter) error

func ZipDirectory

func ZipDirectory(source string, zipWriter *zip.Writer, basePath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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