geo

package
v0.0.0-...-1f04649 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EPSG_wgs84  = uint32(4326)
	EPSG_utm21S = uint32(32721)
	EPSG_utm32N = uint32(25832)
	EPSG_gk5    = uint32(31469)
	EPSG_gk4    = uint32(31468)
	EPSG_gk3    = uint32(31467)
)

Constants defined in geo_coord.capnp.

View Source
const CoordType_TypeID = 0xe529b4deb322ece8

CoordType_TypeID is the unique identifier for the type CoordType.

View Source
const Coord_TypeID = 0xb8f6a6192a7359f8

Coord_TypeID is the unique identifier for the type Coord.

View Source
const EPSG_TypeID = 0xb79427a74eb97fc0

EPSG_TypeID is the unique identifier for the type EPSG.

View Source
const GKCoord_TypeID = 0x97ff7d61786091ae

GKCoord_TypeID is the unique identifier for the type GKCoord.

View Source
const LatLonCoord_TypeID = 0xecf1fc3039cc8ffb

LatLonCoord_TypeID is the unique identifier for the type LatLonCoord.

View Source
const Point2D_TypeID = 0xc88fb91c1e6986e2

Point2D_TypeID is the unique identifier for the type Point2D.

View Source
const RectBounds_TypeID = 0xb952dbe83866da4a

RectBounds_TypeID is the unique identifier for the type RectBounds.

View Source
const UTMCoord_TypeID = 0xeb1acd255e40f049

UTMCoord_TypeID is the unique identifier for the type UTMCoord.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coord

type Coord struct{ capnp.Struct }

func NewCoord

func NewCoord(s *capnp.Segment) (Coord, error)

func NewRootCoord

func NewRootCoord(s *capnp.Segment) (Coord, error)

func ReadRootCoord

func ReadRootCoord(msg *capnp.Message) (Coord, error)

func (Coord) Gk

func (s Coord) Gk() (GKCoord, error)

func (Coord) HasGk

func (s Coord) HasGk() bool

func (Coord) HasLatlon

func (s Coord) HasLatlon() bool

func (Coord) HasP2D

func (s Coord) HasP2D() bool

func (Coord) HasUtm

func (s Coord) HasUtm() bool

func (Coord) Latlon

func (s Coord) Latlon() (LatLonCoord, error)

func (Coord) NewGk

func (s Coord) NewGk() (GKCoord, error)

NewGk sets the gk field to a newly allocated GKCoord struct, preferring placement in s's segment.

func (Coord) NewLatlon

func (s Coord) NewLatlon() (LatLonCoord, error)

NewLatlon sets the latlon field to a newly allocated LatLonCoord struct, preferring placement in s's segment.

func (Coord) NewP2D

func (s Coord) NewP2D() (Point2D, error)

NewP2D sets the p2D field to a newly allocated Point2D struct, preferring placement in s's segment.

func (Coord) NewUtm

func (s Coord) NewUtm() (UTMCoord, error)

NewUtm sets the utm field to a newly allocated UTMCoord struct, preferring placement in s's segment.

func (Coord) P2D

func (s Coord) P2D() (Point2D, error)

func (Coord) SetGk

func (s Coord) SetGk(v GKCoord) error

func (Coord) SetLatlon

func (s Coord) SetLatlon(v LatLonCoord) error

func (Coord) SetP2D

func (s Coord) SetP2D(v Point2D) error

func (Coord) SetUtm

func (s Coord) SetUtm(v UTMCoord) error

func (Coord) String

func (s Coord) String() string

func (Coord) Utm

func (s Coord) Utm() (UTMCoord, error)

func (Coord) Which

func (s Coord) Which() Coord_Which

type CoordType

type CoordType uint16
const (
	CoordType_gk     CoordType = 0
	CoordType_utm    CoordType = 1
	CoordType_latlon CoordType = 2
)

Values of CoordType.

func CoordTypeFromString

func CoordTypeFromString(c string) CoordType

CoordTypeFromString returns the enum value with a name, or the zero value if there's no such value.

