Documentation ¶
Index ¶
- func GetEncodedDatum(sr *SR) ([]byte, error)
- func RestoreDatumExposed(sr *SR, newDatum DatumExport)
- type DatumExport
- type SR
- type Transformer
- func AEA(this *SR) (forward, inverse Transformer, err error)
- func EqdC(this *SR) (forward, inverse Transformer, err error)
- func Krovak(this *SR) (forward, inverse Transformer, err error)
- func LCC(this *SR) (forward, inverse Transformer, err error)
- func LongLat(this *SR) (forward, inverse Transformer, err error)
- func Merc(this *SR) (forward, inverse Transformer, err error)
- func TMerc(this *SR) (forward, inverse Transformer, err error)
- func UTM(this *SR) (forward, inverse Transformer, err error)
- type TransformerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEncodedDatum ¶
func RestoreDatumExposed ¶
func RestoreDatumExposed(sr *SR, newDatum DatumExport)
Types ¶
type DatumExport ¶
type DatumExport struct { Datum_type datumType Datum_params []float64 A, B, Es, Ep2 float64 NadGrids string }
func DatumExposed ¶
func DatumExposed(sr *SR) DatumExport
type SR ¶
type SR struct {
Name, Title string
SRSCode string
DatumCode string
Rf float64
Lat0, Lat1, Lat2, LatTS float64
Long0, Long1, Long2, LongC float64
Alpha float64
X0, Y0, K0, K float64
A, A2, B, B2 float64
Ra bool
Zone float64
UTMSouth bool
DatumParams []float64
ToMeter float64
Units string
FromGreenwich float64
NADGrids string
Axis string
Ellps string
EllipseName string
Es float64
E float64
Ep2 float64
DatumName string
NoDefs bool
Czech bool
// contains filtered or unexported fields
}
SR holds information about a spatial reference (projection).
func (*SR) DeriveConstants ¶
func (json *SR) DeriveConstants()
DeriveConstants calculates some properties of the spatial reference based on other properties
func (*SR) Equal ¶
Equal determines whether spatial references sr and sr2 are equal to within ulp floating point units in the last place.
func (*SR) NewTransform ¶
func (source *SR) NewTransform(dest *SR) (Transformer, error)
NewTransform creates a function that transforms a point from sr to the destination spatial reference.
func (*SR) Transformers ¶
func (sr *SR) Transformers() (forward, inverse Transformer, err error)
Transformers returns forward and inverse transformation functions for this projection.
type Transformer ¶
A Transformer takes input coordinates and returns output coordinates and an error.
func AEA ¶
func AEA(this *SR) (forward, inverse Transformer, err error)
AEA is an Albers Conical Equal Area projection.
func EqdC ¶
func EqdC(this *SR) (forward, inverse Transformer, err error)
EqdC is an Equidistant Conic projection.
func Krovak ¶
func Krovak(this *SR) (forward, inverse Transformer, err error)
Krovak is a Krovak projection.
func LCC ¶
func LCC(this *SR) (forward, inverse Transformer, err error)
LCC is a Lambert Conformal Conic projection.
func LongLat ¶
func LongLat(this *SR) (forward, inverse Transformer, err error)
LongLat is a longitude-latitude (i.e., no projection) projection.
func Merc ¶
func Merc(this *SR) (forward, inverse Transformer, err error)
Merc is a mercator projection.
func TMerc ¶
func TMerc(this *SR) (forward, inverse Transformer, err error)
TMerc is a transverse Mercator projection.
func UTM ¶
func UTM(this *SR) (forward, inverse Transformer, err error)
UTM is a universal transverse Mercator projection.
type TransformerFunc ¶
type TransformerFunc func(*SR) (forward, inverse Transformer, err error)
A TransformerFunc creates forward and inverse Transformers from a projection.