fileformat

package
v0.0.0-...-85aa7e7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package fileformat is a generated protocol buffer package.

It is generated from these files:

fileformat.proto

It has these top-level messages:

Body
Meta
Feature
Tag

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthFileformat = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFileformat   = fmt.Errorf("proto: integer overflow")
)
View Source
var Feature_GeomSerialization_name = map[int32]string{
	0: "WKB",
}
View Source
var Feature_GeomSerialization_value = map[string]int32{
	"WKB": 0,
}
View Source
var Feature_GeomType_name = map[int32]string{
	0: "UNKNOWN",
	1: "POINT",
	2: "LINE",
	3: "POLYGON",
}
View Source
var Feature_GeomType_value = map[string]int32{
	"UNKNOWN": 0,
	"POINT":   1,
	"LINE":    2,
	"POLYGON": 3,
}
View Source
var Tag_ValueType_name = map[int32]string{
	0: "STRING",
	1: "INT",
	2: "DOUBLE",
}
View Source
var Tag_ValueType_value = map[string]int32{
	"STRING": 0,
	"INT":    1,
	"DOUBLE": 2,
}

Functions

func KeyValue

func KeyValue(t *Tag) (string, interface{}, error)

KeyValue retrieves key and value from a Tag.

Types

type Body

type Body struct {
	Meta    *Meta      `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"`
	Feature []*Feature `protobuf:"bytes,2,rep,name=feature" json:"feature,omitempty"`
}

func (*Body) Descriptor

func (*Body) Descriptor() ([]byte, []int)

func (*Body) GetFeature

func (m *Body) GetFeature() []*Feature

func (*Body) GetMeta

func (m *Body) GetMeta() *Meta

func (*Body) Marshal

func (m *Body) Marshal() (dAtA []byte, err error)

func (*Body) MarshalTo

func (m *Body) MarshalTo(dAtA []byte) (int, error)

func (*Body) ProtoMessage

func (*Body) ProtoMessage()

func (*Body) Reset

func (m *Body) Reset()

func (*Body) Size

func (m *Body) Size() (n int)

func (*Body) String

func (m *Body) String() string

func (*Body) Unmarshal

func (m *Body) Unmarshal(dAtA []byte) error

type Feature

type Feature struct {
	Geomtype   Feature_GeomType          `protobuf:"varint,1,opt,name=geomtype,proto3,enum=Feature_GeomType" json:"geomtype,omitempty"`
	Geomserial Feature_GeomSerialization `protobuf:"varint,2,opt,name=geomserial,proto3,enum=Feature_GeomSerialization" json:"geomserial,omitempty"`
	Geom       []byte                    `protobuf:"bytes,3,opt,name=geom,proto3" json:"geom,omitempty"`
	// geometry bbox
	Left   float64 `protobuf:"fixed64,4,opt,name=left,proto3" json:"left,omitempty"`
	Right  float64 `protobuf:"fixed64,5,opt,name=right,proto3" json:"right,omitempty"`
	Top    float64 `protobuf:"fixed64,6,opt,name=top,proto3" json:"top,omitempty"`
	Bottom float64 `protobuf:"fixed64,7,opt,name=bottom,proto3" json:"bottom,omitempty"`
	Tags   []*Tag  `protobuf:"bytes,8,rep,name=tags" json:"tags,omitempty"`
}

func (*Feature) Descriptor

func (*Feature) Descriptor() ([]byte, []int)

func (*Feature) GetBottom

func (m *Feature) GetBottom() float64

func (*Feature) GetGeom

func (m *Feature) GetGeom() []byte

func (*Feature) GetGeomserial

func (m *Feature) GetGeomserial() Feature_GeomSerialization

func (*Feature) GetGeomtype

func (m *Feature) GetGeomtype() Feature_GeomType

func (*Feature) GetLeft

func (m *Feature) GetLeft() float64

func (*Feature) GetRight

func (m *Feature) GetRight() float64

func (*Feature) GetTags

