Documentation
¶
Overview ¶
Package osmpbf is a generated protocol buffer package.
It is generated from these files:
parser/pbf/internal/osmpbf/fileformat.proto
It has these top-level messages:
Blob BlobHeader
Package osmpbf is a generated protocol buffer package.
It is generated from these files:
parser/pbf/internal/osmpbf/osmformat.proto
It has these top-level messages:
HeaderBlock HeaderBBox PrimitiveBlock PrimitiveGroup StringTable Info DenseInfo ChangeSet Node DenseNodes Way Relation
Index ¶
- Constants
- Variables
- type Blob
- func (*Blob) Descriptor() ([]byte, []int)
- func (m *Blob) GetLzmaData() []byte
- func (m *Blob) GetOBSOLETEBzip2Data() []byte
- func (m *Blob) GetRaw() []byte
- func (m *Blob) GetRawSize() int32
- func (m *Blob) GetZlibData() []byte
- func (m *Blob) Marshal() (dAtA []byte, err error)
- func (m *Blob) MarshalTo(dAtA []byte) (int, error)
- func (*Blob) ProtoMessage()
- func (m *Blob) Reset()
- func (m *Blob) Size() (n int)
- func (m *Blob) String() string
- func (m *Blob) Unmarshal(dAtA []byte) error
- type BlobHeader
- func (*BlobHeader) Descriptor() ([]byte, []int)
- func (m *BlobHeader) GetDatasize() int32
- func (m *BlobHeader) GetIndexdata() []byte
- func (m *BlobHeader) GetType() string
- func (m *BlobHeader) Marshal() (dAtA []byte, err error)
- func (m *BlobHeader) MarshalTo(dAtA []byte) (int, error)
- func (*BlobHeader) ProtoMessage()
- func (m *BlobHeader) Reset()
- func (m *BlobHeader) Size() (n int)
- func (m *BlobHeader) String() string
- func (m *BlobHeader) Unmarshal(dAtA []byte) error
- type ChangeSet
- func (*ChangeSet) Descriptor() ([]byte, []int)
- func (m *ChangeSet) GetId() int64
- func (m *ChangeSet) Marshal() (dAtA []byte, err error)
- func (m *ChangeSet) MarshalTo(dAtA []byte) (int, error)
- func (*ChangeSet) ProtoMessage()
- func (m *ChangeSet) Reset()
- func (m *ChangeSet) Size() (n int)
- func (m *ChangeSet) String() string
- func (m *ChangeSet) Unmarshal(dAtA []byte) error
- type DenseInfo
- func (*DenseInfo) Descriptor() ([]byte, []int)
- func (m *DenseInfo) GetChangeset() []int64
- func (m *DenseInfo) GetTimestamp() []int64
- func (m *DenseInfo) GetUid() []int32
- func (m *DenseInfo) GetUserSid() []int32
- func (m *DenseInfo) GetVersion() []int32
- func (m *DenseInfo) GetVisible() []bool
- func (m *DenseInfo) Marshal() (dAtA []byte, err error)
- func (m *DenseInfo) MarshalTo(dAtA []byte) (int, error)
- func (*DenseInfo) ProtoMessage()
- func (m *DenseInfo) Reset()
- func (m *DenseInfo) Size() (n int)
- func (m *DenseInfo) String() string
- func (m *DenseInfo) Unmarshal(dAtA []byte) error
- type DenseNodes
- func (*DenseNodes) Descriptor() ([]byte, []int)
- func (m *DenseNodes) GetDenseinfo() *DenseInfo
- func (m *DenseNodes) GetId() []int64
- func (m *DenseNodes) GetKeysVals() []int32
- func (m *DenseNodes) GetLat() []int64
- func (m *DenseNodes) GetLon() []int64
- func (m *DenseNodes) Marshal() (dAtA []byte, err error)
- func (m *DenseNodes) MarshalTo(dAtA []byte) (int, error)
- func (*DenseNodes) ProtoMessage()
- func (m *DenseNodes) Reset()
- func (m *DenseNodes) Size() (n int)
- func (m *DenseNodes) String() string
- func (m *DenseNodes) Unmarshal(dAtA []byte) error
- type HeaderBBox
- func (*HeaderBBox) Descriptor() ([]byte, []int)
- func (m *HeaderBBox) GetBottom() int64
- func (m *HeaderBBox) GetLeft() int64
- func (m *HeaderBBox) GetRight() int64
- func (m *HeaderBBox) GetTop() int64
- func (m *HeaderBBox) Marshal() (dAtA []byte, err error)
- func (m *HeaderBBox) MarshalTo(dAtA []byte) (int, error)
- func (*HeaderBBox) ProtoMessage()
- func (m *HeaderBBox) Reset()
- func (m *HeaderBBox) Size() (n int)
- func (m *HeaderBBox) String() string
- func (m *HeaderBBox) Unmarshal(dAtA []byte) error
- type HeaderBlock
- func (*HeaderBlock) Descriptor() ([]byte, []int)
- func (m *HeaderBlock) GetBbox() *HeaderBBox
- func (m *HeaderBlock) GetOptionalFeatures() []string
- func (m *HeaderBlock) GetOsmosisReplicationBaseUrl() string
- func (m *HeaderBlock) GetOsmosisReplicationSequenceNumber() int64
- func (m *HeaderBlock) GetOsmosisReplicationTimestamp() int64
- func (m *HeaderBlock) GetRequiredFeatures() []string
- func (m *HeaderBlock) GetSource() string
- func (m *HeaderBlock) GetWritingprogram() string
- func (m *HeaderBlock) Marshal() (dAtA []byte, err error)
- func (m *HeaderBlock) MarshalTo(dAtA []byte) (int, error)
- func (*HeaderBlock) ProtoMessage()
- func (m *HeaderBlock) Reset()
- func (m *HeaderBlock) Size() (n int)
- func (m *HeaderBlock) String() string
- func (m *HeaderBlock) Unmarshal(dAtA []byte) error
- type Info
- func (*Info) Descriptor() ([]byte, []int)
- func (m *Info) GetChangeset() int64
- func (m *Info) GetTimestamp() int64
- func (m *Info) GetUid() int32
- func (m *Info) GetUserSid() uint32
- func (m *Info) GetVersion() int32
- func (m *Info) GetVisible() bool
- func (m *Info) Marshal() (dAtA []byte, err error)
- func (m *Info) MarshalTo(dAtA []byte) (int, error)
- func (*Info) ProtoMessage()
- func (m *Info) Reset()
- func (m *Info) Size() (n int)
- func (m *Info) String() string
- func (m *Info) Unmarshal(dAtA []byte) error
- type Node
- func (*Node) Descriptor() ([]byte, []int)
- func (m *Node) GetId() int64
- func (m *Node) GetInfo() Info
- func (m *Node) GetKeys() []uint32
- func (m *Node) GetLat() int64
- func (m *Node) GetLon() int64
- func (m *Node) GetVals() []uint32
- func (m *Node) Marshal() (dAtA []byte, err error)
- func (m *Node) MarshalTo(dAtA []byte) (int, error)
- func (*Node) ProtoMessage()
- func (m *Node) Reset()
- func (m *Node) Size() (n int)
- func (m *Node) String() string
- func (m *Node) Unmarshal(dAtA []byte) error
- type PrimitiveBlock
- func (*PrimitiveBlock) Descriptor() ([]byte, []int)
- func (m *PrimitiveBlock) GetDateGranularity() int32
- func (m *PrimitiveBlock) GetGranularity() int32
- func (m *PrimitiveBlock) GetLatOffset() int64
- func (m *PrimitiveBlock) GetLonOffset() int64
- func (m *PrimitiveBlock) GetPrimitivegroup() []*PrimitiveGroup
- func (m *PrimitiveBlock) GetStringtable() *StringTable
- func (m *PrimitiveBlock) Marshal() (dAtA []byte, err error)
- func (m *PrimitiveBlock) MarshalTo(dAtA []byte) (int, error)
- func (*PrimitiveBlock) ProtoMessage()
- func (m *PrimitiveBlock) Reset()
- func (m *PrimitiveBlock) Size() (n int)
- func (m *PrimitiveBlock) String() string
- func (m *PrimitiveBlock) Unmarshal(dAtA []byte) error
- type PrimitiveGroup
- func (*PrimitiveGroup) Descriptor() ([]byte, []int)
- func (m *PrimitiveGroup) GetChangesets() []ChangeSet
- func (m *PrimitiveGroup) GetDense() *DenseNodes
- func (m *PrimitiveGroup) GetNodes() []Node
- func (m *PrimitiveGroup) GetRelations() []Relation
- func (m *PrimitiveGroup) GetWays() []Way
- func (m *PrimitiveGroup) Marshal() (dAtA []byte, err error)
- func (m *PrimitiveGroup) MarshalTo(dAtA []byte) (int, error)
- func (*PrimitiveGroup) ProtoMessage()
- func (m *PrimitiveGroup) Reset()
- func (m *PrimitiveGroup) Size() (n int)
- func (m *PrimitiveGroup) String() string
- func (m *PrimitiveGroup) Unmarshal(dAtA []byte) error
- type Relation
- func (*Relation) Descriptor() ([]byte, []int)
- func (m *Relation) GetId() int64
- func (m *Relation) GetInfo() Info
- func (m *Relation) GetKeys() []uint32
- func (m *Relation) GetMemids() []int64
- func (m *Relation) GetRolesSid() []int32
- func (m *Relation) GetTypes() []Relation_MemberType
- func (m *Relation) GetVals() []uint32
- func (m *Relation) Marshal() (dAtA []byte, err error)
- func (m *Relation) MarshalTo(dAtA []byte) (int, error)
- func (*Relation) ProtoMessage()
- func (m *Relation) Reset()
- func (m *Relation) Size() (n int)
- func (m *Relation) String() string
- func (m *Relation) Unmarshal(dAtA []byte) error
- type Relation_MemberType
- type StringTable
- func (*StringTable) Descriptor() ([]byte, []int)
- func (m *StringTable) GetS() [][]byte
- func (m *StringTable) Marshal() (dAtA []byte, err error)
- func (m *StringTable) MarshalTo(dAtA []byte) (int, error)
- func (*StringTable) ProtoMessage()
- func (m *StringTable) Reset()
- func (m *StringTable) Size() (n int)
- func (m *StringTable) String() string
- func (m *StringTable) Unmarshal(dAtA []byte) error
- type Way
- func (*Way) Descriptor() ([]byte, []int)
- func (m *Way) GetId() int64
- func (m *Way) GetInfo() Info
- func (m *Way) GetKeys() []uint32
- func (m *Way) GetRefs() []int64
- func (m *Way) GetVals() []uint32
- func (m *Way) Marshal() (dAtA []byte, err error)
- func (m *Way) MarshalTo(dAtA []byte) (int, error)
- func (*Way) ProtoMessage()
- func (m *Way) Reset()
- func (m *Way) Size() (n int)
- func (m *Way) String() string
- func (m *Way) Unmarshal(dAtA []byte) error
Constants ¶
const Default_Info_Version int32 = -1
const Default_PrimitiveBlock_DateGranularity int32 = 1000
const Default_PrimitiveBlock_Granularity int32 = 100
const Default_PrimitiveBlock_LatOffset int64 = 0
const Default_PrimitiveBlock_LonOffset int64 = 0
Variables ¶
var ( ErrInvalidLengthFileformat = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFileformat = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthOsmformat = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOsmformat = fmt.Errorf("proto: integer overflow") )
var Relation_MemberType_name = map[int32]string{
0: "NODE",
1: "WAY",
2: "RELATION",
}
var Relation_MemberType_value = map[string]int32{
"NODE": 0,
"WAY": 1,
"RELATION": 2,
}
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct {
Raw []byte `protobuf:"bytes,1,opt,name=raw" json:"raw"`
RawSize int32 `protobuf:"varint,2,opt,name=raw_size,json=rawSize" json:"raw_size"`
// Possible compressed versions of the data.
ZlibData []byte `protobuf:"bytes,3,opt,name=zlib_data,json=zlibData" json:"zlib_data"`
// PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED.
LzmaData []byte `protobuf:"bytes,4,opt,name=lzma_data,json=lzmaData" json:"lzma_data"`
// Formerly used for bzip2 compressed data. Depreciated in 2010.
OBSOLETEBzip2Data []byte `protobuf:"bytes,5,opt,name=OBSOLETE_bzip2_data,json=OBSOLETEBzip2Data" json:"OBSOLETE_bzip2_data"`
}
func (*Blob) Descriptor ¶
func (*Blob) GetLzmaData ¶
func (*Blob) GetOBSOLETEBzip2Data ¶
func (*Blob) GetRawSize ¶
func (*Blob) GetZlibData ¶
func (*Blob) ProtoMessage ¶
func (*Blob) ProtoMessage()
type BlobHeader ¶
type BlobHeader struct {
Type string `protobuf:"bytes,1,req,name=type" json:"type"`
Indexdata []byte `protobuf:"bytes,2,opt,name=indexdata" json:"indexdata"`
Datasize int32 `protobuf:"varint,3,req,name=datasize" json:"datasize"`
}
func (*BlobHeader) Descriptor ¶
func (*BlobHeader) Descriptor() ([]byte, []int)
func (*BlobHeader) GetDatasize ¶
func (m *BlobHeader) GetDatasize() int32
func (*BlobHeader) GetIndexdata ¶
func (m *BlobHeader) GetIndexdata() []byte
func (*BlobHeader) GetType ¶
func (m *BlobHeader) GetType() string
func (*BlobHeader) Marshal ¶
func (m *BlobHeader) Marshal() (dAtA []byte, err error)
func (*BlobHeader) ProtoMessage ¶
func (*BlobHeader) ProtoMessage()
func (*BlobHeader) Reset ¶
func (m *BlobHeader) Reset()
func (*BlobHeader) Size ¶
func (m *BlobHeader) Size() (n int)
func (*BlobHeader) String ¶
func (m *BlobHeader) String() string
func (*BlobHeader) Unmarshal ¶
func (m *BlobHeader) Unmarshal(dAtA []byte) error
type ChangeSet ¶
type ChangeSet struct {
Id int64 `protobuf:"varint,1,req,name=id" json:"id"`
}
THIS IS STUB DESIGN FOR CHANGESETS. NOT USED RIGHT NOW. TODO: REMOVE THIS?
func (*ChangeSet) Descriptor ¶
func (*ChangeSet) ProtoMessage ¶
func (*ChangeSet) ProtoMessage()
type DenseInfo ¶
type DenseInfo struct {
Version []int32 `protobuf:"varint,1,rep,packed,name=version" json:"version,omitempty"`
Timestamp []int64 `protobuf:"zigzag64,2,rep,packed,name=timestamp" json:"timestamp,omitempty"`
Changeset []int64 `protobuf:"zigzag64,3,rep,packed,name=changeset" json:"changeset,omitempty"`
Uid []int32 `protobuf:"zigzag32,4,rep,packed,name=uid" json:"uid,omitempty"`
UserSid []int32 `protobuf:"zigzag32,5,rep,packed,name=user_sid,json=userSid" json:"user_sid,omitempty"`
// The visible flag is used to store history information. It indicates that
// the current object version has been created by a delete operation on the
// OSM API.
// When a writer sets this flag, it MUST add a required_features tag with
// value "HistoricalInformation" to the HeaderBlock.
// If this flag is not available for some object it MUST be assumed to be
// true if the file has the required_features tag "HistoricalInformation"
// set.
Visible []bool `protobuf:"varint,6,rep,packed,name=visible" json:"visible,omitempty"`
}
* Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.
func (*DenseInfo) Descriptor ¶
func (*DenseInfo) GetChangeset ¶
func (*DenseInfo) GetTimestamp ¶
func (*DenseInfo) GetUserSid ¶
func (*DenseInfo) GetVersion ¶
func (*DenseInfo) GetVisible ¶
func (*DenseInfo) ProtoMessage ¶
func (*DenseInfo) ProtoMessage()
type DenseNodes ¶
type DenseNodes struct {
Id []int64 `protobuf:"zigzag64,1,rep,packed,name=id" json:"id,omitempty"`
// repeated Info info = 4;
Denseinfo *DenseInfo `protobuf:"bytes,5,opt,name=denseinfo" json:"denseinfo,omitempty"`
Lat []int64 `protobuf:"zigzag64,8,rep,packed,name=lat" json:"lat,omitempty"`
Lon []int64 `protobuf:"zigzag64,9,rep,packed,name=lon" json:"lon,omitempty"`
// Special packing of keys and vals into one array. May be empty if all nodes in this block are tagless.
KeysVals []int32 `protobuf:"varint,10,rep,packed,name=keys_vals,json=keysVals" json:"keys_vals,omitempty"`
}
func (*DenseNodes) Descriptor ¶
func (*DenseNodes) Descriptor() ([]byte, []int)
func (*DenseNodes) GetDenseinfo ¶
func (m *DenseNodes) GetDenseinfo() *DenseInfo
func (*DenseNodes) GetId ¶
func (m *DenseNodes) GetId() []int64
func (*DenseNodes) GetKeysVals ¶
func (m *DenseNodes) GetKeysVals() []int32
func (*DenseNodes) GetLat ¶
func (m *DenseNodes) GetLat() []int64
func (*DenseNodes) GetLon ¶
func (m *DenseNodes) GetLon() []int64
func (*DenseNodes) Marshal ¶
func (m *DenseNodes) Marshal() (dAtA []byte, err error)
func (*DenseNodes) ProtoMessage ¶
func (*DenseNodes) ProtoMessage()
func (*DenseNodes) Reset ¶
func (m *DenseNodes) Reset()
func (*DenseNodes) Size ¶
func (m *DenseNodes) Size() (n int)
func (*DenseNodes) String ¶
func (m *DenseNodes) String() string
func (*DenseNodes) Unmarshal ¶
func (m *DenseNodes) Unmarshal(dAtA []byte) error
type HeaderBBox ¶
type HeaderBBox struct {
Left int64 `protobuf:"zigzag64,1,req,name=left" json:"left"`
Right int64 `protobuf:"zigzag64,2,req,name=right" json:"right"`
Top int64 `protobuf:"zigzag64,3,req,name=top" json:"top"`
Bottom int64 `protobuf:"zigzag64,4,req,name=bottom" json:"bottom"`
}
func (*HeaderBBox) Descriptor ¶
func (*HeaderBBox) Descriptor() ([]byte, []int)
func (*HeaderBBox) GetBottom ¶
func (m *HeaderBBox) GetBottom() int64
func (*HeaderBBox) GetLeft ¶
func (m *HeaderBBox) GetLeft() int64
func (*HeaderBBox) GetRight ¶
func (m *HeaderBBox) GetRight() int64
func (*HeaderBBox) GetTop ¶
func (m *HeaderBBox) GetTop() int64
func (*HeaderBBox) Marshal ¶
func (m *HeaderBBox) Marshal() (dAtA []byte, err error)
func (*HeaderBBox) ProtoMessage ¶
func (*HeaderBBox) ProtoMessage()
func (*HeaderBBox) Reset ¶
func (m *HeaderBBox) Reset()
func (*HeaderBBox) Size ¶
func (m *HeaderBBox) Size() (n int)
func (*HeaderBBox) String ¶
func (m *HeaderBBox) String() string
func (*HeaderBBox) Unmarshal ¶
func (m *HeaderBBox) Unmarshal(dAtA []byte) error
type HeaderBlock ¶
type HeaderBlock struct {
Bbox *HeaderBBox `protobuf:"bytes,1,opt,name=bbox" json:"bbox,omitempty"`
// Additional tags to aid in parsing this dataset
RequiredFeatures []string `protobuf:"bytes,4,rep,name=required_features,json=requiredFeatures" json:"required_features,omitempty"`
OptionalFeatures []string `protobuf:"bytes,5,rep,name=optional_features,json=optionalFeatures" json:"optional_features,omitempty"`
Writingprogram string `protobuf:"bytes,16,opt,name=writingprogram" json:"writingprogram"`
Source string `protobuf:"bytes,17,opt,name=source" json:"source"`
// replication timestamp, expressed in seconds since the epoch,
// otherwise the same value as in the "timestamp=..." field
// in the state.txt file used by Osmosis
OsmosisReplicationTimestamp int64 `` /* 129-byte string literal not displayed */
// replication sequence number (sequenceNumber in state.txt)
OsmosisReplicationSequenceNumber int64 `` /* 146-byte string literal not displayed */
// replication base URL (from Osmosis' configuration.txt file)
OsmosisReplicationBaseUrl string `protobuf:"bytes,34,opt,name=osmosis_replication_base_url,json=osmosisReplicationBaseUrl" json:"osmosis_replication_base_url"`
}
func (*HeaderBlock) Descriptor ¶
func (*HeaderBlock) Descriptor() ([]byte, []int)
func (*HeaderBlock) GetBbox ¶
func (m *HeaderBlock) GetBbox() *HeaderBBox
func (*HeaderBlock) GetOptionalFeatures ¶
func (m *HeaderBlock) GetOptionalFeatures() []string
func (*HeaderBlock) GetOsmosisReplicationBaseUrl ¶
func (m *HeaderBlock) GetOsmosisReplicationBaseUrl() string
func (*HeaderBlock) GetOsmosisReplicationSequenceNumber ¶
func (m *HeaderBlock) GetOsmosisReplicationSequenceNumber() int64
func (*HeaderBlock) GetOsmosisReplicationTimestamp ¶
func (m *HeaderBlock) GetOsmosisReplicationTimestamp() int64
func (*HeaderBlock) GetRequiredFeatures ¶
func (m *HeaderBlock) GetRequiredFeatures() []string
func (*HeaderBlock) GetSource ¶
func (m *HeaderBlock) GetSource() string
func (*HeaderBlock) GetWritingprogram ¶
func (m *HeaderBlock) GetWritingprogram() string
func (*HeaderBlock) Marshal ¶
func (m *HeaderBlock) Marshal() (dAtA []byte, err error)
func (*HeaderBlock) ProtoMessage ¶
func (*HeaderBlock) ProtoMessage()
func (*HeaderBlock) Reset ¶
func (m *HeaderBlock) Reset()
func (*HeaderBlock) Size ¶
func (m *HeaderBlock) Size() (n int)
func (*HeaderBlock) String ¶
func (m *HeaderBlock) String() string
func (*HeaderBlock) Unmarshal ¶
func (m *HeaderBlock) Unmarshal(dAtA []byte) error
type Info ¶
type Info struct {
Version *int32 `protobuf:"varint,1,opt,name=version,def=-1" json:"version,omitempty"`
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp" json:"timestamp"`
Changeset int64 `protobuf:"varint,3,opt,name=changeset" json:"changeset"`
Uid int32 `protobuf:"varint,4,opt,name=uid" json:"uid"`
UserSid uint32 `protobuf:"varint,5,opt,name=user_sid,json=userSid" json:"user_sid"`
// The visible flag is used to store history information. It indicates that
// the current object version has been created by a delete operation on the
// OSM API.
// When a writer sets this flag, it MUST add a required_features tag with
// value "HistoricalInformation" to the HeaderBlock.
// If this flag is not available for some object it MUST be assumed to be
// true if the file has the required_features tag "HistoricalInformation"
// set.
Visible bool `protobuf:"varint,6,opt,name=visible" json:"visible"`
}
Optional metadata that may be included into each primitive.
func (*Info) Descriptor ¶
func (*Info) GetChangeset ¶
func (*Info) GetTimestamp ¶
func (*Info) GetUserSid ¶
func (*Info) GetVersion ¶
func (*Info) GetVisible ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
type Node ¶
type Node struct {
Id int64 `protobuf:"zigzag64,1,req,name=id" json:"id"`
// Parallel arrays.
Keys []uint32 `protobuf:"varint,2,rep,packed,name=keys" json:"keys,omitempty"`
Vals []uint32 `protobuf:"varint,3,rep,packed,name=vals" json:"vals,omitempty"`
Info Info `protobuf:"bytes,4,opt,name=info" json:"info"`
Lat int64 `protobuf:"zigzag64,8,req,name=lat" json:"lat"`
Lon int64 `protobuf:"zigzag64,9,req,name=lon" json:"lon"`
}
func (*Node) Descriptor ¶
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
type PrimitiveBlock ¶
type PrimitiveBlock struct {
Stringtable *StringTable `protobuf:"bytes,1,req,name=stringtable" json:"stringtable,omitempty"`
Primitivegroup []*PrimitiveGroup `protobuf:"bytes,2,rep,name=primitivegroup" json:"primitivegroup,omitempty"`
// Granularity, units of nanodegrees, used to store coordinates in this block
Granularity *int32 `protobuf:"varint,17,opt,name=granularity,def=100" json:"granularity,omitempty"`
// Offset value between the output coordinates coordinates and the granularity grid in unites of nanodegrees.
LatOffset *int64 `protobuf:"varint,19,opt,name=lat_offset,json=latOffset,def=0" json:"lat_offset,omitempty"`
LonOffset *int64 `protobuf:"varint,20,opt,name=lon_offset,json=lonOffset,def=0" json:"lon_offset,omitempty"`
// Granularity of dates, normally represented in units of milliseconds since the 1970 epoch.
DateGranularity *int32 `protobuf:"varint,18,opt,name=date_granularity,json=dateGranularity,def=1000" json:"date_granularity,omitempty"`
}
func (*PrimitiveBlock) Descriptor ¶
func (*PrimitiveBlock) Descriptor() ([]byte, []int)
func (*PrimitiveBlock) GetDateGranularity ¶
func (m *PrimitiveBlock) GetDateGranularity() int32
func (*PrimitiveBlock) GetGranularity ¶
func (m *PrimitiveBlock) GetGranularity() int32
func (*PrimitiveBlock) GetLatOffset ¶
func (m *PrimitiveBlock) GetLatOffset() int64
func (*PrimitiveBlock) GetLonOffset ¶
func (m *PrimitiveBlock) GetLonOffset() int64
func (*PrimitiveBlock) GetPrimitivegroup ¶
func (m *PrimitiveBlock) GetPrimitivegroup() []*PrimitiveGroup
func (*PrimitiveBlock) GetStringtable ¶
func (m *PrimitiveBlock) GetStringtable() *StringTable
func (*PrimitiveBlock) Marshal ¶
func (m *PrimitiveBlock) Marshal() (dAtA []byte, err error)
func (*PrimitiveBlock) ProtoMessage ¶
func (*PrimitiveBlock) ProtoMessage()
func (*PrimitiveBlock) Reset ¶
func (m *PrimitiveBlock) Reset()
func (*PrimitiveBlock) Size ¶
func (m *PrimitiveBlock) Size() (n int)
func (*PrimitiveBlock) String ¶
func (m *PrimitiveBlock) String() string
func (*PrimitiveBlock) Unmarshal ¶
func (m *PrimitiveBlock) Unmarshal(dAtA []byte) error
type PrimitiveGroup ¶
type PrimitiveGroup struct {
Nodes []Node `protobuf:"bytes,1,rep,name=nodes" json:"nodes"`
Dense *DenseNodes `protobuf:"bytes,2,opt,name=dense" json:"dense,omitempty"`
Ways []Way `protobuf:"bytes,3,rep,name=ways" json:"ways"`
Relations []Relation `protobuf:"bytes,4,rep,name=relations" json:"relations"`
Changesets []ChangeSet `protobuf:"bytes,5,rep,name=changesets" json:"changesets"`
}
Group of OSMPrimitives. All primitives in a group must be the same type.
func (*PrimitiveGroup) Descriptor ¶
func (*PrimitiveGroup) Descriptor() ([]byte, []int)
func (*PrimitiveGroup) GetChangesets ¶
func (m *PrimitiveGroup) GetChangesets() []ChangeSet
func (*PrimitiveGroup) GetDense ¶
func (m *PrimitiveGroup) GetDense() *DenseNodes
func (*PrimitiveGroup) GetNodes ¶
func (m *PrimitiveGroup) GetNodes() []Node
func (*PrimitiveGroup) GetRelations ¶
func (m *PrimitiveGroup) GetRelations() []Relation
func (*PrimitiveGroup) GetWays ¶
func (m *PrimitiveGroup) GetWays() []Way
func (*PrimitiveGroup) Marshal ¶
func (m *PrimitiveGroup) Marshal() (dAtA []byte, err error)
func (*PrimitiveGroup) ProtoMessage ¶
func (*PrimitiveGroup) ProtoMessage()
func (*PrimitiveGroup) Reset ¶
func (m *PrimitiveGroup) Reset()
func (*PrimitiveGroup) Size ¶
func (m *PrimitiveGroup) Size() (n int)
func (*PrimitiveGroup) String ¶
func (m *PrimitiveGroup) String() string
func (*PrimitiveGroup) Unmarshal ¶
func (m *PrimitiveGroup) Unmarshal(dAtA []byte) error
type Relation ¶
type Relation struct {
Id int64 `protobuf:"varint,1,req,name=id" json:"id"`
// Parallel arrays.
Keys []uint32 `protobuf:"varint,2,rep,packed,name=keys" json:"keys,omitempty"`
Vals []uint32 `protobuf:"varint,3,rep,packed,name=vals" json:"vals,omitempty"`
Info Info `protobuf:"bytes,4,opt,name=info" json:"info"`
// Parallel arrays
RolesSid []int32 `protobuf:"varint,8,rep,packed,name=roles_sid,json=rolesSid" json:"roles_sid,omitempty"`
Memids []int64 `protobuf:"zigzag64,9,rep,packed,name=memids" json:"memids,omitempty"`
Types []Relation_MemberType `protobuf:"varint,10,rep,packed,name=types,enum=osmpbf.Relation_MemberType" json:"types,omitempty"`
}
func (*Relation) Descriptor ¶
func (*Relation) GetRolesSid ¶
func (*Relation) GetTypes ¶
func (m *Relation) GetTypes() []Relation_MemberType
func (*Relation) ProtoMessage ¶
func (*Relation) ProtoMessage()
type Relation_MemberType ¶
type Relation_MemberType int32
const ( Relation_NODE Relation_MemberType = 0 Relation_WAY Relation_MemberType = 1 Relation_RELATION Relation_MemberType = 2 )
func (Relation_MemberType) Enum ¶
func (x Relation_MemberType) Enum() *Relation_MemberType
func (Relation_MemberType) EnumDescriptor ¶
func (Relation_MemberType) EnumDescriptor() ([]byte, []int)
func (Relation_MemberType) String ¶
func (x Relation_MemberType) String() string
func (*Relation_MemberType) UnmarshalJSON ¶
func (x *Relation_MemberType) UnmarshalJSON(data []byte) error
type StringTable ¶
type StringTable struct {
S [][]byte `protobuf:"bytes,1,rep,name=s" json:"s,omitempty"`
}
* String table, contains the common strings in each block.
Note that we reserve index '0' as a delimiter, so the entry at that index in the table is ALWAYS blank and unused.
func (*StringTable) Descriptor ¶
func (*StringTable) Descriptor() ([]byte, []int)
func (*StringTable) GetS ¶
func (m *StringTable) GetS() [][]byte
func (*StringTable) Marshal ¶
func (m *StringTable) Marshal() (dAtA []byte, err error)
func (*StringTable) ProtoMessage ¶
func (*StringTable) ProtoMessage()
func (*StringTable) Reset ¶
func (m *StringTable) Reset()
func (*StringTable) Size ¶
func (m *StringTable) Size() (n int)
func (*StringTable) String ¶
func (m *StringTable) String() string
func (*StringTable) Unmarshal ¶
func (m *StringTable) Unmarshal(dAtA []byte) error
type Way ¶
type Way struct {
Id int64 `protobuf:"varint,1,req,name=id" json:"id"`
// Parallel arrays.
Keys []uint32 `protobuf:"varint,2,rep,packed,name=keys" json:"keys,omitempty"`
Vals []uint32 `protobuf:"varint,3,rep,packed,name=vals" json:"vals,omitempty"`
Info Info `protobuf:"bytes,4,opt,name=info" json:"info"`
Refs []int64 `protobuf:"zigzag64,8,rep,packed,name=refs" json:"refs,omitempty"`
}
func (*Way) Descriptor ¶
func (*Way) ProtoMessage ¶
func (*Way) ProtoMessage()