Documentation ¶
Index ¶
- Constants
- type Coord
- func (s Coord) Gk() (GKCoord, error)
- func (s Coord) HasGk() bool
- func (s Coord) HasLatlon() bool
- func (s Coord) HasP2D() bool
- func (s Coord) HasUtm() bool
- func (s Coord) Latlon() (LatLonCoord, error)
- func (s Coord) NewGk() (GKCoord, error)
- func (s Coord) NewLatlon() (LatLonCoord, error)
- func (s Coord) NewP2D() (Point2D, error)
- func (s Coord) NewUtm() (UTMCoord, error)
- func (s Coord) P2D() (Point2D, error)
- func (s Coord) SetGk(v GKCoord) error
- func (s Coord) SetLatlon(v LatLonCoord) error
- func (s Coord) SetP2D(v Point2D) error
- func (s Coord) SetUtm(v UTMCoord) error
- func (s Coord) String() string
- func (s Coord) Utm() (UTMCoord, error)
- func (s Coord) Which() Coord_Which
- type CoordType
- type CoordType_List
- type Coord_Future
- type Coord_List
- type Coord_Which
- type EPSG
- type EPSG_Future
- type EPSG_List
- type GKCoord
- type GKCoord_Future
- type GKCoord_List
- type LatLonCoord
- type LatLonCoord_Future
- type LatLonCoord_List
- type Point2D
- type Point2D_Future
- type Point2D_List
- type RectBounds
- type RectBounds_Future
- type RectBounds_List
- type UTMCoord
- func (s UTMCoord) H() int64
- func (s UTMCoord) HasLatitudeBand() bool
- func (s UTMCoord) LatitudeBand() (string, error)
- func (s UTMCoord) LatitudeBandBytes() ([]byte, error)
- func (s UTMCoord) R() int64
- func (s UTMCoord) SetH(v int64)
- func (s UTMCoord) SetLatitudeBand(v string) error
- func (s UTMCoord) SetR(v int64)
- func (s UTMCoord) SetZone(v uint8)
- func (s UTMCoord) String() string
- func (s UTMCoord) Zone() uint8
- type UTMCoord_Future
- type UTMCoord_List
Constants ¶
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.
const CoordType_TypeID = 0xe529b4deb322ece8
CoordType_TypeID is the unique identifier for the type CoordType.
const Coord_TypeID = 0xb8f6a6192a7359f8
Coord_TypeID is the unique identifier for the type Coord.
const EPSG_TypeID = 0xb79427a74eb97fc0
EPSG_TypeID is the unique identifier for the type EPSG.
const GKCoord_TypeID = 0x97ff7d61786091ae
GKCoord_TypeID is the unique identifier for the type GKCoord.
const LatLonCoord_TypeID = 0xecf1fc3039cc8ffb
LatLonCoord_TypeID is the unique identifier for the type LatLonCoord.
const Point2D_TypeID = 0xc88fb91c1e6986e2
Point2D_TypeID is the unique identifier for the type Point2D.
const RectBounds_TypeID = 0xb952dbe83866da4a
RectBounds_TypeID is the unique identifier for the type RectBounds.
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 ¶
func (Coord) Latlon ¶
func (s Coord) Latlon() (LatLonCoord, error)
func (Coord) NewGk ¶
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 ¶
NewP2D sets the p2D field to a newly allocated Point2D struct, preferring placement in s's segment.
func (Coord) NewUtm ¶
NewUtm sets the utm field to a newly allocated UTMCoord struct, preferring placement in s's segment.
func (Coord) SetLatlon ¶
func (s Coord) SetLatlon(v LatLonCoord) error
func (Coord) Which ¶
func (s Coord) Which() Coord_Which
type CoordType ¶
type CoordType uint16
Values of CoordType.
func CoordTypeFromString ¶
CoordTypeFromString returns the enum value with a name, or the zero value if there's no such value.
type CoordType_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 ¶
Coord_Future is a wrapper for a Coord promised by a client call.
func (Coord_Future) Gk ¶
func (p Coord_Future) Gk() GKCoord_Future
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 ¶
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) 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_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 ¶
EPSG_List is a list of EPSG.
func NewEPSG_List ¶
NewEPSG creates a new list of EPSG.
type GKCoord_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 ¶
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) String ¶
func (s GKCoord_List) String() string
type LatLonCoord ¶
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 ¶
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 ¶
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 (s LatLonCoord_List) At(i int) LatLonCoord
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_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 ¶
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) String ¶
func (s Point2D_List) String() string
type RectBounds ¶
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) HasBr ¶
func (s RectBounds) HasBr() bool
func (RectBounds) HasTl ¶
func (s RectBounds) HasTl() bool
func (RectBounds) String ¶
func (s RectBounds) String() string
type RectBounds_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 ¶
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 ¶
func (UTMCoord) HasLatitudeBand ¶
func (UTMCoord) LatitudeBand ¶
func (UTMCoord) LatitudeBandBytes ¶
func (UTMCoord) SetLatitudeBand ¶
type UTMCoord_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 ¶
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) String ¶
func (s UTMCoord_List) String() string