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 ¶
- Variables
- func KeyValue(t *Tag) (string, interface{}, error)
- type Body
- func (*Body) Descriptor() ([]byte, []int)
- func (m *Body) GetFeature() []*Feature
- func (m *Body) GetMeta() *Meta
- func (m *Body) Marshal() (dAtA []byte, err error)
- func (m *Body) MarshalTo(dAtA []byte) (int, error)
- func (*Body) ProtoMessage()
- func (m *Body) Reset()
- func (m *Body) Size() (n int)
- func (m *Body) String() string
- func (m *Body) Unmarshal(dAtA []byte) error
- type Feature
- func (*Feature) Descriptor() ([]byte, []int)
- func (m *Feature) GetBottom() float64
- func (m *Feature) GetGeom() []byte
- func (m *Feature) GetGeomserial() Feature_GeomSerialization
- func (m *Feature) GetGeomtype() Feature_GeomType
- func (m *Feature) GetLeft() float64
- func (m *Feature) GetRight() float64
- func (m *Feature) GetTags() []*Tag
- func (m *Feature) GetTop() float64
- func (m *Feature) Marshal() (dAtA []byte, err error)
- func (m *Feature) MarshalTo(dAtA []byte) (int, error)
- func (*Feature) ProtoMessage()
- func (m *Feature) Reset()
- func (m *Feature) Size() (n int)
- func (m *Feature) String() string
- func (m *Feature) Unmarshal(dAtA []byte) error
- type Feature_GeomSerialization
- type Feature_GeomType
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)
- func (m *Meta) GetTags() []*Tag
- func (m *Meta) Marshal() (dAtA []byte, err error)
- func (m *Meta) MarshalTo(dAtA []byte) (int, error)
- func (*Meta) ProtoMessage()
- func (m *Meta) Reset()
- func (m *Meta) Size() (n int)
- func (m *Meta) String() string
- func (m *Meta) Unmarshal(dAtA []byte) error
- type Tag
- func (*Tag) Descriptor() ([]byte, []int)
- func (m *Tag) GetKey() string
- func (m *Tag) GetType() Tag_ValueType
- func (m *Tag) GetValue() []byte
- func (m *Tag) Marshal() (dAtA []byte, err error)
- func (m *Tag) MarshalTo(dAtA []byte) (int, error)
- func (*Tag) ProtoMessage()
- func (m *Tag) Reset()
- func (m *Tag) Size() (n int)
- func (m *Tag) String() string
- func (m *Tag) Unmarshal(dAtA []byte) error
- type Tag_ValueType
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 ¶
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) GetFeature ¶
func (*Body) ProtoMessage ¶
func (*Body) ProtoMessage()
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) GetGeomserial ¶
func (m *Feature) GetGeomserial() Feature_GeomSerialization
func (*Feature) GetGeomtype ¶
func (m *Feature) GetGeomtype() Feature_GeomType
func (*Feature) ProtoMessage ¶
func (*Feature) ProtoMessage()
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) ProtoMessage ¶
func (*Meta) ProtoMessage()
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) GetType ¶
func (m *Tag) GetType() Tag_ValueType
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
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
Click to show internal directories.
Click to hide internal directories.