geompb

package
v0.0.0-...-715bb3b Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AltitudeUnit_name = map[int32]string{
		0: "ALTITUDE_UNIT_UNSPECIFIED",
		1: "ALTITUDE_UNIT_METERS",
		2: "ALTITUDE_UNIT_FEET",
	}
	AltitudeUnit_value = map[string]int32{
		"ALTITUDE_UNIT_UNSPECIFIED": 0,
		"ALTITUDE_UNIT_METERS":      1,
		"ALTITUDE_UNIT_FEET":        2,
	}
)

Enum value maps for AltitudeUnit.

View Source
var (
	AltitudeReference_name = map[int32]string{
		0: "ALTITUDE_REFERENCE_UNSPECIFIED",
		1: "ALTITUDE_REFERENCE_WGS84",
		2: "ALTITUDE_REFERENCE_AGL",
		3: "ALTITUDE_REFERENCE_AMSL",
	}
	AltitudeReference_value = map[string]int32{
		"ALTITUDE_REFERENCE_UNSPECIFIED": 0,
		"ALTITUDE_REFERENCE_WGS84":       1,
		"ALTITUDE_REFERENCE_AGL":         2,
		"ALTITUDE_REFERENCE_AMSL":        3,
	}
)

Enum value maps for AltitudeReference.

View Source
var (
	Geometry_Type_name = map[int32]string{
		0:  "TYPE_UNSPECIFIED",
		1:  "TYPE_POINT",
		2:  "TYPE_POINTZ",
		3:  "TYPE_MULTIPOINT",
		4:  "TYPE_MULTIPOINTZ",
		5:  "TYPE_POLYGON",
		6:  "TYPE_POLYGONZ",
		7:  "TYPE_MULTIPOLYGON",
		8:  "TYPE_MULTIPOLYGONZ",
		9:  "TYPE_LINESTRING",
		10: "TYPE_LINESTRINGZ",
		11: "TYPE_MULTILINESTRING",
		12: "TYPE_MULTILINESTRINGZ",
	}
	Geometry_Type_value = map[string]int32{
		"TYPE_UNSPECIFIED":      0,
		"TYPE_POINT":            1,
		"TYPE_POINTZ":           2,
		"TYPE_MULTIPOINT":       3,
		"TYPE_MULTIPOINTZ":      4,
		"TYPE_POLYGON":          5,
		"TYPE_POLYGONZ":         6,
		"TYPE_MULTIPOLYGON":     7,
		"TYPE_MULTIPOLYGONZ":    8,
		"TYPE_LINESTRING":       9,
		"TYPE_LINESTRINGZ":      10,
		"TYPE_MULTILINESTRING":  11,
		"TYPE_MULTILINESTRINGZ": 12,
	}
)

Enum value maps for Geometry_Type.

View Source
var File_geompb_v1_geom_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AltitudeReference

type AltitudeReference int32
const (
	AltitudeReference_ALTITUDE_REFERENCE_UNSPECIFIED AltitudeReference = 0
	AltitudeReference_ALTITUDE_REFERENCE_WGS84       AltitudeReference = 1 // altitute ref is WGS84, ellipsoid
	AltitudeReference_ALTITUDE_REFERENCE_AGL         AltitudeReference = 2 // altitude ref is AGL, above ground level
	AltitudeReference_ALTITUDE_REFERENCE_AMSL        AltitudeReference = 3 // altitude ref is AMSL, above mean sea level
)

func (AltitudeReference) Descriptor

func (AltitudeReference) Enum

func (AltitudeReference) EnumDescriptor deprecated

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

Deprecated: Use AltitudeReference.Descriptor instead.

func (AltitudeReference) Number

func (AltitudeReference) String

func (x AltitudeReference) String() string

func (AltitudeReference) Type

type AltitudeUnit

type AltitudeUnit int32
const (
	AltitudeUnit_ALTITUDE_UNIT_UNSPECIFIED AltitudeUnit = 0
	AltitudeUnit_ALTITUDE_UNIT_METERS      AltitudeUnit = 1 // altitude is expressed in meters
	AltitudeUnit_ALTITUDE_UNIT_FEET        AltitudeUnit = 2 // altitude is expressed in feet
)

func (AltitudeUnit) Descriptor

func (AltitudeUnit) Enum

func (x AltitudeUnit) Enum() *AltitudeUnit

func (AltitudeUnit) EnumDescriptor deprecated

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

Deprecated: Use AltitudeUnit.Descriptor instead.

func (AltitudeUnit) Number

func (AltitudeUnit) String

func (x AltitudeUnit) String() string

func (AltitudeUnit) Type

