osmpbf

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 4 Imported by: 0

README

*.proto files were downloaded from https://github.com/scrosby/OSM-binary/tree/master/src and changed in following ways:

  • To eliminate continuous conversions from []byte to string, this
message StringTable {
   repeated bytes s = 1;
}

was changed to

message StringTable {
   repeated string s = 1;
}

This changes is expected to be fully compatible with all PBF files.

Documentation

Index

Constants

View Source
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.

View Source
const (
	Default_Info_Version = int32(-1)
)

Default values for Info fields.

Variables

View Source
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.

View Source
var File_fileformat_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Blob.ProtoReflect.Descriptor instead.

func (*Blob) GetLzmaData

func (x *Blob) GetLzmaData() []byte

func (*Blob) GetOBSOLETEBzip2Data deprecated

func (x *Blob) GetOBSOLETEBzip2Data() []byte

Deprecated: Do not use.

func (*Blob) GetRaw

func (x *Blob) GetRaw() []byte

func (*Blob) GetRawSize

func (x *Blob) GetRawSize() int32

func (*Blob) GetZlibData

func (x *Blob) GetZlibData() []byte

func (*Blob) ProtoMessage

func (*Blob) ProtoMessage()

func (*Blob) ProtoReflect added in v0.4.0

func (x *Blob) ProtoReflect() protoreflect.Message

func (*Blob) Reset

func (x *Blob) Reset()

func (*Blob) String

func (x *Blob) String() string

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 added in v0.4.0

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) Descriptor() ([]byte, []int)

Deprecated: Use ChangeSet.ProtoReflect.Descriptor instead.

func (*ChangeSet) GetId

func (x *ChangeSet) GetId() int64

func (*ChangeSet) ProtoMessage

func (*ChangeSet) ProtoMessage()

func (*ChangeSet) ProtoReflect added in v0.4.0

func (x *ChangeSet) ProtoReflect() protoreflect.Message

func (*ChangeSet) Reset

func (x *ChangeSet) Reset()

func (*ChangeSet) String

func (x *ChangeSet) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use DenseInfo.ProtoReflect.Descriptor instead.

func (*DenseInfo) GetChangeset

func (x *DenseInfo) GetChangeset() []int64

func (*DenseInfo) GetTimestamp

func (x *DenseInfo) GetTimestamp() []int64

func (*DenseInfo) GetUid

func (x *DenseInfo) GetUid() []int32

func (*DenseInfo) GetUserSid

func (x *DenseInfo) GetUserSid() []int32

func (*DenseInfo) GetVersion

func (x *DenseInfo) GetVersion() []int32

func (*DenseInfo) GetVisible

func (x *DenseInfo) GetVisible() []bool

func (*DenseInfo) ProtoMessage

func (*DenseInfo) ProtoMessage()

func (*DenseInfo) ProtoReflect added in v0.4.0

func (x *DenseInfo) ProtoReflect() protoreflect.Message

func (*DenseInfo) Reset

func (x *DenseInfo) Reset()

func (*DenseInfo) String

func (x *DenseInfo) String() string

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 added in v0.4.0

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 added in v0.4.0

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 added in v0.4.0

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) Descriptor() ([]byte, []int)

Deprecated: Use Info.ProtoReflect.Descriptor instead.

func (*Info) GetChangeset

func (x *Info) GetChangeset() int64

func (*Info) GetTimestamp

func (x *Info) GetTimestamp() int64

func (*Info) GetUid

func (x *Info) GetUid() int32

func (*Info) GetUserSid

func (x *Info) GetUserSid() uint32

func (*Info) GetVersion

func (x *Info) GetVersion() int32

func (*Info) GetVisible

func (x *Info) GetVisible() bool

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) ProtoReflect added in v0.4.0

func (x *Info) ProtoReflect() protoreflect.Message

func (*Info) Reset

func (x *Info) Reset()

func (*Info) String

func (x *Info) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetId

func (x *Node) GetId() int64

func (*Node) GetInfo

func (x *Node) GetInfo() *Info

func (*Node) GetKeys

func (x *Node) GetKeys() []uint32

func (*Node) GetLat

func (x *Node) GetLat() int64

func (*Node) GetLon

func (x *Node) GetLon() int64

func (*Node) GetVals

func (x *Node) GetVals() []uint32

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect added in v0.4.0

func (x *Node) ProtoReflect() protoreflect.Message

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

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 added in v0.4.0

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 added in v0.4.0

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) Descriptor() ([]byte, []int)

Deprecated: Use Relation.ProtoReflect.Descriptor instead.

func (*Relation) GetId

func (x *Relation) GetId() int64

func (*Relation) GetInfo

func (x *Relation) GetInfo() *Info

func (*Relation) GetKeys

func (x *Relation) GetKeys() []uint32

func (*Relation) GetMemids

func (x *Relation) GetMemids() []int64

func (*Relation) GetRolesSid

func (x *Relation) GetRolesSid() []int32

func (*Relation) GetTypes

func (x *Relation) GetTypes() []Relation_MemberType

func (*Relation) GetVals

func (x *Relation) GetVals() []uint32

func (*Relation) ProtoMessage

func (*Relation) ProtoMessage()

func (*Relation) ProtoReflect added in v0.4.0

func (x *Relation) ProtoReflect() protoreflect.Message

func (*Relation) Reset

func (x *Relation) Reset()

func (*Relation) String

func (x *Relation) String() string

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 added in v0.4.0

func (Relation_MemberType) Enum

func (Relation_MemberType) EnumDescriptor deprecated

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

Deprecated: Use Relation_MemberType.Descriptor instead.

func (Relation_MemberType) Number added in v0.4.0

func (Relation_MemberType) String

func (x Relation_MemberType) String() string

func (Relation_MemberType) Type added in v0.4.0

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 added in v0.4.0

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) Descriptor() ([]byte, []int)

Deprecated: Use Way.ProtoReflect.Descriptor instead.

func (*Way) GetId

func (x *Way) GetId() int64

func (*Way) GetInfo

func (x *Way) GetInfo() *Info

func (*Way) GetKeys

func (x *Way) GetKeys() []uint32

func (*Way) GetLat added in v0.2.2

func (x *Way) GetLat() []int64

func (*Way) GetLon added in v0.2.2

func (x *Way) GetLon() []int64

func (*Way) GetRefs

func (x *Way) GetRefs() []int64

func (*Way) GetVals

func (x *Way) GetVals() []uint32

func (*Way) ProtoMessage

func (*Way) ProtoMessage()

func (*Way) ProtoReflect added in v0.4.0

func (x *Way) ProtoReflect() protoreflect.Message

func (*Way) Reset

func (x *Way) Reset()

func (*Way) String

func (x *Way) String() string

Jump to

Keyboard shortcuts

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