geo

package module
v0.0.0-...-73a4e2e Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MPL-2.0 Imports: 5 Imported by: 5

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.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 RowCol_TypeID = 0xb0c6993e13e314ad

RowCol_TypeID is the unique identifier for the type RowCol.

View Source
const UTMCoord_TypeID = 0xeb1acd255e40f049

UTMCoord_TypeID is the unique identifier for the type UTMCoord.

Variables

This section is empty.

Functions

func RegisterSchema

func RegisterSchema(reg *schemas.Registry)

Types

type Coord

type Coord 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) DecodeFromPtr

func (Coord) DecodeFromPtr(p capnp.Ptr) Coord

func (Coord) EncodeAsPtr

func (s Coord) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

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) HasRowcol

func (s Coord) HasRowcol() bool

func (Coord) HasUtm

func (s Coord) HasUtm() bool

func (Coord) IsValid

func (s Coord) IsValid() bool

func (Coord) Latlon

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

func (Coord) Message

func (s Coord) Message() *capnp.Message

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) NewRowcol

func (s Coord) NewRowcol() (RowCol, error)

NewRowcol sets the rowcol field to a newly allocated RowCol 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) Rowcol

func (s Coord) Rowcol() (RowCol, error)

func (Coord) Segment

func (s Coord) Segment() *capnp.Segment

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) SetRowcol

func (s Coord) SetRowcol(v RowCol) error

func (Coord) SetUtm

func (s Coord) SetUtm(v UTMCoord) error

func (Coord) String

func (s Coord) String() string

func (Coord) ToPtr

func (s Coord) ToPtr() capnp.Ptr

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 = capnp.EnumList[CoordType]

func NewCoordType_List

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

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) 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

type EPSG 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) DecodeFromPtr

func (EPSG) DecodeFromPtr(p capnp.Ptr) EPSG

func (EPSG) EncodeAsPtr

func (s EPSG) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (EPSG) IsValid

func (s EPSG) IsValid() bool

func (EPSG) Message

func (s EPSG) Message() *capnp.Message

func (EPSG) Segment

func (s EPSG) Segment() *capnp.Segment

func (EPSG) String

func (s EPSG) String() string

func (EPSG) ToPtr

func (s EPSG) ToPtr() capnp.Ptr

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 (f EPSG_Future) Struct() (EPSG, error)

type EPSG_List

type EPSG_List = capnp.StructList[EPSG]

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.

type GKCoord

type GKCoord 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) DecodeFromPtr

func (GKCoord) DecodeFromPtr(p capnp.Ptr) GKCoord

func (GKCoord) EncodeAsPtr

func (s GKCoord) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (GKCoord) H

func (s GKCoord) H() float64

func (GKCoord) IsValid

func (s GKCoord) IsValid() bool

func (GKCoord) MeridianNo

func (s GKCoord) MeridianNo() uint8

func (GKCoord) Message

func (s GKCoord) Message() *capnp.Message

func (GKCoord) R

func (s GKCoord) R() float64

func (GKCoord) Segment

func (s GKCoord) Segment() *capnp.Segment

func (GKCoord) SetH

func (s GKCoord) SetH(v float64)

func (GKCoord) SetMeridianNo

func (s GKCoord) SetMeridianNo(v uint8)

func (GKCoord) SetR

func (s GKCoord) SetR(v float64)

func (GKCoord) String

func (s GKCoord) String() string

func (GKCoord) ToPtr

func (s GKCoord) ToPtr() capnp.Ptr

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 (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

type LatLonCoord 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) 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

type LatLonCoord_Future struct{ *capnp.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

type Point2D 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) DecodeFromPtr

func (Point2D) DecodeFromPtr(p capnp.Ptr) Point2D

func (Point2D) EncodeAsPtr

func (s Point2D) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (Point2D) IsValid

func (s Point2D) IsValid() bool

func (Point2D) Message

func (s Point2D) Message() *capnp.Message

func (Point2D) Segment

func (s Point2D) Segment() *capnp.Segment

func (Point2D) SetX

func (s Point2D) SetX(v float64)

func (Point2D) SetY

func (s Point2D) SetY(v float64)

func (Point2D) String

func (s Point2D) String() string

func (Point2D) ToPtr

func (s Point2D) ToPtr() capnp.Ptr

func (Point2D) X

func (s Point2D) X() float64

func (Point2D) Y

func (s Point2D) Y() float64

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 (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

type RectBounds 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) 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) 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)

func (RectBounds) ToPtr

func (s RectBounds) ToPtr() capnp.Ptr

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 (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

type RowCol capnp.Struct

func NewRootRowCol

func NewRootRowCol(s *capnp.Segment) (RowCol, error)

func NewRowCol

func NewRowCol(s *capnp.Segment) (RowCol, error)

func ReadRootRowCol

func ReadRootRowCol(msg *capnp.Message) (RowCol, error)

func (RowCol) Col

func (s RowCol) Col() uint64

func (RowCol) DecodeFromPtr

func (RowCol) DecodeFromPtr(p capnp.Ptr) RowCol

func (RowCol) EncodeAsPtr

func (s RowCol) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (RowCol) IsValid

func (s RowCol) IsValid() bool

func (RowCol) Message

func (s RowCol) Message() *capnp.Message

func (RowCol) Row

func (s RowCol) Row() uint64

func (RowCol) Segment

func (s RowCol) Segment() *capnp.Segment

func (RowCol) SetCol

func (s RowCol) SetCol(v uint64)

func (RowCol) SetRow

func (s RowCol) SetRow(v uint64)

func (RowCol) String

func (s RowCol) String() string

func (RowCol) ToPtr

func (s RowCol) ToPtr() capnp.Ptr

type RowCol_Future

type RowCol_Future struct{ *capnp.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

type UTMCoord 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) DecodeFromPtr

func (UTMCoord) DecodeFromPtr(p capnp.Ptr) UTMCoord

func (UTMCoord) EncodeAsPtr

func (s UTMCoord) EncodeAsPtr(seg *capnp.Segment) capnp.Ptr

func (UTMCoord) H

func (s UTMCoord) H() float64

func (UTMCoord) HasLatitudeBand

func (s UTMCoord) HasLatitudeBand() bool

func (UTMCoord) IsValid

func (s UTMCoord) IsValid() bool

func (UTMCoord) LatitudeBand

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

func (UTMCoord) LatitudeBandBytes

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

func (UTMCoord) Message

func (s UTMCoord) Message() *capnp.Message

func (UTMCoord) R

func (s UTMCoord) R() float64

func (UTMCoord) Segment

func (s UTMCoord) Segment() *capnp.Segment

func (UTMCoord) SetH

func (s UTMCoord) SetH(v float64)

func (UTMCoord) SetLatitudeBand

func (s UTMCoord) SetLatitudeBand(v string) error

func (UTMCoord) SetR

func (s UTMCoord) SetR(v float64)

func (UTMCoord) SetZone

func (s UTMCoord) SetZone(v uint8)

func (UTMCoord) String

func (s UTMCoord) String() string

func (UTMCoord) ToPtr

func (s UTMCoord) ToPtr() capnp.Ptr

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 (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.

Jump to

Keyboard shortcuts

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