osmpbf

package
v0.0.0-...-85720d3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const Default_Info_Version int32 = -1
View Source
const Default_PrimitiveBlock_DateGranularity int32 = 1000
View Source
const Default_PrimitiveBlock_Granularity int32 = 100
View Source
const Default_PrimitiveBlock_LatOffset int64 = 0
View Source
const Default_PrimitiveBlock_LonOffset int64 = 0

Variables

View Source
var Relation_MemberType_name = map[int32]string{
	0: "NODE",
	1: "WAY",
	2: "RELATION",
}
View Source
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,omitempty"`
	RawSize           *int32 `protobuf:"varint,2,opt,name=raw_size" json:"raw_size,omitempty"`
	ZlibData          []byte `protobuf:"bytes,3,opt,name=zlib_data" json:"zlib_data,omitempty"`
	LzmaData          []byte `protobuf:"bytes,4,opt,name=lzma_data" json:"lzma_data,omitempty"`
	OBSOLETEBzip2Data []byte `protobuf:"bytes,5,opt,name=OBSOLETE_bzip2_data" json:"OBSOLETE_bzip2_data,omitempty"`
	XXX_unrecognized  []byte `json:"-"`
}

func (*Blob) GetLzmaData

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

func (*Blob) GetOBSOLETEBzip2Data

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

func (*Blob) GetRaw

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

func (*Blob) GetRawSize

func (this *Blob) GetRawSize() int32

func (*Blob) GetZlibData

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

func (*Blob) ProtoMessage

func (*Blob) ProtoMessage()

func (*Blob) Reset

func (this *Blob) Reset()

func (*Blob) String

