Documentation ¶
Index ¶
- Constants
- func RegisterSchema(reg *schemas.Registry)
- type Coord
- func (Coord) DecodeFromPtr(p capnp.Ptr) Coord
- func (s Coord) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Coord) Gk() (GKCoord, error)
- func (s Coord) HasGk() bool
- func (s Coord) HasLatlon() bool
- func (s Coord) HasP2D() bool
- func (s Coord) HasRowcol() bool
- func (s Coord) HasUtm() bool
- func (s Coord) IsValid() bool
- func (s Coord) Latlon() (LatLonCoord, error)
- func (s Coord) Message() *capnp.Message
- func (s Coord) NewGk() (GKCoord, error)
- func (s Coord) NewLatlon() (LatLonCoord, error)
- func (s Coord) NewP2D() (Point2D, error)
- func (s Coord) NewRowcol() (RowCol, error)
- func (s Coord) NewUtm() (UTMCoord, error)
- func (s Coord) P2D() (Point2D, error)
- func (s Coord) Rowcol() (RowCol, error)
- func (s Coord) Segment() *capnp.Segment
- func (s Coord) SetGk(v GKCoord) error
- func (s Coord) SetLatlon(v LatLonCoord) error
- func (s Coord) SetP2D(v Point2D) error
- func (s Coord) SetRowcol(v RowCol) error
- func (s Coord) SetUtm(v UTMCoord) error
- func (s Coord) String() string
- func (s Coord) ToPtr() capnp.Ptr
- 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
- func (GKCoord) DecodeFromPtr(p capnp.Ptr) GKCoord
- func (s GKCoord) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s GKCoord) H() float64
- func (s GKCoord) IsValid() bool
- func (s GKCoord) MeridianNo() uint8
- func (s GKCoord) Message() *capnp.Message
- func (s GKCoord) R() float64
- func (s GKCoord) Segment() *capnp.Segment
- func (s GKCoord) SetH(v float64)
- func (s GKCoord) SetMeridianNo(v uint8)
- func (s GKCoord) SetR(v float64)
- func (s GKCoord) String() string
- func (s GKCoord) ToPtr() capnp.Ptr
- type GKCoord_Future
- type GKCoord_List
- type LatLonCoord
- func (LatLonCoord) DecodeFromPtr(p capnp.Ptr) LatLonCoord
- func (s LatLonCoord) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s LatLonCoord) IsValid() bool
- func (s LatLonCoord) Lat() float64
- func (s LatLonCoord) Lon() float64
- func (s LatLonCoord) Message() *capnp.Message
- func (s LatLonCoord) Segment() *capnp.Segment
- func (s LatLonCoord) SetLat(v float64)
- func (s LatLonCoord) SetLon(v float64)
- func (s LatLonCoord) String() string
- func (s LatLonCoord) ToPtr() capnp.Ptr
- type LatLonCoord_Future
- type LatLonCoord_List
- type Point2D
- func (Point2D) DecodeFromPtr(p capnp.Ptr) Point2D
- func (s Point2D) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s Point2D) IsValid() bool
- func (s Point2D) Message() *capnp.Message
- func (s Point2D) Segment() *capnp.Segment
- func (s Point2D) SetX(v float64)
- func (s Point2D) SetY(v float64)
- func (s Point2D) String() string
- func (s Point2D) ToPtr() capnp.Ptr
- func (s Point2D) X() float64
- func (s Point2D) Y() float64
- type Point2D_Future
- type Point2D_List
- type RectBounds
- func (s RectBounds) Br() (capnp.Ptr, error)
- func (RectBounds) DecodeFromPtr(p capnp.Ptr) RectBounds
- func (s RectBounds) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s RectBounds) HasBr() bool
- func (s RectBounds) HasTl() bool
- func (s RectBounds) IsValid() bool
- func (s RectBounds) Message() *capnp.Message
- func (s RectBounds) Segment() *capnp.Segment
- func (s RectBounds) SetBr(v capnp.Ptr) error
- func (s RectBounds) SetTl(v capnp.Ptr) error
- func (s RectBounds) String() string
- func (s RectBounds) Tl() (capnp.Ptr, error)
- func (s RectBounds) ToPtr() capnp.Ptr
- type RectBounds_Future
- type RectBounds_List
- type RowCol
- func (s RowCol) Col() uint64
- func (RowCol) DecodeFromPtr(p capnp.Ptr) RowCol
- func (s RowCol) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s RowCol) IsValid() bool
- func (s RowCol) Message() *capnp.Message
- func (s RowCol) Row() uint64
- func (s RowCol) Segment() *capnp.Segment
- func (s RowCol) SetCol(v uint64)
- func (s RowCol) SetRow(v uint64)
- func (s RowCol) String() string
- func (s RowCol) ToPtr() capnp.Ptr
- type RowCol_Future
- type RowCol_List
- type UTMCoord
- func (UTMCoord) DecodeFromPtr(p capnp.Ptr) UTMCoord
- func (s UTMCoord) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
- func (s UTMCoord) H() float64
- func (s UTMCoord) HasLatitudeBand() bool
- func (s UTMCoord) IsValid() bool
- func (s UTMCoord) LatitudeBand() (string, error)
- func (s UTMCoord) LatitudeBandBytes() ([]byte, error)
- func (s UTMCoord) Message() *capnp.Message
- func (s UTMCoord) R() float64
- func (s UTMCoord) Segment() *capnp.Segment
- func (s UTMCoord) SetH(v float64)
- func (s UTMCoord) SetLatitudeBand(v string) error
- func (s UTMCoord) SetR(v float64)
- func (s UTMCoord) SetZone(v uint8)
- func (s UTMCoord) String() string
- func (s UTMCoord) ToPtr() capnp.Ptr
- 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.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 RowCol_TypeID = 0xb0c6993e13e314ad
RowCol_TypeID is the unique identifier for the type RowCol.
const UTMCoord_TypeID = 0xeb1acd255e40f049
UTMCoord_TypeID is the unique identifier for the type UTMCoord.
Variables ¶
This section is empty.
Functions ¶
func RegisterSchema ¶
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) NewRowcol ¶
NewRowcol sets the rowcol field to a newly allocated RowCol 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)
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) Rowcol ¶
func (p Coord_Future) Rowcol() RowCol_Future
func (Coord_Future) Struct ¶
func (f Coord_Future) Struct() (Coord, error)
func (Coord_Future) Utm ¶
func (p Coord_Future) Utm() UTMCoord_Future
type Coord_List ¶
type Coord_List = capnp.StructList[Coord]
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.
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 Coord_Which_rowcol Coord_Which = 4 )
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 (f EPSG_Future) Struct() (EPSG, error)
type GKCoord_Future ¶
GKCoord_Future is a wrapper for a GKCoord promised by a client call.
func (GKCoord_Future) Struct ¶
func (f GKCoord_Future) Struct() (GKCoord, error)
type GKCoord_List ¶
type GKCoord_List = capnp.StructList[GKCoord]
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.
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) DecodeFromPtr ¶
func (LatLonCoord) DecodeFromPtr(p capnp.Ptr) LatLonCoord
func (LatLonCoord) EncodeAsPtr ¶
func (s LatLonCoord) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (LatLonCoord) IsValid ¶
func (s LatLonCoord) IsValid() bool
func (LatLonCoord) Lat ¶
func (s LatLonCoord) Lat() float64
func (LatLonCoord) Lon ¶
func (s LatLonCoord) Lon() float64
func (LatLonCoord) Message ¶
func (s LatLonCoord) Message() *capnp.Message
func (LatLonCoord) Segment ¶
func (s LatLonCoord) Segment() *capnp.Segment
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
func (LatLonCoord) ToPtr ¶
func (s LatLonCoord) ToPtr() capnp.Ptr
type LatLonCoord_Future ¶
LatLonCoord_Future is a wrapper for a LatLonCoord promised by a client call.
func (LatLonCoord_Future) Struct ¶
func (f LatLonCoord_Future) Struct() (LatLonCoord, error)
type LatLonCoord_List ¶
type LatLonCoord_List = capnp.StructList[LatLonCoord]
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.
type Point2D_Future ¶
Point2D_Future is a wrapper for a Point2D promised by a client call.
func (Point2D_Future) Struct ¶
func (f Point2D_Future) Struct() (Point2D, error)
type Point2D_List ¶
type Point2D_List = capnp.StructList[Point2D]
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.
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) DecodeFromPtr ¶
func (RectBounds) DecodeFromPtr(p capnp.Ptr) RectBounds
func (RectBounds) EncodeAsPtr ¶
func (s RectBounds) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr
func (RectBounds) HasBr ¶
func (s RectBounds) HasBr() bool
func (RectBounds) HasTl ¶
func (s RectBounds) HasTl() bool
func (RectBounds) IsValid ¶
func (s RectBounds) IsValid() bool
func (RectBounds) Message ¶
func (s RectBounds) Message() *capnp.Message
func (RectBounds) Segment ¶
func (s RectBounds) Segment() *capnp.Segment
func (RectBounds) String ¶
func (s RectBounds) String() string
func (RectBounds) ToPtr ¶
func (s RectBounds) ToPtr() capnp.Ptr
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 (f RectBounds_Future) Struct() (RectBounds, error)
func (RectBounds_Future) Tl ¶
func (p RectBounds_Future) Tl() *capnp.Future
type RectBounds_List ¶
type RectBounds_List = capnp.StructList[RectBounds]
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.
type RowCol_Future ¶
RowCol_Future is a wrapper for a RowCol promised by a client call.
func (RowCol_Future) Struct ¶
func (f RowCol_Future) Struct() (RowCol, error)
type RowCol_List ¶
type RowCol_List = capnp.StructList[RowCol]
RowCol_List is a list of RowCol.
func NewRowCol_List ¶
func NewRowCol_List(s *capnp.Segment, sz int32) (RowCol_List, error)
NewRowCol creates a new list of RowCol.
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 (f UTMCoord_Future) Struct() (UTMCoord, error)
type UTMCoord_List ¶
type UTMCoord_List = capnp.StructList[UTMCoord]
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.