func (CoordType) String

func (c CoordType) String() string

String returns the enum's constant name.

type CoordType_List

type CoordType_List struct{ capnp.List }

func NewCoordType_List

func NewCoordType_List(s *capnp.Segment, sz int32) (CoordType_List, error)

func (CoordType_List) At

func (l CoordType_List) At(i int) CoordType

func (CoordType_List) Set

func (l CoordType_List) Set(i int, v CoordType)

type Coord_Future

type Coord_Future struct{ *capnp.Future }

Coord_Future is a wrapper for a Coord promised by a client call.

func (Coord_Future) Gk

func (Coord_Future) Latlon

func (p Coord_Future) Latlon() LatLonCoord_Future

func (Coord_Future) P2D

func (p Coord_Future) P2D() Point2D_Future

func (Coord_Future) Struct

func (p Coord_Future) Struct() (Coord, error)

func (Coord_Future) Utm

func (p Coord_Future) Utm() UTMCoord_Future

type Coord_List

type Coord_List struct{ capnp.List }

Coord_List is a list of Coord.

func NewCoord_List

func NewCoord_List(s *capnp.Segment, sz int32) (Coord_List, error)

NewCoord creates a new list of Coord.

func (Coord_List) At

func (s Coord_List) At(i int) Coord

func (Coord_List) Set

func (s Coord_List) Set(i int, v Coord) error

func (Coord_List) String

func (s Coord_List) String() string

type Coord_Which

type Coord_Which uint16
const (
	Coord_Which_gk     Coord_Which = 0
	Coord_Which_latlon Coord_Which = 1
	Coord_Which_utm    Coord_Which = 2
	Coord_Which_p2D    Coord_Which = 3
)

func (Coord_Which) String

func (w Coord_Which) String() string

type EPSG

type EPSG struct{ capnp.Struct }

func NewEPSG

func NewEPSG(s *capnp.Segment) (EPSG, error)

func NewRootEPSG

func NewRootEPSG(s *capnp.Segment) (EPSG, error)

func ReadRootEPSG

func ReadRootEPSG(msg *capnp.Message) (EPSG, error)

func (EPSG) String

func (s EPSG) String() string

type EPSG_Future

type EPSG_Future struct{ *capnp.Future }

EPSG_Future is a wrapper for a EPSG promised by a client call.

func (EPSG_Future) Struct

func (p EPSG_Future) Struct() (EPSG, error)

type EPSG_List

type EPSG_List struct{ capnp.List }

EPSG_List is a list of EPSG.

func NewEPSG_List

func NewEPSG_List(s *capnp.Segment, sz int32) (EPSG_List, error)

NewEPSG creates a new list of EPSG.

func (EPSG_List) At

func (s EPSG_List) At(i int) EPSG

func (EPSG_List) Set

func (s EPSG_List) Set(i int, v EPSG) error

func (EPSG_List) String

func (s EPSG_List) String() string

type GKCoord

type GKCoord struct{ capnp.Struct }

func NewGKCoord

func NewGKCoord(s *capnp.Segment) (GKCoord, error)

func NewRootGKCoord

func NewRootGKCoord(s *capnp.Segment) (GKCoord, error)

func ReadRootGKCoord

func ReadRootGKCoord(msg *capnp.Message) (GKCoord, error)

func (GKCoord) H

func (s GKCoord) H() int64

func (GKCoord) MeridianNo

func (s GKCoord) MeridianNo() uint8

func (GKCoord) R

func (s GKCoord) R() int64

func (GKCoord) SetH

func (s GKCoord) SetH(v int64)

func (GKCoord) SetMeridianNo

func (s GKCoord) SetMeridianNo(v uint8)

func (GKCoord) SetR

func (s GKCoord) SetR(v int64)

func (GKCoord) String

func (s GKCoord) String() string

type GKCoord_Future

type GKCoord_Future struct{ *capnp.Future }

GKCoord_Future is a wrapper for a GKCoord promised by a client call.

