Documentation
¶
Overview ¶
Package protogeo is a library for encoding and decoding geobuf into Go structs using Code generated by protoc-gen-go. DO NOT EDIT. versions:
protoc-gen-go v1.27.1 protoc v3.10.1
source: geobuf.proto
Index ¶
- Variables
- func DecodePrecision(precision uint32) float64
- func EncodePrecision(precision uint) uint32
- func FloatWithPrecision(point int64, precision uint32) float64
- func GetPrecision(point float64) uint
- func IntWithPrecision(point float64, precision uint) int64
- type Data
- func (*Data) Descriptor() ([]byte, []int)deprecated
- func (m *Data) GetDataType() isData_DataType
- func (x *Data) GetDimensions() uint32
- func (x *Data) GetFeature() *Data_Feature
- func (x *Data) GetFeatureCollection() *Data_FeatureCollection
- func (x *Data) GetGeometry() *Data_Geometry
- func (x *Data) GetKeys() []string
- func (x *Data) GetPrecision() uint32
- func (*Data) ProtoMessage()
- func (x *Data) ProtoReflect() protoreflect.Message
- func (x *Data) Reset()
- func (x *Data) String() string
- type Data_Feature
- func (*Data_Feature) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Feature) GetCustomProperties() []uint32
- func (x *Data_Feature) GetGeometry() *Data_Geometry
- func (x *Data_Feature) GetId() string
- func (m *Data_Feature) GetIdType() isData_Feature_IdType
- func (x *Data_Feature) GetIntId() int64
- func (x *Data_Feature) GetProperties() []uint32
- func (x *Data_Feature) GetValues() []*Data_Value
- func (*Data_Feature) ProtoMessage()
- func (x *Data_Feature) ProtoReflect() protoreflect.Message
- func (x *Data_Feature) Reset()
- func (x *Data_Feature) String() string
- type Data_FeatureCollection
- func (*Data_FeatureCollection) Descriptor() ([]byte, []int)deprecated
- func (x *Data_FeatureCollection) GetCustomProperties() []uint32
- func (x *Data_FeatureCollection) GetFeatures() []*Data_Feature
- func (x *Data_FeatureCollection) GetValues() []*Data_Value
- func (*Data_FeatureCollection) ProtoMessage()
- func (x *Data_FeatureCollection) ProtoReflect() protoreflect.Message
- func (x *Data_FeatureCollection) Reset()
- func (x *Data_FeatureCollection) String() string
- type Data_FeatureCollection_
- type Data_Feature_
- type Data_Feature_Id
- type Data_Feature_IntId
- type Data_Geometry
- func (*Data_Geometry) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Geometry) GetCoords() []int64
- func (x *Data_Geometry) GetCustomProperties() []uint32
- func (x *Data_Geometry) GetGeometries() []*Data_Geometry
- func (x *Data_Geometry) GetLengths() []uint32
- func (x *Data_Geometry) GetType() Data_Geometry_Type
- func (x *Data_Geometry) GetValues() []*Data_Value
- func (*Data_Geometry) ProtoMessage()
- func (x *Data_Geometry) ProtoReflect() protoreflect.Message
- func (x *Data_Geometry) Reset()
- func (x *Data_Geometry) String() string
- type Data_Geometry_
- type Data_Geometry_Type
- func (Data_Geometry_Type) Descriptor() protoreflect.EnumDescriptor
- func (x Data_Geometry_Type) Enum() *Data_Geometry_Type
- func (Data_Geometry_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x Data_Geometry_Type) Number() protoreflect.EnumNumber
- func (x Data_Geometry_Type) String() string
- func (Data_Geometry_Type) Type() protoreflect.EnumType
- type Data_Value
- func (*Data_Value) Descriptor() ([]byte, []int)deprecated
- func (x *Data_Value) GetBoolValue() bool
- func (x *Data_Value) GetDoubleValue() float64
- func (x *Data_Value) GetJsonValue() string
- func (x *Data_Value) GetNegIntValue() uint64
- func (x *Data_Value) GetPosIntValue() uint64
- func (x *Data_Value) GetStringValue() string
- func (m *Data_Value) GetValueType() isData_Value_ValueType
- func (*Data_Value) ProtoMessage()
- func (x *Data_Value) ProtoReflect() protoreflect.Message
- func (x *Data_Value) Reset()
- func (x *Data_Value) String() string
- type Data_Value_BoolValue
- type Data_Value_DoubleValue
- type Data_Value_JsonValue
- type Data_Value_NegIntValue
- type Data_Value_PosIntValue
- type Data_Value_StringValue
- type KeyStore
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Data_Geometry_Type_name = map[int32]string{ 0: "POINT", 1: "MULTIPOINT", 2: "LINESTRING", 3: "MULTILINESTRING", 4: "POLYGON", 5: "MULTIPOLYGON", 6: "GEOMETRYCOLLECTION", } Data_Geometry_Type_value = map[string]int32{ "POINT": 0, "MULTIPOINT": 1, "LINESTRING": 2, "MULTILINESTRING": 3, "POLYGON": 4, "MULTIPOLYGON": 5, "GEOMETRYCOLLECTION": 6, } )
Enum value maps for Data_Geometry_Type.
View Source
var File_geobuf_proto protoreflect.FileDescriptor
View Source
var ( // MaxPrecision ... MaxPrecision = uint(math.Pow10(9)) )
Functions ¶
func FloatWithPrecision ¶
FloatWithPrecision ...
func IntWithPrecision ¶
IntWithPrecision ///
Types ¶
type Data ¶
type Data struct {
Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // global arrays of unique keys
Dimensions uint32 `protobuf:"varint,2,opt,name=dimensions,proto3" json:"dimensions,omitempty"` // max coordinate dimensions, default 2
Precision uint32 `protobuf:"varint,3,opt,name=precision,proto3" json:"precision,omitempty"` // number of digits after decimal point for coordinates, default 6
// Types that are assignable to DataType:
// *Data_FeatureCollection_
// *Data_Feature_
// *Data_Geometry_
DataType isData_DataType `protobuf_oneof:"data_type"`
// contains filtered or unexported fields
}
func (*Data) Descriptor
deprecated
func (*Data) GetDataType ¶
func (m *Data) GetDataType() isData_DataType
func (*Data) GetDimensions ¶
func (*Data) GetFeature ¶
func (x *Data) GetFeature() *Data_Feature
func (*Data) GetFeatureCollection ¶
func (x *Data) GetFeatureCollection() *Data_FeatureCollection
func (*Data) GetGeometry ¶
func (x *Data) GetGeometry() *Data_Geometry
func (*Data) GetPrecision ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type Data_Feature ¶
type Data_Feature struct {
Geometry *Data_Geometry `protobuf:"bytes,1,opt,name=geometry,proto3" json:"geometry,omitempty"`
// Types that are assignable to IdType:
// *Data_Feature_Id
// *Data_Feature_IntId
IdType isData_Feature_IdType `protobuf_oneof:"id_type"`
Values []*Data_Value `protobuf:"bytes,13,rep,name=values,proto3" json:"values,omitempty"` // unique values
Properties []uint32 `protobuf:"varint,14,rep,packed,name=properties,proto3" json:"properties,omitempty"` // pairs of key/value indexes
CustomProperties []uint32 `protobuf:"varint,15,rep,packed,name=custom_properties,json=customProperties,proto3" json:"custom_properties,omitempty"` // arbitrary properties
// contains filtered or unexported fields
}
func (*Data_Feature) Descriptor
deprecated
func (*Data_Feature) Descriptor() ([]byte, []int)
Deprecated: Use Data_Feature.ProtoReflect.Descriptor instead.
func (*Data_Feature) GetCustomProperties ¶
func (x *Data_Feature) GetCustomProperties() []uint32
func (*Data_Feature) GetGeometry ¶
func (x *Data_Feature) GetGeometry() *Data_Geometry
func (*Data_Feature) GetId ¶
func (x *Data_Feature) GetId() string
func (*Data_Feature) GetIdType ¶
func (m *Data_Feature) GetIdType() isData_Feature_IdType
func (*Data_Feature) GetIntId ¶
func (x *Data_Feature) GetIntId() int64
func (*Data_Feature) GetProperties ¶
func (x *Data_Feature) GetProperties() []uint32
func (*Data_Feature) GetValues ¶
func (x *Data_Feature) GetValues() []*Data_Value
func (*Data_Feature) ProtoMessage ¶
func (*Data_Feature) ProtoMessage()
func (*Data_Feature) ProtoReflect ¶
func (x *Data_Feature) ProtoReflect() protoreflect.Message
func (*Data_Feature) Reset ¶
func (x *Data_Feature) Reset()
func (*Data_Feature) String ¶
func (x *Data_Feature) String() string
type Data_FeatureCollection ¶
type Data_FeatureCollection struct {
Features []*Data_Feature `protobuf:"bytes,1,rep,name=features,proto3" json:"features,omitempty"`
Values []*Data_Value `protobuf:"bytes,13,rep,name=values,proto3" json:"values,omitempty"`
CustomProperties []uint32 `protobuf:"varint,15,rep,packed,name=custom_properties,json=customProperties,proto3" json:"custom_properties,omitempty"`
// contains filtered or unexported fields
}
func (*Data_FeatureCollection) Descriptor
deprecated
func (*Data_FeatureCollection) Descriptor() ([]byte, []int)
Deprecated: Use Data_FeatureCollection.ProtoReflect.Descriptor instead.
func (*Data_FeatureCollection) GetCustomProperties ¶
func (x *Data_FeatureCollection) GetCustomProperties() []uint32
func (*Data_FeatureCollection) GetFeatures ¶
func (x *Data_FeatureCollection) GetFeatures() []*Data_Feature
func (*Data_FeatureCollection) GetValues ¶
func (x *Data_FeatureCollection) GetValues() []*Data_Value
func (*Data_FeatureCollection) ProtoMessage ¶
func (*Data_FeatureCollection) ProtoMessage()
func (*Data_FeatureCollection) ProtoReflect ¶
func (x *Data_FeatureCollection) ProtoReflect() protoreflect.Message
func (*Data_FeatureCollection) Reset ¶
func (x *Data_FeatureCollection) Reset()
func (*Data_FeatureCollection) String ¶
func (x *Data_FeatureCollection) String() string
type Data_FeatureCollection_ ¶
type Data_FeatureCollection_ struct {
FeatureCollection *Data_FeatureCollection `protobuf:"bytes,4,opt,name=feature_collection,json=featureCollection,proto3,oneof"`
}
type Data_Feature_ ¶
type Data_Feature_ struct {
Feature *Data_Feature `protobuf:"bytes,5,opt,name=feature,proto3,oneof"`
}
type Data_Feature_Id ¶
type Data_Feature_Id struct {
Id string `protobuf:"bytes,11,opt,name=id,proto3,oneof"`
}
type Data_Feature_IntId ¶
type Data_Feature_IntId struct {
IntId int64 `protobuf:"zigzag64,12,opt,name=int_id,json=intId,proto3,oneof"`
}
type Data_Geometry ¶
type Data_Geometry struct {
Type Data_Geometry_Type `protobuf:"varint,1,opt,name=type,proto3,enum=geobuf.Data_Geometry_Type" json:"type,omitempty"`
Lengths []uint32 `protobuf:"varint,2,rep,packed,name=lengths,proto3" json:"lengths,omitempty"` // coordinate structure in lengths
Coords []int64 `protobuf:"zigzag64,3,rep,packed,name=coords,proto3" json:"coords,omitempty"` // delta-encoded integer values
Geometries []*Data_Geometry `protobuf:"bytes,4,rep,name=geometries,proto3" json:"geometries,omitempty"`
Values []*Data_Value `protobuf:"bytes,13,rep,name=values,proto3" json:"values,omitempty"`
CustomProperties []uint32 `protobuf:"varint,15,rep,packed,name=custom_properties,json=customProperties,proto3" json:"custom_properties,omitempty"`
// contains filtered or unexported fields
}
func (*Data_Geometry) Descriptor
deprecated
func (*Data_Geometry) Descriptor() ([]byte, []int)
Deprecated: Use Data_Geometry.ProtoReflect.Descriptor instead.
func (*Data_Geometry) GetCoords ¶
func (x *Data_Geometry) GetCoords() []int64
func (*Data_Geometry) GetCustomProperties ¶
func (x *Data_Geometry) GetCustomProperties() []uint32
func (*Data_Geometry) GetGeometries ¶
func (x *Data_Geometry) GetGeometries() []*Data_Geometry
func (*Data_Geometry) GetLengths ¶
func (x *Data_Geometry) GetLengths() []uint32
func (*Data_Geometry) GetType ¶
func (x *Data_Geometry) GetType() Data_Geometry_Type
func (*Data_Geometry) GetValues ¶
func (x *Data_Geometry) GetValues() []*Data_Value
func (*Data_Geometry) ProtoMessage ¶
func (*Data_Geometry) ProtoMessage()
func (*Data_Geometry) ProtoReflect ¶
func (x *Data_Geometry) ProtoReflect() protoreflect.Message
func (*Data_Geometry) Reset ¶
func (x *Data_Geometry) Reset()
func (*Data_Geometry) String ¶
func (x *Data_Geometry) String() string
type Data_Geometry_ ¶
type Data_Geometry_ struct {
Geometry *Data_Geometry `protobuf:"bytes,6,opt,name=geometry,proto3,oneof"`
}
type Data_Geometry_Type ¶
type Data_Geometry_Type int32
const ( Data_Geometry_POINT Data_Geometry_Type = 0 Data_Geometry_MULTIPOINT Data_Geometry_Type = 1 Data_Geometry_LINESTRING Data_Geometry_Type = 2 Data_Geometry_MULTILINESTRING Data_Geometry_Type = 3 Data_Geometry_POLYGON Data_Geometry_Type = 4 Data_Geometry_MULTIPOLYGON Data_Geometry_Type = 5 Data_Geometry_GEOMETRYCOLLECTION Data_Geometry_Type = 6 )
func (Data_Geometry_Type) Descriptor ¶
func (Data_Geometry_Type) Descriptor() protoreflect.EnumDescriptor
func (Data_Geometry_Type) Enum ¶
func (x Data_Geometry_Type) Enum() *Data_Geometry_Type
func (Data_Geometry_Type) EnumDescriptor
deprecated
func (Data_Geometry_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use Data_Geometry_Type.Descriptor instead.
func (Data_Geometry_Type) Number ¶
func (x Data_Geometry_Type) Number() protoreflect.EnumNumber
func (Data_Geometry_Type) String ¶
func (x Data_Geometry_Type) String() string
func (Data_Geometry_Type) Type ¶
func (Data_Geometry_Type) Type() protoreflect.EnumType
type Data_Value ¶
type Data_Value struct {
// Types that are assignable to ValueType:
// *Data_Value_StringValue
// *Data_Value_DoubleValue
// *Data_Value_PosIntValue
// *Data_Value_NegIntValue
// *Data_Value_BoolValue
// *Data_Value_JsonValue
ValueType isData_Value_ValueType `protobuf_oneof:"value_type"`
// contains filtered or unexported fields
}
func (*Data_Value) Descriptor
deprecated
func (*Data_Value) Descriptor() ([]byte, []int)
Deprecated: Use Data_Value.ProtoReflect.Descriptor instead.
func (*Data_Value) GetBoolValue ¶
func (x *Data_Value) GetBoolValue() bool
func (*Data_Value) GetDoubleValue ¶
func (x *Data_Value) GetDoubleValue() float64
func (*Data_Value) GetJsonValue ¶
func (x *Data_Value) GetJsonValue() string
func (*Data_Value) GetNegIntValue ¶
func (x *Data_Value) GetNegIntValue() uint64
func (*Data_Value) GetPosIntValue ¶
func (x *Data_Value) GetPosIntValue() uint64
func (*Data_Value) GetStringValue ¶
func (x *Data_Value) GetStringValue() string
func (*Data_Value) GetValueType ¶
func (m *Data_Value) GetValueType() isData_Value_ValueType
func (*Data_Value) ProtoMessage ¶
func (*Data_Value) ProtoMessage()
func (*Data_Value) ProtoReflect ¶
func (x *Data_Value) ProtoReflect() protoreflect.Message
func (*Data_Value) Reset ¶
func (x *Data_Value) Reset()
func (*Data_Value) String ¶
func (x *Data_Value) String() string
type Data_Value_BoolValue ¶
type Data_Value_BoolValue struct {
BoolValue bool `protobuf:"varint,5,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type Data_Value_DoubleValue ¶
type Data_Value_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,2,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type Data_Value_JsonValue ¶
type Data_Value_JsonValue struct {
JsonValue string `protobuf:"bytes,6,opt,name=json_value,json=jsonValue,proto3,oneof"`
}
type Data_Value_NegIntValue ¶
type Data_Value_NegIntValue struct {
NegIntValue uint64 `protobuf:"varint,4,opt,name=neg_int_value,json=negIntValue,proto3,oneof"`
}
type Data_Value_PosIntValue ¶
type Data_Value_PosIntValue struct {
PosIntValue uint64 `protobuf:"varint,3,opt,name=pos_int_value,json=posIntValue,proto3,oneof"`
}
type Data_Value_StringValue ¶
type Data_Value_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
Click to show internal directories.
Click to hide internal directories.