func (m *Feature) GetTags() []*Tag

func (*Feature) GetTop

func (m *Feature) GetTop() float64

func (*Feature) Marshal

func (m *Feature) Marshal() (dAtA []byte, err error)

func (*Feature) MarshalTo

func (m *Feature) MarshalTo(dAtA []byte) (int, error)

func (*Feature) ProtoMessage

func (*Feature) ProtoMessage()

func (*Feature) Reset

func (m *Feature) Reset()

func (*Feature) Size

func (m *Feature) Size() (n int)

func (*Feature) String

func (m *Feature) String() string

func (*Feature) Unmarshal

func (m *Feature) Unmarshal(dAtA []byte) error

type Feature_GeomSerialization

type Feature_GeomSerialization int32
const (
	Feature_WKB Feature_GeomSerialization = 0
)

func (Feature_GeomSerialization) EnumDescriptor

func (Feature_GeomSerialization) EnumDescriptor() ([]byte, []int)

func (Feature_GeomSerialization) String

func (x Feature_GeomSerialization) String() string

type Feature_GeomType

type Feature_GeomType int32
const (
	Feature_UNKNOWN Feature_GeomType = 0
	Feature_POINT   Feature_GeomType = 1
	Feature_LINE    Feature_GeomType = 2
	Feature_POLYGON Feature_GeomType = 3
)

func (Feature_GeomType) EnumDescriptor

func (Feature_GeomType) EnumDescriptor() ([]byte, []int)

func (Feature_GeomType) String

func (x Feature_GeomType) String() string

type Meta

type Meta struct {
	Tags []*Tag `protobuf:"bytes,1,rep,name=tags" json:"tags,omitempty"`
}

func (*Meta) Descriptor

func (*Meta) Descriptor() ([]byte, []int)

func (*Meta) GetTags

func (m *Meta) GetTags() []*Tag

func (*Meta) Marshal

func (m *Meta) Marshal() (dAtA []byte, err error)

func (*Meta) MarshalTo

func (m *Meta) MarshalTo(dAtA []byte) (int, error)

func (*Meta) ProtoMessage

func (*Meta) ProtoMessage()

func (*Meta) Reset

func (m *Meta) Reset()

func (*Meta) Size

func (m *Meta) Size() (n int)

func (*Meta) String

func (m *Meta) String() string

func (*Meta) Unmarshal

func (m *Meta) Unmarshal(dAtA []byte) error

type Tag

type Tag struct {
	Key   string        `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value []byte        `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	Type  Tag_ValueType `protobuf:"varint,3,opt,name=type,proto3,enum=Tag_ValueType" json:"type,omitempty"`
}

func (*Tag) Descriptor

func (*Tag) Descriptor() ([]byte, []int)

func (*Tag) GetKey

func (m *Tag) GetKey() string

func (*Tag) GetType

func (m *Tag) GetType() Tag_ValueType

func (*Tag) GetValue

func (m *Tag) GetValue() []byte

func (*Tag) Marshal

func (m *Tag) Marshal() (dAtA []byte, err error)

func (*Tag) MarshalTo

func (m *Tag) MarshalTo(dAtA []byte) (int, error)

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) Reset

func (m *Tag) Reset()

func (*Tag) Size

func (m *Tag) Size() (n int)

func (*Tag) String

func (m *Tag) String() string

func (*Tag) Unmarshal

func (m *Tag) Unmarshal(dAtA []byte) error

type Tag_ValueType

type Tag_ValueType int32
const (
	Tag_STRING Tag_ValueType = 0
	Tag_INT    Tag_ValueType = 1
	Tag_DOUBLE Tag_ValueType = 2
)

func ValueType

func ValueType(i interface{}) ([]byte, Tag_ValueType, error)

func (Tag_ValueType) EnumDescriptor

func (Tag_ValueType) EnumDescriptor() ([]byte, []int)

func (Tag_ValueType) String

func (x Tag_ValueType) String() string

Jump to

Keyboard shortcuts

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