Documentation
¶
Index ¶
- Constants
- Variables
- type Blob
- func (*Blob) Descriptor() ([]byte, []int)deprecated
- func (x *Blob) GetLzmaData() []byte
- func (x *Blob) GetOBSOLETEBzip2Data() []bytedeprecated
- func (x *Blob) GetRaw() []byte
- func (x *Blob) GetRawSize() int32
- func (x *Blob) GetZlibData() []byte
- func (*Blob) ProtoMessage()
- func (x *Blob) ProtoReflect() protoreflect.Message
- func (x *Blob) Reset()
- func (x *Blob) String() string
- type BlobHeader
- func (*BlobHeader) Descriptor() ([]byte, []int)deprecated
- func (x *BlobHeader) GetDatasize() int32
- func (x *BlobHeader) GetIndexdata() []byte
- func (x *BlobHeader) GetType() string
- func (*BlobHeader) ProtoMessage()
- func (x *BlobHeader) ProtoReflect() protoreflect.Message
- func (x *BlobHeader) Reset()
- func (x *BlobHeader) String() string
- type ChangeSet
- type DenseInfo
- func (*DenseInfo) Descriptor() ([]byte, []int)deprecated
- func (x *DenseInfo) GetChangeset() []int64
- func (x *DenseInfo) GetTimestamp() []int64
- func (x *DenseInfo) GetUid() []int32
- func (x *DenseInfo) GetUserSid() []int32
- func (x *DenseInfo) GetVersion() []int32
- func (x *DenseInfo) GetVisible() []bool
- func (*DenseInfo) ProtoMessage()
- func (x *DenseInfo) ProtoReflect() protoreflect.Message
- func (x *DenseInfo) Reset()
- func (x *DenseInfo) String() string
- type DenseNodes
- func (*DenseNodes) Descriptor() ([]byte, []int)deprecated
- func (x *DenseNodes) GetDenseinfo() *DenseInfo
- func (x *DenseNodes) GetId() []int64
- func (x *DenseNodes) GetKeysVals() []int32
- func (x *DenseNodes) GetLat() []int64
- func (x *DenseNodes) GetLon() []int64
- func (*DenseNodes) ProtoMessage()
- func (x *DenseNodes) ProtoReflect() protoreflect.Message
- func (x *DenseNodes) Reset()
- func (x *DenseNodes) String() string
- type HeaderBBox
- func (*HeaderBBox) Descriptor() ([]byte, []int)deprecated
- func (x *HeaderBBox) GetBottom() int64
- func (x *HeaderBBox) GetLeft() int64
- func (x *HeaderBBox) GetRight() int64
- func (x *HeaderBBox) GetTop() int64
- func (*HeaderBBox) ProtoMessage()
- func (x *HeaderBBox) ProtoReflect() protoreflect.Message
- func (x *HeaderBBox) Reset()
- func (x *HeaderBBox) String() string
- type HeaderBlock
- func (*HeaderBlock) Descriptor() ([]byte, []int)deprecated
- func (x *HeaderBlock) GetBbox() *HeaderBBox
- func (x *HeaderBlock) GetOptionalFeatures() []string
- func (x *HeaderBlock) GetOsmosisReplicationBaseUrl() string
- func (x *HeaderBlock) GetOsmosisReplicationSequenceNumber() int64
- func (x *HeaderBlock) GetOsmosisReplicationTimestamp() int64
- func (x *HeaderBlock) GetRequiredFeatures() []string
- func (x *HeaderBlock) GetSource() string
- func (x *HeaderBlock) GetWritingprogram() string
- func (*HeaderBlock) ProtoMessage()
- func (x *HeaderBlock) ProtoReflect() protoreflect.Message
- func (x *HeaderBlock) Reset()
- func (x *HeaderBlock) String() string
- type Info
- func (*Info) Descriptor() ([]byte, []int)deprecated
- func (x *Info) GetChangeset() int64
- func (x *Info) GetTimestamp() int64
- func (x *Info) GetUid() int32
- func (x *Info) GetUserSid() uint32
- func (x *Info) GetVersion() int32
- func (x *Info) GetVisible() bool
- func (*Info) ProtoMessage()
- func (x *Info) ProtoReflect() protoreflect.Message
- func (x *Info) Reset()
- func (x *Info) String() string
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetId() int64
- func (x *Node) GetInfo() *Info
- func (x *Node) GetKeys() []uint32
- func (x *Node) GetLat() int64
- func (x *Node) GetLon() int64
- func (x *Node) GetVals() []uint32
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type PrimitiveBlock
- func (*PrimitiveBlock) Descriptor() ([]byte, []int)deprecated
- func (x *PrimitiveBlock) GetDateGranularity() int32
- func (x *PrimitiveBlock) GetGranularity() int32
- func (x *PrimitiveBlock) GetLatOffset() int64
- func (x *PrimitiveBlock) GetLonOffset() int64
- func (x *PrimitiveBlock) GetPrimitivegroup() []*PrimitiveGroup
- func (x *PrimitiveBlock) GetStringtable() *StringTable
- func (*PrimitiveBlock) ProtoMessage()
- func (x *PrimitiveBlock) ProtoReflect() protoreflect.Message
- func (x *PrimitiveBlock) Reset()
- func (x *PrimitiveBlock) String() string
- type PrimitiveGroup
- func (*PrimitiveGroup) Descriptor() ([]byte, []int)deprecated
- func (x *PrimitiveGroup) GetChangesets() []*ChangeSet
- func (x *PrimitiveGroup) GetDense() *DenseNodes
- func (x *PrimitiveGroup) GetNodes() []*Node
- func (x *PrimitiveGroup) GetRelations() []*Relation
- func (x *PrimitiveGroup) GetWays() []*Way
- func (*PrimitiveGroup) ProtoMessage()
- func (x *PrimitiveGroup) ProtoReflect() protoreflect.Message
- func (x *PrimitiveGroup) Reset()
- func (x *PrimitiveGroup) String() string
- type Relation
- func (*Relation) Descriptor() ([]byte, []int)deprecated
- func (x *Relation) GetId() int64
- func (x *Relation) GetInfo() *Info
- func (x *Relation) GetKeys() []uint32
- func (x *Relation) GetMemids() []int64
- func (x *Relation) GetRolesSid() []int32
- func (x *Relation) GetTypes() []Relation_MemberType
- func (x *Relation) GetVals() []uint32
- func (*Relation) ProtoMessage()
- func (x *Relation) ProtoReflect() protoreflect.Message
- func (x *Relation) Reset()
- func (x *Relation) String() string
- type Relation_MemberType
- func (Relation_MemberType) Descriptor() protoreflect.EnumDescriptor
- func (x Relation_MemberType) Enum() *Relation_MemberType
- func (Relation_MemberType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Relation_MemberType) Number() protoreflect.EnumNumber
- func (x Relation_MemberType) String() string
- func (Relation_MemberType) Type() protoreflect.EnumType
- func (x *Relation_MemberType) UnmarshalJSON(b []byte) errordeprecated
- type StringTable
- type Way
- func (*Way) Descriptor() ([]byte, []int)deprecated
- func (x *Way) GetId() int64
- func (x *Way) GetInfo() *Info
- func (x *Way) GetKeys() []uint32
- func (x *Way) GetLat() []int64
- func (x *Way) GetLon() []int64
- func (x *Way) GetRefs() []int64
- func (x *Way) GetVals() []uint32
- func (*Way) ProtoMessage()
- func (x *Way) ProtoReflect() protoreflect.Message
- func (x *Way) Reset()
- func (x *Way) String() string
Constants ¶
const ( Default_PrimitiveBlock_Granularity = int32(100) Default_PrimitiveBlock_LatOffset = int64(0) Default_PrimitiveBlock_LonOffset = int64(0) Default_PrimitiveBlock_DateGranularity = int32(1000) )
Default values for PrimitiveBlock fields.
const (
Default_Info_Version = int32(-1)
)
Default values for Info fields.
Variables ¶
var ( Relation_MemberType_name = map[int32]string{ 0: "NODE", 1: "WAY", 2: "RELATION", } Relation_MemberType_value = map[string]int32{ "NODE": 0, "WAY": 1, "RELATION": 2, } )
Enum value maps for Relation_MemberType.
var File_fileformat_proto protoreflect.FileDescriptor
var File_osmformat_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct { Raw []byte `protobuf:"bytes,1,opt,name=raw" json:"raw,omitempty"` // No compression RawSize *int32 `protobuf:"varint,2,opt,name=raw_size,json=rawSize" json:"raw_size,omitempty"` // When compressed, the uncompressed size // Possible compressed versions of the data. ZlibData []byte `protobuf:"bytes,3,opt,name=zlib_data,json=zlibData" json:"zlib_data,omitempty"` // PROPOSED feature for LZMA compressed data. SUPPORT IS NOT REQUIRED. LzmaData []byte `protobuf:"bytes,4,opt,name=lzma_data,json=lzmaData" json:"lzma_data,omitempty"` // Formerly used for bzip2 compressed data. Depreciated in 2010. // // Deprecated: Do not use. OBSOLETEBzip2Data []byte `protobuf:"bytes,5,opt,name=OBSOLETE_bzip2_data,json=OBSOLETEBzip2Data" json:"OBSOLETE_bzip2_data,omitempty"` // Don't reuse this tag number. // contains filtered or unexported fields }
func (*Blob) Descriptor
deprecated
func (*Blob) GetLzmaData ¶
func (*Blob) GetOBSOLETEBzip2Data
deprecated
func (*Blob) GetRawSize ¶
func (*Blob) GetZlibData ¶
func (*Blob) ProtoMessage ¶
func (*Blob) ProtoMessage()
func (*Blob) ProtoReflect ¶
func (x *Blob) ProtoReflect() protoreflect.Message
type BlobHeader ¶
type BlobHeader struct { Type *string `protobuf:"bytes,1,req,name=type" json:"type,omitempty"` Indexdata []byte `protobuf:"bytes,2,opt,name=indexdata" json:"indexdata,omitempty"` Datasize *int32 `protobuf:"varint,3,req,name=datasize" json:"datasize,omitempty"` // contains filtered or unexported fields }
func (*BlobHeader) Descriptor
deprecated
func (*BlobHeader) Descriptor() ([]byte, []int)
Deprecated: Use BlobHeader.ProtoReflect.Descriptor instead.
func (*BlobHeader) GetDatasize ¶
func (x *BlobHeader) GetDatasize() int32
func (*BlobHeader) GetIndexdata ¶
func (x *BlobHeader) GetIndexdata() []byte
func (*BlobHeader) GetType ¶
func (x *BlobHeader) GetType() string
func (*BlobHeader) ProtoMessage ¶
func (*BlobHeader) ProtoMessage()
func (*BlobHeader) ProtoReflect ¶
func (x *BlobHeader) ProtoReflect() protoreflect.Message
func (*BlobHeader) Reset ¶
func (x *BlobHeader) Reset()
func (*BlobHeader) String ¶
func (x *BlobHeader) String() string
type ChangeSet ¶
type ChangeSet struct { Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // contains filtered or unexported fields }
This is kept for backwards compatibility but not used anywhere.
func (*ChangeSet) Descriptor
deprecated
func (*ChangeSet) ProtoMessage ¶
func (*ChangeSet) ProtoMessage()
func (*ChangeSet) ProtoReflect ¶
func (x *ChangeSet) ProtoReflect() protoreflect.Message
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"` // DELTA coded Changeset []int64 `protobuf:"zigzag64,3,rep,packed,name=changeset" json:"changeset,omitempty"` // DELTA coded Uid []int32 `protobuf:"zigzag32,4,rep,packed,name=uid" json:"uid,omitempty"` // DELTA coded UserSid []int32 `protobuf:"zigzag32,5,rep,packed,name=user_sid,json=userSid" json:"user_sid,omitempty"` // String IDs for usernames. DELTA coded // 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"` // contains filtered or unexported fields }
* Optional metadata that may be included into each primitive. Special dense format used in DenseNodes.
func (*DenseInfo) Descriptor
deprecated
func (*DenseInfo) GetChangeset ¶
func (*DenseInfo) GetTimestamp ¶
func (*DenseInfo) GetUserSid ¶
func (*DenseInfo) GetVersion ¶
func (*DenseInfo) GetVisible ¶
func (*DenseInfo) ProtoMessage ¶
func (*DenseInfo) ProtoMessage()
func (*DenseInfo) ProtoReflect ¶
func (x *DenseInfo) ProtoReflect() protoreflect.Message
type DenseNodes ¶
type DenseNodes struct { Id []int64 `protobuf:"zigzag64,1,rep,packed,name=id" json:"id,omitempty"` // DELTA coded Denseinfo *DenseInfo `protobuf:"bytes,5,opt,name=denseinfo" json:"denseinfo,omitempty"` Lat []int64 `protobuf:"zigzag64,8,rep,packed,name=lat" json:"lat,omitempty"` // DELTA coded Lon []int64 `protobuf:"zigzag64,9,rep,packed,name=lon" json:"lon,omitempty"` // DELTA coded // 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"` // contains filtered or unexported fields }
func (*DenseNodes) Descriptor
deprecated
func (*DenseNodes) Descriptor() ([]byte, []int)
Deprecated: Use DenseNodes.ProtoReflect.Descriptor instead.
func (*DenseNodes) GetDenseinfo ¶
func (x *DenseNodes) GetDenseinfo() *DenseInfo
func (*DenseNodes) GetId ¶
func (x *DenseNodes) GetId() []int64
func (*DenseNodes) GetKeysVals ¶
func (x *DenseNodes) GetKeysVals() []int32
func (*DenseNodes) GetLat ¶
func (x *DenseNodes) GetLat() []int64
func (*DenseNodes) GetLon ¶
func (x *DenseNodes) GetLon() []int64
func (*DenseNodes) ProtoMessage ¶
func (*DenseNodes) ProtoMessage()
func (*DenseNodes) ProtoReflect ¶
func (x *DenseNodes) ProtoReflect() protoreflect.Message
func (*DenseNodes) Reset ¶
func (x *DenseNodes) Reset()
func (*DenseNodes) String ¶
func (x *DenseNodes) String() string
type HeaderBBox ¶
type HeaderBBox struct { Left *int64 `protobuf:"zigzag64,1,req,name=left" json:"left,omitempty"` Right *int64 `protobuf:"zigzag64,2,req,name=right" json:"right,omitempty"` Top *int64 `protobuf:"zigzag64,3,req,name=top" json:"top,omitempty"` Bottom *int64 `protobuf:"zigzag64,4,req,name=bottom" json:"bottom,omitempty"` // contains filtered or unexported fields }
func (*HeaderBBox) Descriptor
deprecated
func (*HeaderBBox) Descriptor() ([]byte, []int)
Deprecated: Use HeaderBBox.ProtoReflect.Descriptor instead.
func (*HeaderBBox) GetBottom ¶
func (x *HeaderBBox) GetBottom() int64
func (*HeaderBBox) GetLeft ¶
func (x *HeaderBBox) GetLeft() int64
func (*HeaderBBox) GetRight ¶
func (x *HeaderBBox) GetRight() int64
func (*HeaderBBox) GetTop ¶
func (x *HeaderBBox) GetTop() int64
func (*HeaderBBox) ProtoMessage ¶
func (*HeaderBBox) ProtoMessage()
func (*HeaderBBox) ProtoReflect ¶
func (x *HeaderBBox) ProtoReflect() protoreflect.Message
func (*HeaderBBox) Reset ¶
func (x *HeaderBBox) Reset()
func (*HeaderBBox) String ¶
func (x *HeaderBBox) String() string
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,omitempty"` Source *string `protobuf:"bytes,17,opt,name=source" json:"source,omitempty"` // From the bbox field. // 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 `` /* 139-byte string literal not displayed */ // Replication sequence number (sequenceNumber in state.txt). OsmosisReplicationSequenceNumber *int64 `` /* 156-byte string literal not displayed */ // Replication base URL (from Osmosis' configuration.txt file). OsmosisReplicationBaseUrl *string `` /* 134-byte string literal not displayed */ // contains filtered or unexported fields }
func (*HeaderBlock) Descriptor
deprecated
func (*HeaderBlock) Descriptor() ([]byte, []int)
Deprecated: Use HeaderBlock.ProtoReflect.Descriptor instead.
func (*HeaderBlock) GetBbox ¶
func (x *HeaderBlock) GetBbox() *HeaderBBox
func (*HeaderBlock) GetOptionalFeatures ¶
func (x *HeaderBlock) GetOptionalFeatures() []string
func (*HeaderBlock) GetOsmosisReplicationBaseUrl ¶
func (x *HeaderBlock) GetOsmosisReplicationBaseUrl() string
func (*HeaderBlock) GetOsmosisReplicationSequenceNumber ¶
func (x *HeaderBlock) GetOsmosisReplicationSequenceNumber() int64
func (*HeaderBlock) GetOsmosisReplicationTimestamp ¶
func (x *HeaderBlock) GetOsmosisReplicationTimestamp() int64
func (*HeaderBlock) GetRequiredFeatures ¶
func (x *HeaderBlock) GetRequiredFeatures() []string
func (*HeaderBlock) GetSource ¶
func (x *HeaderBlock) GetSource() string
func (*HeaderBlock) GetWritingprogram ¶
func (x *HeaderBlock) GetWritingprogram() string
func (*HeaderBlock) ProtoMessage ¶
func (*HeaderBlock) ProtoMessage()
func (*HeaderBlock) ProtoReflect ¶
func (x *HeaderBlock) ProtoReflect() protoreflect.Message
func (*HeaderBlock) Reset ¶
func (x *HeaderBlock) Reset()
func (*HeaderBlock) String ¶
func (x *HeaderBlock) String() string
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,omitempty"` Changeset *int64 `protobuf:"varint,3,opt,name=changeset" json:"changeset,omitempty"` Uid *int32 `protobuf:"varint,4,opt,name=uid" json:"uid,omitempty"` UserSid *uint32 `protobuf:"varint,5,opt,name=user_sid,json=userSid" json:"user_sid,omitempty"` // String IDs // 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,omitempty"` // contains filtered or unexported fields }
Optional metadata that may be included into each primitive.
func (*Info) Descriptor
deprecated
func (*Info) GetChangeset ¶
func (*Info) GetTimestamp ¶
func (*Info) GetUserSid ¶
func (*Info) GetVersion ¶
func (*Info) GetVisible ¶
func (*Info) ProtoMessage ¶
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶
func (x *Info) ProtoReflect() protoreflect.Message
type Node ¶
type Node struct { Id *int64 `protobuf:"zigzag64,1,req,name=id" json:"id,omitempty"` // Parallel arrays. Keys []uint32 `protobuf:"varint,2,rep,packed,name=keys" json:"keys,omitempty"` // String IDs. Vals []uint32 `protobuf:"varint,3,rep,packed,name=vals" json:"vals,omitempty"` // String IDs. Info *Info `protobuf:"bytes,4,opt,name=info" json:"info,omitempty"` // May be omitted in omitmeta Lat *int64 `protobuf:"zigzag64,8,req,name=lat" json:"lat,omitempty"` Lon *int64 `protobuf:"zigzag64,9,req,name=lon" json:"lon,omitempty"` // contains filtered or unexported fields }
func (*Node) Descriptor
deprecated
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
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 and the granularity grid in units 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"` // contains filtered or unexported fields }
func (*PrimitiveBlock) Descriptor
deprecated
func (*PrimitiveBlock) Descriptor() ([]byte, []int)
Deprecated: Use PrimitiveBlock.ProtoReflect.Descriptor instead.
func (*PrimitiveBlock) GetDateGranularity ¶
func (x *PrimitiveBlock) GetDateGranularity() int32
func (*PrimitiveBlock) GetGranularity ¶
func (x *PrimitiveBlock) GetGranularity() int32
func (*PrimitiveBlock) GetLatOffset ¶
func (x *PrimitiveBlock) GetLatOffset() int64
func (*PrimitiveBlock) GetLonOffset ¶
func (x *PrimitiveBlock) GetLonOffset() int64
func (*PrimitiveBlock) GetPrimitivegroup ¶
func (x *PrimitiveBlock) GetPrimitivegroup() []*PrimitiveGroup
func (*PrimitiveBlock) GetStringtable ¶
func (x *PrimitiveBlock) GetStringtable() *StringTable
func (*PrimitiveBlock) ProtoMessage ¶
func (*PrimitiveBlock) ProtoMessage()
func (*PrimitiveBlock) ProtoReflect ¶
func (x *PrimitiveBlock) ProtoReflect() protoreflect.Message
func (*PrimitiveBlock) Reset ¶
func (x *PrimitiveBlock) Reset()
func (*PrimitiveBlock) String ¶
func (x *PrimitiveBlock) String() string
type PrimitiveGroup ¶
type PrimitiveGroup struct { Nodes []*Node `protobuf:"bytes,1,rep,name=nodes" json:"nodes,omitempty"` Dense *DenseNodes `protobuf:"bytes,2,opt,name=dense" json:"dense,omitempty"` Ways []*Way `protobuf:"bytes,3,rep,name=ways" json:"ways,omitempty"` Relations []*Relation `protobuf:"bytes,4,rep,name=relations" json:"relations,omitempty"` Changesets []*ChangeSet `protobuf:"bytes,5,rep,name=changesets" json:"changesets,omitempty"` // contains filtered or unexported fields }
Group of OSMPrimitives. All primitives in a group must be the same type.
func (*PrimitiveGroup) Descriptor
deprecated
func (*PrimitiveGroup) Descriptor() ([]byte, []int)
Deprecated: Use PrimitiveGroup.ProtoReflect.Descriptor instead.
func (*PrimitiveGroup) GetChangesets ¶
func (x *PrimitiveGroup) GetChangesets() []*ChangeSet
func (*PrimitiveGroup) GetDense ¶
func (x *PrimitiveGroup) GetDense() *DenseNodes
func (*PrimitiveGroup) GetNodes ¶
func (x *PrimitiveGroup) GetNodes() []*Node
func (*PrimitiveGroup) GetRelations ¶
func (x *PrimitiveGroup) GetRelations() []*Relation
func (*PrimitiveGroup) GetWays ¶
func (x *PrimitiveGroup) GetWays() []*Way
func (*PrimitiveGroup) ProtoMessage ¶
func (*PrimitiveGroup) ProtoMessage()
func (*PrimitiveGroup) ProtoReflect ¶
func (x *PrimitiveGroup) ProtoReflect() protoreflect.Message
func (*PrimitiveGroup) Reset ¶
func (x *PrimitiveGroup) Reset()
func (*PrimitiveGroup) String ¶
func (x *PrimitiveGroup) String() string
type Relation ¶
type Relation struct { Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // 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,omitempty"` // Parallel arrays RolesSid []int32 `protobuf:"varint,8,rep,packed,name=roles_sid,json=rolesSid" json:"roles_sid,omitempty"` // This should have been defined as uint32 for consistency, but it is now too late to change it Memids []int64 `protobuf:"zigzag64,9,rep,packed,name=memids" json:"memids,omitempty"` // DELTA encoded Types []Relation_MemberType `protobuf:"varint,10,rep,packed,name=types,enum=osmpbf.Relation_MemberType" json:"types,omitempty"` // contains filtered or unexported fields }
func (*Relation) Descriptor
deprecated
func (*Relation) GetRolesSid ¶
func (*Relation) GetTypes ¶
func (x *Relation) GetTypes() []Relation_MemberType
func (*Relation) ProtoMessage ¶
func (*Relation) ProtoMessage()
func (*Relation) ProtoReflect ¶
func (x *Relation) ProtoReflect() protoreflect.Message
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) Descriptor ¶
func (Relation_MemberType) Descriptor() protoreflect.EnumDescriptor
func (Relation_MemberType) Enum ¶
func (x Relation_MemberType) Enum() *Relation_MemberType
func (Relation_MemberType) EnumDescriptor
deprecated
func (Relation_MemberType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Relation_MemberType.Descriptor instead.
func (Relation_MemberType) Number ¶
func (x Relation_MemberType) Number() protoreflect.EnumNumber
func (Relation_MemberType) String ¶
func (x Relation_MemberType) String() string
func (Relation_MemberType) Type ¶
func (Relation_MemberType) Type() protoreflect.EnumType
func (*Relation_MemberType) UnmarshalJSON
deprecated
func (x *Relation_MemberType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type StringTable ¶
type StringTable struct { S []string `protobuf:"bytes,1,rep,name=s" json:"s,omitempty"` // contains filtered or unexported fields }
* 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
deprecated
func (*StringTable) Descriptor() ([]byte, []int)
Deprecated: Use StringTable.ProtoReflect.Descriptor instead.
func (*StringTable) GetS ¶
func (x *StringTable) GetS() []string
func (*StringTable) ProtoMessage ¶
func (*StringTable) ProtoMessage()
func (*StringTable) ProtoReflect ¶
func (x *StringTable) ProtoReflect() protoreflect.Message
func (*StringTable) Reset ¶
func (x *StringTable) Reset()
func (*StringTable) String ¶
func (x *StringTable) String() string
type Way ¶
type Way struct { Id *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` // 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,omitempty"` Refs []int64 `protobuf:"zigzag64,8,rep,packed,name=refs" json:"refs,omitempty"` // DELTA coded // The following two fields are optional. They are only used in a special // format where node locations are also added to the ways. This makes the // files larger, but allows creating way geometries directly. // // If this is used, you MUST set the optional_features tag "LocationsOnWays" // and the number of values in refs, lat, and lon MUST be the same. Lat []int64 `protobuf:"zigzag64,9,rep,packed,name=lat" json:"lat,omitempty"` // DELTA coded, optional Lon []int64 `protobuf:"zigzag64,10,rep,packed,name=lon" json:"lon,omitempty"` // DELTA coded, optional // contains filtered or unexported fields }
func (*Way) Descriptor
deprecated
func (*Way) ProtoMessage ¶
func (*Way) ProtoMessage()
func (*Way) ProtoReflect ¶
func (x *Way) ProtoReflect() protoreflect.Message