tasutm

package module
v0.0.0-...-7b8595c Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: GPL-3.0 Imports: 3 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

tasutm

Library to map Tasmanian coordinates to full UTM grid references. Forked from Petr Lozhkin (im7mortal/UTM)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromLatLon

func FromLatLon(latitude, longitude float64, northern bool) (easting, northing float64, zoneNumber int, zoneLetter string, err error)

FromLatLon convert a latitude and longitude to Universal Transverse Mercator coordinates

func FromLatLonZone

func FromLatLonZone(latitude, longitude float64, northern bool, zn int) (easting, northing float64, zoneNumber int, zoneLetter string, err error)

FromLatLonZone convert a latitude and longitude to Universal Transverse Mercator coordinates enforcing a particular zone, which is useful where maps overlap zone edges

func ToLatLon

func ToLatLon(easting, northing float64, zoneNumber int, zoneLetter string, northern ...bool) (latitude, longitude float64, err error)

ToLatLon convert Universal Transverse Mercator coordinates to a latitude and longitude Since the zone letter is not strictly needed for the conversion you may also the “northern“ parameter instead, which is a named parameter and can be set to either true or false. In this case you should define fields clearly You can't set ZoneLetter or northern both.

func ValidateLatLone

func ValidateLatLone(latitude, longitude float64) error

ValidateLatLone check that latitude and longitude are valid.

Types

type InputError

type InputError error

InputError allow to distinguish if an error is from UTM conversion functions.

Jump to

Keyboard shortcuts

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