func (GKCoord_Future) Struct

func (p GKCoord_Future) Struct() (GKCoord, error)

type GKCoord_List

type GKCoord_List struct{ capnp.List }

GKCoord_List is a list of GKCoord.

func NewGKCoord_List

func NewGKCoord_List(s *capnp.Segment, sz int32) (GKCoord_List, error)

NewGKCoord creates a new list of GKCoord.

func (GKCoord_List) At

func (s GKCoord_List) At(i int) GKCoord

func (GKCoord_List) Set

func (s GKCoord_List) Set(i int, v GKCoord) error

func (GKCoord_List) String

func (s GKCoord_List) String() string

type LatLonCoord

type LatLonCoord struct{ capnp.Struct }

func NewLatLonCoord

func NewLatLonCoord(s *capnp.Segment) (LatLonCoord, error)

func NewRootLatLonCoord

func NewRootLatLonCoord(s *capnp.Segment) (LatLonCoord, error)

func ReadRootLatLonCoord

func ReadRootLatLonCoord(msg *capnp.Message) (LatLonCoord, error)

func (LatLonCoord) Lat

func (s LatLonCoord) Lat() float64

func (LatLonCoord) Lon

func (s LatLonCoord) Lon() float64

func (LatLonCoord) SetLat

func (s LatLonCoord) SetLat(v float64)

func (LatLonCoord) SetLon

func (s LatLonCoord) SetLon(v float64)

func (LatLonCoord) String

func (s LatLonCoord) String() string

type LatLonCoord_Future

type LatLonCoord_Future struct{ *capnp.Future }

LatLonCoord_Future is a wrapper for a LatLonCoord promised by a client call.

func (LatLonCoord_Future) Struct

func (p LatLonCoord_Future) Struct() (LatLonCoord, error)

type LatLonCoord_List

type LatLonCoord_List struct{ capnp.List }

LatLonCoord_List is a list of LatLonCoord.

func NewLatLonCoord_List

func NewLatLonCoord_List(s *capnp.Segment, sz int32) (LatLonCoord_List, error)

NewLatLonCoord creates a new list of LatLonCoord.

func (LatLonCoord_List) At

func (LatLonCoord_List) Set

func (s LatLonCoord_List) Set(i int, v LatLonCoord) error

func (LatLonCoord_List) String

func (s LatLonCoord_List) String() string

type Point2D

type Point2D struct{ capnp.Struct }

func NewPoint2D

func NewPoint2D(s *capnp.Segment) (Point2D, error)

func NewRootPoint2D

func NewRootPoint2D(s *capnp.Segment) (Point2D, error)

func ReadRootPoint2D

func ReadRootPoint2D(msg *capnp.Message) (Point2D, error)

func (Point2D) SetX

func (s Point2D) SetX(v int64)

func (Point2D) SetY

func (s Point2D) SetY(v int64)

func (Point2D) String

func (s Point2D) String() string

func (Point2D) X

func (s Point2D) X() int64

func (Point2D) Y

func (s Point2D) Y() int64

type Point2D_Future

type Point2D_Future struct{ *capnp.Future }

Point2D_Future is a wrapper for a Point2D promised by a client call.

func (Point2D_Future) Struct

func (p Point2D_Future) Struct() (Point2D, error)

type Point2D_List

type Point2D_List struct{ capnp.List }

Point2D_List is a list of Point2D.

func NewPoint2D_List

func NewPoint2D_List(s *capnp.Segment, sz int32) (Point2D_List, error)

NewPoint2D creates a new list of Point2D.

func (Point2D_List) At

func (s Point2D_List) At(i int) Point2D

func (Point2D_List) Set

func (s Point2D_List) Set(i int, v Point2D) error

func (Point2D_List) String

func (s Point2D_List) String() string

type RectBounds

type RectBounds struct{ capnp.Struct }

func NewRectBounds

func NewRectBounds(s *capnp.Segment) (RectBounds, error)

func NewRootRectBounds

func NewRootRectBounds(s *capnp.Segment) (RectBounds, error)

