Documentation ¶
Index ¶
- Constants
- Variables
- type Tile
- func (*Tile) Descriptor() ([]byte, []int)
- func (*Tile) ExtensionRangeArray() []proto.ExtensionRange
- func (m *Tile) GetLayers() []*Tile_Layer
- func (m *Tile) Marshal() (dAtA []byte, err error)
- func (m *Tile) MarshalTo(dAtA []byte) (int, error)
- func (m *Tile) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Tile) ProtoMessage()
- func (m *Tile) Reset()
- func (m *Tile) Size() (n int)
- func (m *Tile) String() string
- func (m *Tile) Unmarshal(dAtA []byte) error
- func (m *Tile) XXX_DiscardUnknown()
- func (m *Tile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tile) XXX_Merge(src proto.Message)
- func (m *Tile) XXX_Size() int
- func (m *Tile) XXX_Unmarshal(b []byte) error
- type Tile_Feature
- func (*Tile_Feature) Descriptor() ([]byte, []int)
- func (m *Tile_Feature) GetGeometry() []uint32
- func (m *Tile_Feature) GetId() uint64
- func (m *Tile_Feature) GetTags() []uint32
- func (m *Tile_Feature) GetType() Tile_GeomType
- func (m *Tile_Feature) Marshal() (dAtA []byte, err error)
- func (m *Tile_Feature) MarshalTo(dAtA []byte) (int, error)
- func (m *Tile_Feature) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Tile_Feature) ProtoMessage()
- func (m *Tile_Feature) Reset()
- func (m *Tile_Feature) Size() (n int)
- func (m *Tile_Feature) String() string
- func (m *Tile_Feature) Unmarshal(dAtA []byte) error
- func (m *Tile_Feature) XXX_DiscardUnknown()
- func (m *Tile_Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tile_Feature) XXX_Merge(src proto.Message)
- func (m *Tile_Feature) XXX_Size() int
- func (m *Tile_Feature) XXX_Unmarshal(b []byte) error
- type Tile_GeomType
- type Tile_Layer
- func (*Tile_Layer) Descriptor() ([]byte, []int)
- func (*Tile_Layer) ExtensionRangeArray() []proto.ExtensionRange
- func (m *Tile_Layer) GetExtent() uint32
- func (m *Tile_Layer) GetFeatures() []*Tile_Feature
- func (m *Tile_Layer) GetKeys() []string
- func (m *Tile_Layer) GetName() string
- func (m *Tile_Layer) GetValues() []*Tile_Value
- func (m *Tile_Layer) GetVersion() uint32
- func (m *Tile_Layer) Marshal() (dAtA []byte, err error)
- func (m *Tile_Layer) MarshalTo(dAtA []byte) (int, error)
- func (m *Tile_Layer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Tile_Layer) ProtoMessage()
- func (m *Tile_Layer) Reset()
- func (m *Tile_Layer) Size() (n int)
- func (m *Tile_Layer) String() string
- func (m *Tile_Layer) Unmarshal(dAtA []byte) error
- func (m *Tile_Layer) XXX_DiscardUnknown()
- func (m *Tile_Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tile_Layer) XXX_Merge(src proto.Message)
- func (m *Tile_Layer) XXX_Size() int
- func (m *Tile_Layer) XXX_Unmarshal(b []byte) error
- type Tile_Value
- func (*Tile_Value) Descriptor() ([]byte, []int)
- func (*Tile_Value) ExtensionRangeArray() []proto.ExtensionRange
- func (m *Tile_Value) GetBoolValue() bool
- func (m *Tile_Value) GetDoubleValue() float64
- func (m *Tile_Value) GetFloatValue() float32
- func (m *Tile_Value) GetIntValue() int64
- func (m *Tile_Value) GetSintValue() int64
- func (m *Tile_Value) GetStringValue() string
- func (m *Tile_Value) GetUintValue() uint64
- func (m *Tile_Value) Marshal() (dAtA []byte, err error)
- func (m *Tile_Value) MarshalTo(dAtA []byte) (int, error)
- func (m *Tile_Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Tile_Value) ProtoMessage()
- func (m *Tile_Value) Reset()
- func (m *Tile_Value) Size() (n int)
- func (m *Tile_Value) String() string
- func (m *Tile_Value) Unmarshal(dAtA []byte) error
- func (m *Tile_Value) XXX_DiscardUnknown()
- func (m *Tile_Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tile_Value) XXX_Merge(src proto.Message)
- func (m *Tile_Value) XXX_Size() int
- func (m *Tile_Value) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const Default_Tile_Feature_Id uint64 = 0
View Source
const Default_Tile_Layer_Extent uint32 = 4096
View Source
const Default_Tile_Layer_Version uint32 = 1
Variables ¶
View Source
var ( ErrInvalidLengthVectorTile = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowVectorTile = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupVectorTile = fmt.Errorf("proto: unexpected end of group") )
View Source
var Tile_GeomType_name = map[int32]string{
0: "UNKNOWN",
1: "POINT",
2: "LINESTRING",
3: "POLYGON",
}
View Source
var Tile_GeomType_value = map[string]int32{
"UNKNOWN": 0,
"POINT": 1,
"LINESTRING": 2,
"POLYGON": 3,
}
Functions ¶
This section is empty.
Types ¶
type Tile ¶
type Tile struct { Layers []*Tile_Layer `protobuf:"bytes,3,rep,name=layers" json:"layers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Tile) Descriptor ¶
func (*Tile) ExtensionRangeArray ¶
func (*Tile) ExtensionRangeArray() []proto.ExtensionRange
func (*Tile) GetLayers ¶
func (m *Tile) GetLayers() []*Tile_Layer
func (*Tile) ProtoMessage ¶
func (*Tile) ProtoMessage()
func (*Tile) XXX_DiscardUnknown ¶
func (m *Tile) XXX_DiscardUnknown()
func (*Tile) XXX_Unmarshal ¶
type Tile_Feature ¶
type Tile_Feature struct { Id *uint64 `protobuf:"varint,1,opt,name=id,def=0" json:"id,omitempty"` // Tags of this feature are encoded as repeated pairs of // integers. Even indexed values (n, beginning with 0) are // themselves indexes into the layer's keys list. Odd indexed // values (n+1) are indexes into the layer's values list. // The first (n=0) tag of a feature, therefore, has a key of // layer.keys[feature.tags[0]] and a value of // layer.values[feature.tags[1]]. Tags []uint32 `protobuf:"varint,2,rep,packed,name=tags" json:"tags,omitempty"` // The type of geometry stored in this feature. Type *Tile_GeomType `protobuf:"varint,3,opt,name=type,enum=vector_tile.Tile_GeomType,def=0" json:"type,omitempty"` // Contains a stream of commands and parameters (vertices). The // repeat count is shifted to the left by 3 bits. This means // that the command has 3 bits (0-7). The repeat count // indicates how often this command is to be repeated. Defined // commands are: // - MoveTo: 1 (2 parameters follow) // - LineTo: 2 (2 parameters follow) // - ClosePath: 7 (no parameters follow) // // Commands are encoded as uint32 varints. Vertex parameters // are encoded as deltas to the previous position and, as they // may be negative, are further "zigzag" encoded as unsigned // 32-bit ints: // // n = (n << 1) ^ (n >> 31) // // Ex.: MoveTo(3, 6), LineTo(8, 12), LineTo(20, 34), ClosePath // Encoded as: [ 9 6 12 18 10 12 24 44 15 ] // | | `> [00001 111] command type 7 (ClosePath), length 1 // | | ===== relative LineTo(+12, +22) == LineTo(20, 34) // | | ===== relative LineTo(+5, +6) == LineTo(8, 12) // | `> [00010 010] = command type 2 (LineTo), length 2 // | ==== relative MoveTo(+3, +6) // `> [00001 001] = command type 1 (MoveTo), length 1 // // The original position is (0,0). Geometry []uint32 `protobuf:"varint,4,rep,packed,name=geometry" json:"geometry,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Tile_Feature) Descriptor ¶
func (*Tile_Feature) Descriptor() ([]byte, []int)
func (*Tile_Feature) GetGeometry ¶
func (m *Tile_Feature) GetGeometry() []uint32
func (*Tile_Feature) GetId ¶
func (m *Tile_Feature) GetId() uint64
func (*Tile_Feature) GetTags ¶
func (m *Tile_Feature) GetTags() []uint32
func (*Tile_Feature) GetType ¶
func (m *Tile_Feature) GetType() Tile_GeomType
func (*Tile_Feature) Marshal ¶
func (m *Tile_Feature) Marshal() (dAtA []byte, err error)
func (*Tile_Feature) MarshalToSizedBuffer ¶
func (m *Tile_Feature) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Tile_Feature) ProtoMessage ¶
func (*Tile_Feature) ProtoMessage()
func (*Tile_Feature) Reset ¶
func (m *Tile_Feature) Reset()
func (*Tile_Feature) Size ¶
func (m *Tile_Feature) Size() (n int)
func (*Tile_Feature) String ¶
func (m *Tile_Feature) String() string
func (*Tile_Feature) Unmarshal ¶
func (m *Tile_Feature) Unmarshal(dAtA []byte) error
func (*Tile_Feature) XXX_DiscardUnknown ¶
func (m *Tile_Feature) XXX_DiscardUnknown()
func (*Tile_Feature) XXX_Marshal ¶
func (m *Tile_Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Tile_Feature) XXX_Merge ¶
func (m *Tile_Feature) XXX_Merge(src proto.Message)
func (*Tile_Feature) XXX_Size ¶
func (m *Tile_Feature) XXX_Size() int
func (*Tile_Feature) XXX_Unmarshal ¶
func (m *Tile_Feature) XXX_Unmarshal(b []byte) error
type Tile_GeomType ¶
type Tile_GeomType int32
const ( Tile_UNKNOWN Tile_GeomType = 0 Tile_POINT Tile_GeomType = 1 Tile_LINESTRING Tile_GeomType = 2 Tile_POLYGON Tile_GeomType = 3 )
const Default_Tile_Feature_Type Tile_GeomType = Tile_UNKNOWN
func (Tile_GeomType) Enum ¶
func (x Tile_GeomType) Enum() *Tile_GeomType
func (Tile_GeomType) EnumDescriptor ¶
func (Tile_GeomType) EnumDescriptor() ([]byte, []int)
func (Tile_GeomType) String ¶
func (x Tile_GeomType) String() string
func (*Tile_GeomType) UnmarshalJSON ¶
func (x *Tile_GeomType) UnmarshalJSON(data []byte) error
type Tile_Layer ¶
type Tile_Layer struct { // Any compliant implementation must first read the version // number encoded in this message and choose the correct // implementation for this version number before proceeding to // decode other parts of this message. Version *uint32 `protobuf:"varint,15,req,name=version,def=1" json:"version,omitempty"` Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` // The actual features in this tile. Features []*Tile_Feature `protobuf:"bytes,2,rep,name=features" json:"features,omitempty"` // Dictionary encoding for keys Keys []string `protobuf:"bytes,3,rep,name=keys" json:"keys,omitempty"` // Dictionary encoding for values Values []*Tile_Value `protobuf:"bytes,4,rep,name=values" json:"values,omitempty"` // The bounding box in this tile spans from 0..4095 units Extent *uint32 `protobuf:"varint,5,opt,name=extent,def=4096" json:"extent,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Tile_Layer) Descriptor ¶
func (*Tile_Layer) Descriptor() ([]byte, []int)
func (*Tile_Layer) ExtensionRangeArray ¶
func (*Tile_Layer) ExtensionRangeArray() []proto.ExtensionRange
func (*Tile_Layer) GetExtent ¶
func (m *Tile_Layer) GetExtent() uint32
func (*Tile_Layer) GetFeatures ¶
func (m *Tile_Layer) GetFeatures() []*Tile_Feature
func (*Tile_Layer) GetKeys ¶
func (m *Tile_Layer) GetKeys() []string
func (*Tile_Layer) GetName ¶
func (m *Tile_Layer) GetName() string
func (*Tile_Layer) GetValues ¶
func (m *Tile_Layer) GetValues() []*Tile_Value
func (*Tile_Layer) GetVersion ¶
func (m *Tile_Layer) GetVersion() uint32
func (*Tile_Layer) Marshal ¶
func (m *Tile_Layer) Marshal() (dAtA []byte, err error)
func (*Tile_Layer) MarshalToSizedBuffer ¶
func (m *Tile_Layer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Tile_Layer) ProtoMessage ¶
func (*Tile_Layer) ProtoMessage()
func (*Tile_Layer) Reset ¶
func (m *Tile_Layer) Reset()
func (*Tile_Layer) Size ¶
func (m *Tile_Layer) Size() (n int)
func (*Tile_Layer) String ¶
func (m *Tile_Layer) String() string
func (*Tile_Layer) Unmarshal ¶
func (m *Tile_Layer) Unmarshal(dAtA []byte) error
func (*Tile_Layer) XXX_DiscardUnknown ¶
func (m *Tile_Layer) XXX_DiscardUnknown()
func (*Tile_Layer) XXX_Marshal ¶
func (m *Tile_Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Tile_Layer) XXX_Merge ¶
func (m *Tile_Layer) XXX_Merge(src proto.Message)
func (*Tile_Layer) XXX_Size ¶
func (m *Tile_Layer) XXX_Size() int
func (*Tile_Layer) XXX_Unmarshal ¶
func (m *Tile_Layer) XXX_Unmarshal(b []byte) error
type Tile_Value ¶
type Tile_Value struct { // Exactly one of these values may be present in a valid message StringValue *string `protobuf:"bytes,1,opt,name=string_value,json=stringValue" json:"string_value,omitempty"` FloatValue *float32 `protobuf:"fixed32,2,opt,name=float_value,json=floatValue" json:"float_value,omitempty"` DoubleValue *float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"` IntValue *int64 `protobuf:"varint,4,opt,name=int_value,json=intValue" json:"int_value,omitempty"` UintValue *uint64 `protobuf:"varint,5,opt,name=uint_value,json=uintValue" json:"uint_value,omitempty"` SintValue *int64 `protobuf:"zigzag64,6,opt,name=sint_value,json=sintValue" json:"sint_value,omitempty"` BoolValue *bool `protobuf:"varint,7,opt,name=bool_value,json=boolValue" json:"bool_value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` proto.XXX_InternalExtensions `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Variant type encoding
func (*Tile_Value) Descriptor ¶
func (*Tile_Value) Descriptor() ([]byte, []int)
func (*Tile_Value) ExtensionRangeArray ¶
func (*Tile_Value) ExtensionRangeArray() []proto.ExtensionRange
func (*Tile_Value) GetBoolValue ¶
func (m *Tile_Value) GetBoolValue() bool
func (*Tile_Value) GetDoubleValue ¶
func (m *Tile_Value) GetDoubleValue() float64
func (*Tile_Value) GetFloatValue ¶
func (m *Tile_Value) GetFloatValue() float32
func (*Tile_Value) GetIntValue ¶
func (m *Tile_Value) GetIntValue() int64
func (*Tile_Value) GetSintValue ¶
func (m *Tile_Value) GetSintValue() int64
func (*Tile_Value) GetStringValue ¶
func (m *Tile_Value) GetStringValue() string
func (*Tile_Value) GetUintValue ¶
func (m *Tile_Value) GetUintValue() uint64
func (*Tile_Value) Marshal ¶
func (m *Tile_Value) Marshal() (dAtA []byte, err error)
func (*Tile_Value) MarshalToSizedBuffer ¶
func (m *Tile_Value) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Tile_Value) ProtoMessage ¶
func (*Tile_Value) ProtoMessage()
func (*Tile_Value) Reset ¶
func (m *Tile_Value) Reset()
func (*Tile_Value) Size ¶
func (m *Tile_Value) Size() (n int)
func (*Tile_Value) String ¶
func (m *Tile_Value) String() string
func (*Tile_Value) Unmarshal ¶
func (m *Tile_Value) Unmarshal(dAtA []byte) error
func (*Tile_Value) XXX_DiscardUnknown ¶
func (m *Tile_Value) XXX_DiscardUnknown()
func (*Tile_Value) XXX_Marshal ¶
func (m *Tile_Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Tile_Value) XXX_Merge ¶
func (m *Tile_Value) XXX_Merge(src proto.Message)
func (*Tile_Value) XXX_Size ¶
func (m *Tile_Value) XXX_Size() int
func (*Tile_Value) XXX_Unmarshal ¶
func (m *Tile_Value) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.