func (this *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"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*BlobHeader) GetDatasize

func (this *BlobHeader) GetDatasize() int32

func (*BlobHeader) GetIndexdata

func (this *BlobHeader) GetIndexdata() []byte

func (*BlobHeader) GetType

func (this *BlobHeader) GetType() string

func (*BlobHeader) ProtoMessage

func (*BlobHeader) ProtoMessage()

func (*BlobHeader) Reset

func (this *BlobHeader) Reset()

func (*BlobHeader) String

func (this *BlobHeader) String() string

type ChangeSet

type ChangeSet struct {
	Id               *int64 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*ChangeSet) GetId

func (this *ChangeSet) GetId() int64

func (*ChangeSet) ProtoMessage

func (*ChangeSet) ProtoMessage()

func (*ChangeSet) Reset

func (this *ChangeSet) Reset()

func (*ChangeSet) String

func (this *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"`
	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:"user_sid,omitempty"`
	Visible          []bool  `protobuf:"varint,6,rep,packed,name=visible" json:"visible,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*DenseInfo) ProtoMessage

func (*DenseInfo) ProtoMessage()

func (*DenseInfo) Reset

func (this *DenseInfo) Reset()

func (*DenseInfo) String

func (this *DenseInfo) String() string

type DenseNodes

type DenseNodes struct {
	Id               []int64    `protobuf:"zigzag64,1,rep,packed,name=id" json:"id,omitempty"`
	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"`
	KeysVals         []int32    `protobuf:"varint,10,rep,packed,name=keys_vals" json:"keys_vals,omitempty"`
	XXX_unrecognized []byte     `json:"-"`
}

func (*DenseNodes) GetDenseinfo

func (this *DenseNodes) GetDenseinfo() *DenseInfo

func (*DenseNodes) ProtoMessage

func (*DenseNodes) ProtoMessage()

func (*DenseNodes) Reset

func (this *DenseNodes) Reset()

func (*DenseNodes) String

func (this *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"`
	XXX_unrecognized []byte `json:"-"`
}

func (*HeaderBBox) GetBottom

func (this *HeaderBBox) GetBottom() int64

func (*HeaderBBox) GetLeft

func (this *HeaderBBox) GetLeft() int64

func (*HeaderBBox) GetRight

func (this *HeaderBBox) GetRight() int64

func (*HeaderBBox) GetTop

func (this *HeaderBBox) GetTop() int64

func (*HeaderBBox) ProtoMessage

func (*HeaderBBox) ProtoMessage()

func (*HeaderBBox) Reset

func (this *HeaderBBox) Reset()

func (*HeaderBBox) String

func (this *HeaderBBox) String() string

type HeaderBlock

type HeaderBlock struct {
	Bbox                             *HeaderBBox `protobuf:"bytes,1,opt,name=bbox" json:"bbox,omitempty"`
	RequiredFeatures                 []string    `protobuf:"bytes,4,rep,name=required_features" json:"required_features,omitempty"`
	OptionalFeatures                 []string    `protobuf:"bytes,5,rep,name=optional_features" 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"`
	OsmosisReplicationTimestamp      *int64      `protobuf:"varint,32,opt,name=osmosis_replication_timestamp" json:"osmosis_replication_timestamp,omitempty"`
	OsmosisReplicationSequenceNumber *int64      `protobuf:"varint,33,opt,name=osmosis_replication_sequence_number" json:"osmosis_replication_sequence_number,omitempty"`
	OsmosisReplicationBaseUrl        *string     `protobuf:"bytes,34,opt,name=osmosis_replication_base_url" json:"osmosis_replication_base_url,omitempty"`
	XXX_unrecognized                 []byte      `json:"-"`
}

func (*HeaderBlock) GetBbox

func (this *HeaderBlock) GetBbox() *HeaderBBox

func (*HeaderBlock) GetOsmosisReplicationBaseUrl

func (this *HeaderBlock) GetOsmosisReplicationBaseUrl() string

func (*HeaderBlock) GetOsmosisReplicationSequenceNumber

func (this *HeaderBlock) GetOsmosisReplicationSequenceNumber() int64

func (*HeaderBlock) GetOsmosisReplicationTimestamp

func (this *HeaderBlock) GetOsmosisReplicationTimestamp() int64

func (*HeaderBlock) GetSource

func (this *HeaderBlock) GetSource() string

func (*HeaderBlock) GetWritingprogram

func (this *HeaderBlock) GetWritingprogram() string

func (*HeaderBlock) ProtoMessage

func (*HeaderBlock) ProtoMessage()

func (*HeaderBlock) Reset

func (this *HeaderBlock) Reset()

func (*HeaderBlock) String

func (this *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:"user_sid,omitempty"`
	Visible          *bool   `protobuf:"varint,6,opt,name=visible" json:"visible,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Info) GetChangeset

func (this *Info) GetChangeset() int64

func (*Info) GetTimestamp

func (this *Info) GetTimestamp() int64

func (*Info) GetUid

func (this *Info) GetUid() int32

func (*Info) GetUserSid

func (this *Info) GetUserSid() uint32

func (*Info) GetVersion

func (this *Info) GetVersion() int32

func (*Info) GetVisible

func (this *Info) GetVisible() bool

func (*Info) ProtoMessage

func (*Info) ProtoMessage()

func (*Info) Reset

func (this *Info) Reset()

func (*Info) String

func (this *Info) String() string

type Node

type Node struct {
	Id               *int64   `protobuf:"zigzag64,1,req,name=id" json:"id,omitempty"`
	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"`
	Lat              *int64   `protobuf:"zigzag64,8,req,name=lat" json:"lat,omitempty"`
	Lon              *int64   `protobuf:"zigzag64,9,req,name=lon" json:"lon,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*Node) GetId

func (this *Node) GetId() int64

func (*Node) GetInfo

func (this *Node) GetInfo() *Info

func (*Node) GetLat

func (this *Node) GetLat() int64

func (*Node) GetLon

func (this *Node) GetLon() int64

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) Reset

func (this *Node) Reset()

func (*Node) String

func (this *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      *int32            `protobuf:"varint,17,opt,name=granularity,def=100" json:"granularity,omitempty"`
	LatOffset        *int64            `protobuf:"varint,19,opt,name=lat_offset,def=0" json:"lat_offset,omitempty"`
	LonOffset        *int64            `protobuf:"varint,20,opt,name=lon_offset,def=0" json:"lon_offset,omitempty"`
	DateGranularity  *int32            `protobuf:"varint,18,opt,name=date_granularity,def=1000" json:"date_granularity,omitempty"`
	XXX_unrecognized []byte            `json:"-"`
}

func (*PrimitiveBlock) GetDateGranularity

func (this *PrimitiveBlock) GetDateGranularity() int32

func (*PrimitiveBlock) GetGranularity

func (this *PrimitiveBlock) GetGranularity() int32

func (*PrimitiveBlock) GetLatOffset

func (this *PrimitiveBlock) GetLatOffset() int64

func (*PrimitiveBlock) GetLonOffset

func (this *PrimitiveBlock) GetLonOffset() int64

func (*PrimitiveBlock) GetStringtable

func (this *PrimitiveBlock) GetStringtable() *StringTable

func (*PrimitiveBlock) ProtoMessage

func (*PrimitiveBlock) ProtoMessage()

func (*PrimitiveBlock) Reset

func (this *PrimitiveBlock) Reset()

func (*PrimitiveBlock) String

func (this *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"`
	XXX_unrecognized []byte       `json:"-"`
}

func (*PrimitiveGroup) GetDense

func (this *PrimitiveGroup) GetDense() *DenseNodes

func (*PrimitiveGroup) ProtoMessage

func (*PrimitiveGroup) ProtoMessage()

func (*PrimitiveGroup) Reset

func (this *PrimitiveGroup) Reset()

func (*PrimitiveGroup) String

func (this *PrimitiveGroup) String() string

type Relation

type Relation struct {
	Id               *int64                `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
	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"`
	RolesSid         []int32               `protobuf:"varint,8,rep,packed,name=roles_sid" 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=imposm3.Relation_MemberType" json:"types,omitempty"`
	XXX_unrecognized []byte                `json:"-"`
}

func (*Relation) GetId

func (this *Relation) GetId() int64

func (*Relation) GetInfo

func (this *Relation) GetInfo() *Info

func (*Relation) ProtoMessage

func (*Relation) ProtoMessage()

func (*Relation) Reset

func (this *Relation) Reset()

func (*Relation) String

func (this *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) Enum

func (Relation_MemberType) MarshalJSON

func (x Relation_MemberType) MarshalJSON() ([]byte, error)

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"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*StringTable) ProtoMessage

func (*StringTable) ProtoMessage()

func (*StringTable) Reset

func (this *StringTable) Reset()

func (*StringTable) String

func (this *StringTable) String() string

type Way

type Way struct {
	Id               *int64   `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
	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"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*Way) GetId

func (this *Way) GetId() int64

func (*Way) GetInfo

func (this *Way) GetInfo() *Info

func (*Way) ProtoMessage

func (*Way) ProtoMessage()

func (*Way) Reset

func (this *Way) Reset()

func (*Way) String

func (this *Way) String() string

Jump to

Keyboard shortcuts

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