func ReadRootRectBounds

func ReadRootRectBounds(msg *capnp.Message) (RectBounds, error)

func (RectBounds) Br

func (s RectBounds) Br() (capnp.Ptr, error)

func (RectBounds) HasBr

func (s RectBounds) HasBr() bool

func (RectBounds) HasTl

func (s RectBounds) HasTl() bool

func (RectBounds) SetBr

func (s RectBounds) SetBr(v capnp.Ptr) error

func (RectBounds) SetTl

func (s RectBounds) SetTl(v capnp.Ptr) error

func (RectBounds) String

func (s RectBounds) String() string

func (RectBounds) Tl

func (s RectBounds) Tl() (capnp.Ptr, error)

type RectBounds_Future

type RectBounds_Future struct{ *capnp.Future }

RectBounds_Future is a wrapper for a RectBounds promised by a client call.

func (RectBounds_Future) Br

func (p RectBounds_Future) Br() *capnp.Future

func (RectBounds_Future) Struct

func (p RectBounds_Future) Struct() (RectBounds, error)

func (RectBounds_Future) Tl

func (p RectBounds_Future) Tl() *capnp.Future

type RectBounds_List

type RectBounds_List struct{ capnp.List }

RectBounds_List is a list of RectBounds.

func NewRectBounds_List

func NewRectBounds_List(s *capnp.Segment, sz int32) (RectBounds_List, error)

NewRectBounds creates a new list of RectBounds.

func (RectBounds_List) At

func (s RectBounds_List) At(i int) RectBounds

func (RectBounds_List) Set

func (s RectBounds_List) Set(i int, v RectBounds) error

func (RectBounds_List) String

func (s RectBounds_List) String() string

type UTMCoord

type UTMCoord struct{ capnp.Struct }

func NewRootUTMCoord

func NewRootUTMCoord(s *capnp.Segment) (UTMCoord, error)

func NewUTMCoord

func NewUTMCoord(s *capnp.Segment) (UTMCoord, error)

func ReadRootUTMCoord

func ReadRootUTMCoord(msg *capnp.Message) (UTMCoord, error)

func (UTMCoord) H

func (s UTMCoord) H() int64

func (UTMCoord) HasLatitudeBand

func (s UTMCoord) HasLatitudeBand() bool

func (UTMCoord) LatitudeBand

func (s UTMCoord) LatitudeBand() (string, error)

func (UTMCoord) LatitudeBandBytes

func (s UTMCoord) LatitudeBandBytes() ([]byte, error)

func (UTMCoord) R

func (s UTMCoord) R() int64

func (UTMCoord) SetH

func (s UTMCoord) SetH(v int64)

func (UTMCoord) SetLatitudeBand

func (s UTMCoord) SetLatitudeBand(v string) error

func (UTMCoord) SetR

func (s UTMCoord) SetR(v int64)

func (UTMCoord) SetZone

func (s UTMCoord) SetZone(v uint8)

func (UTMCoord) String

func (s UTMCoord) String() string

func (UTMCoord) Zone

func (s UTMCoord) Zone() uint8

type UTMCoord_Future

type UTMCoord_Future struct{ *capnp.Future }

UTMCoord_Future is a wrapper for a UTMCoord promised by a client call.

func (UTMCoord_Future) Struct

func (p UTMCoord_Future) Struct() (UTMCoord, error)

type UTMCoord_List

type UTMCoord_List struct{ capnp.List }

UTMCoord_List is a list of UTMCoord.

func NewUTMCoord_List

func NewUTMCoord_List(s *capnp.Segment, sz int32) (UTMCoord_List, error)

NewUTMCoord creates a new list of UTMCoord.

func (UTMCoord_List) At

func (s UTMCoord_List) At(i int) UTMCoord

func (UTMCoord_List) Set

func (s UTMCoord_List) Set(i int, v UTMCoord) error

func (UTMCoord_List) String

func (s UTMCoord_List) String() string

Jump to

Keyboard shortcuts

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