binary

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidMagic = errors.New("invalid magic")
View Source
var ExtensionTWKB = []byte{'T', 'W', 'K', 'B'}

Functions

This section is empty.

Types

type EnvelopeContentsIndicatorCode

type EnvelopeContentsIndicatorCode uint8
const (
	NoEnvelope EnvelopeContentsIndicatorCode = iota
	XY
	XYZ
	XYM
	XYZM
)

func (EnvelopeContentsIndicatorCode) Size

func (EnvelopeContentsIndicatorCode) String

type Header struct {
	HeaderTop
	HeaderSrs
	ExtensionCode []byte
}

See http://www.geopackage.org/spec/#gpb_data_blob_format

func Read

func Read(r io.Reader) (*Header, error)

func (*Header) String

func (b *Header) String() string

func (*Header) Write

func (b *Header) Write(w io.Writer) error

type HeaderSrs

type HeaderSrs struct {
	SrsId int32
}

func (*HeaderSrs) String

func (h *HeaderSrs) String() string

type HeaderTop

type HeaderTop struct {
	Magic   [2]byte
	Version uint8
	Flags   uint8
}

func (*HeaderTop) ByteOrder

func (h *HeaderTop) ByteOrder() binary.ByteOrder

func (*HeaderTop) Empty

func (h *HeaderTop) Empty() bool

func (*HeaderTop) EnvelopeContentsIndicatorCode

func (h *HeaderTop) EnvelopeContentsIndicatorCode() EnvelopeContentsIndicatorCode

func (*HeaderTop) SetEnvelopeContentsIndicatorCode

func (h *HeaderTop) SetEnvelopeContentsIndicatorCode(c EnvelopeContentsIndicatorCode)

func (*HeaderTop) SetType

func (h *HeaderTop) SetType(t Type)

func (*HeaderTop) String

func (h *HeaderTop) String() string

func (*HeaderTop) Type

func (h *HeaderTop) Type() Type

type Type

type Type uint8
const (
	UnknownType Type = iota
	StandardType
	ExtendedType
)

func (Type) String

func (t Type) String() string

Jump to

Keyboard shortcuts

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