type Coordinates

type Coordinates struct {
	Sequences []float64 `protobuf:"fixed64,1,rep,packed,name=sequences,proto3" json:"sequences,omitempty"` // lng, lat or lng lat altitude
	// contains filtered or unexported fields
}

func (*Coordinates) Descriptor deprecated

func (*Coordinates) Descriptor() ([]byte, []int)

Deprecated: Use Coordinates.ProtoReflect.Descriptor instead.

func (*Coordinates) GetSequences

func (x *Coordinates) GetSequences() []float64

func (*Coordinates) ProtoMessage

func (*Coordinates) ProtoMessage()

func (*Coordinates) ProtoReflect

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

func (*Coordinates) Reset

func (x *Coordinates) Reset()

func (*Coordinates) String

func (x *Coordinates) String() string

type Geometry

type Geometry struct {
	Type        Geometry_Type  `protobuf:"varint,1,opt,name=type,proto3,enum=geompb.v1.Geometry_Type" json:"type,omitempty"`
	Geometries  []*Geometry    `protobuf:"bytes,2,rep,name=geometries,proto3" json:"geometries,omitempty"`
	Coordinates []*Coordinates `protobuf:"bytes,3,rep,name=coordinates,proto3" json:"coordinates,omitempty"`
	// contains filtered or unexported fields
}

func (*Geometry) Descriptor deprecated

func (*Geometry) Descriptor() ([]byte, []int)

Deprecated: Use Geometry.ProtoReflect.Descriptor instead.

func (*Geometry) GetCoordinates

func (x *Geometry) GetCoordinates() []*Coordinates

func (*Geometry) GetGeometries

func (x *Geometry) GetGeometries() []*Geometry

func (*Geometry) GetType

func (x *Geometry) GetType() Geometry_Type

func (*Geometry) ProtoMessage

func (*Geometry) ProtoMessage()

func (*Geometry) ProtoReflect

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

func (*Geometry) Reset

func (x *Geometry) Reset()

func (*Geometry) String

func (x *Geometry) String() string

type Geometry_Type

type Geometry_Type int32
const (
	Geometry_TYPE_UNSPECIFIED      Geometry_Type = 0
	Geometry_TYPE_POINT            Geometry_Type = 1  // a 2d point: coordinates[0], 2 coordinates: longitude, latitude
	Geometry_TYPE_POINTZ           Geometry_Type = 2  // a 3d point: coordinates[0], 3 coordinates: longitude, latitude, altitude
	Geometry_TYPE_MULTIPOINT       Geometry_Type = 3  // multiple 2d points: coordinates is empty, use geometries with POINT types
	Geometry_TYPE_MULTIPOINTZ      Geometry_Type = 4  // multiple 3d points: coordinates is empty, use geometries with POINTZ types
	Geometry_TYPE_POLYGON          Geometry_Type = 5  // a 2d polygon: coordinates[0] is the outer loop must be CCW, first point is automatically the last point as well, coordinates[0:] are holes must be CW
	Geometry_TYPE_POLYGONZ         Geometry_Type = 6  // a 3d polygon: coordinates[0] is the outer loop must be CCW, first point is automatically the last point as well, coordinates[0:] are holes must be CW
	Geometry_TYPE_MULTIPOLYGON     Geometry_Type = 7  // multiple 2d polygons: coordinates is empty, use geometries with POLYGON types
	Geometry_TYPE_MULTIPOLYGONZ    Geometry_Type = 8  // multiple 3d polygons: coordinates is empty, use geometries with POLYGONZ types
	Geometry_TYPE_LINESTRING       Geometry_Type = 9  // a 2d linestring: coordinates[0], list of longitude, latitude
	Geometry_TYPE_LINESTRINGZ      Geometry_Type = 10 // a 3d linestring: coordinates[0], list of longitude, latitude, altitude
	Geometry_TYPE_MULTILINESTRING  Geometry_Type = 11 // multiple 2d linestrings: coordinates is empty, use geometries with LINESTRING types
	Geometry_TYPE_MULTILINESTRINGZ Geometry_Type = 12 // mulitple 3d linestrings: coordinates is empty, use geometries with LINESTRINGZ types
)

func (Geometry_Type) Descriptor

func (Geometry_Type) Enum

func (x Geometry_Type) Enum() *Geometry_Type

func (Geometry_Type) EnumDescriptor deprecated

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

Deprecated: Use Geometry_Type.Descriptor instead.

func (Geometry_Type) Number

func (Geometry_Type) String

func (x Geometry_Type) String() string

func (Geometry_Type) Type

Jump to

Keyboard shortcuts

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