Documentation
¶
Index ¶
- Constants
- Variables
- type BoundingBox
- func (*BoundingBox) Descriptor() ([]byte, []int)
- func (m *BoundingBox) Marshal() (dAtA []byte, err error)
- func (m *BoundingBox) MarshalTo(dAtA []byte) (int, error)
- func (m *BoundingBox) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BoundingBox) ProtoMessage()
- func (m *BoundingBox) Reset()
- func (m *BoundingBox) Size() (n int)
- func (m *BoundingBox) String() string
- func (m *BoundingBox) Unmarshal(dAtA []byte) error
- func (m *BoundingBox) XXX_DiscardUnknown()
- func (m *BoundingBox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BoundingBox) XXX_Merge(src proto.Message)
- func (m *BoundingBox) XXX_Size() int
- func (m *BoundingBox) XXX_Unmarshal(b []byte) error
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (this *Config) Equal(that interface{}) bool
- func (this *Config) GetValue() interface{}
- func (cfg Config) IsEmpty() bool
- func (cfg Config) IsGeography() bool
- func (cfg Config) IsGeometry() bool
- func (m *Config) Marshal() (dAtA []byte, err error)
- func (m *Config) MarshalTo(dAtA []byte) (int, error)
- func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (this *Config) SetValue(value interface{}) bool
- func (m *Config) Size() (n int)
- func (m *Config) String() string
- func (m *Config) Unmarshal(dAtA []byte) error
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type EWKB
- type EWKT
- type S2Config
- func (*S2Config) Descriptor() ([]byte, []int)
- func (this *S2Config) Equal(that interface{}) bool
- func (m *S2Config) Marshal() (dAtA []byte, err error)
- func (m *S2Config) MarshalTo(dAtA []byte) (int, error)
- func (m *S2Config) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*S2Config) ProtoMessage()
- func (m *S2Config) Reset()
- func (m *S2Config) Size() (n int)
- func (m *S2Config) String() string
- func (m *S2Config) Unmarshal(dAtA []byte) error
- func (m *S2Config) XXX_DiscardUnknown()
- func (m *S2Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *S2Config) XXX_Merge(src proto.Message)
- func (m *S2Config) XXX_Size() int
- func (m *S2Config) XXX_Unmarshal(b []byte) error
- type S2GeographyConfig
- func (*S2GeographyConfig) Descriptor() ([]byte, []int)
- func (this *S2GeographyConfig) Equal(that interface{}) bool
- func (m *S2GeographyConfig) Marshal() (dAtA []byte, err error)
- func (m *S2GeographyConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *S2GeographyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*S2GeographyConfig) ProtoMessage()
- func (m *S2GeographyConfig) Reset()
- func (m *S2GeographyConfig) Size() (n int)
- func (m *S2GeographyConfig) String() string
- func (m *S2GeographyConfig) Unmarshal(dAtA []byte) error
- func (m *S2GeographyConfig) XXX_DiscardUnknown()
- func (m *S2GeographyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *S2GeographyConfig) XXX_Merge(src proto.Message)
- func (m *S2GeographyConfig) XXX_Size() int
- func (m *S2GeographyConfig) XXX_Unmarshal(b []byte) error
- type S2GeometryConfig
- func (*S2GeometryConfig) Descriptor() ([]byte, []int)
- func (this *S2GeometryConfig) Equal(that interface{}) bool
- func (m *S2GeometryConfig) Marshal() (dAtA []byte, err error)
- func (m *S2GeometryConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *S2GeometryConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*S2GeometryConfig) ProtoMessage()
- func (m *S2GeometryConfig) Reset()
- func (m *S2GeometryConfig) Size() (n int)
- func (m *S2GeometryConfig) String() string
- func (m *S2GeometryConfig) Unmarshal(dAtA []byte) error
- func (m *S2GeometryConfig) XXX_DiscardUnknown()
- func (m *S2GeometryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *S2GeometryConfig) XXX_Merge(src proto.Message)
- func (m *S2GeometryConfig) XXX_Size() int
- func (m *S2GeometryConfig) XXX_Unmarshal(b []byte) error
- type SRID
- type ShapeType
- type SpatialObject
- func (*SpatialObject) Descriptor() ([]byte, []int)
- func (b *SpatialObject) EWKBHex() string
- func (m *SpatialObject) Marshal() (dAtA []byte, err error)
- func (m *SpatialObject) MarshalTo(dAtA []byte) (int, error)
- func (m *SpatialObject) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (b *SpatialObject) MemSize(deterministic bool) uintptr
- func (*SpatialObject) ProtoMessage()
- func (m *SpatialObject) Reset()
- func (m *SpatialObject) Size() (n int)
- func (m *SpatialObject) String() string
- func (m *SpatialObject) Unmarshal(dAtA []byte) error
- func (m *SpatialObject) XXX_DiscardUnknown()
- func (m *SpatialObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SpatialObject) XXX_Merge(src proto.Message)
- func (m *SpatialObject) XXX_Size() int
- func (m *SpatialObject) XXX_Unmarshal(b []byte) error
- type SpatialObjectType
- type WKB
- type WKT
Constants ¶
const ( // UnknownSRID is the default SRID if none is provided. UnknownSRID = SRID(0) // DefaultGeometrySRID is the same as being unknown. DefaultGeometrySRID = UnknownSRID // DefaultGeographySRID (aka 4326) is the GPS lat/lng we all know and love. // In this system, (long, lat) corresponds to (X, Y), bounded by // ([-180, 180], [-90 90]). DefaultGeographySRID = SRID(4326) )
The following are the common standard SRIDs that we support.
const ( // ZShapeTypeFlag indicates a Z dimension on the ShapeType. ZShapeTypeFlag = 1 << 30 // MShapeTypeFlag indicates a M dimension on the ShapeType. MShapeTypeFlag = 1 << 29 )
Variables ¶
var ( ErrInvalidLengthConfig = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowConfig = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupConfig = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGeopb = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGeopb = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGeopb = fmt.Errorf("proto: unexpected end of group") )
var ShapeType_name = map[int32]string{
0: "Unset",
1: "Point",
2: "LineString",
3: "Polygon",
4: "MultiPoint",
5: "MultiLineString",
6: "MultiPolygon",
7: "Geometry",
8: "GeometryCollection",
536870913: "PointM",
536870914: "LineStringM",
536870915: "PolygonM",
536870916: "MultiPointM",
536870917: "MultiLineStringM",
536870918: "MultiPolygonM",
536870919: "GeometryM",
536870920: "GeometryCollectionM",
1073741825: "PointZ",
1073741826: "LineStringZ",
1073741827: "PolygonZ",
1073741828: "MultiPointZ",
1073741829: "MultiLineStringZ",
1073741830: "MultiPolygonZ",
1073741831: "GeometryZ",
1073741832: "GeometryCollectionZ",
1610612737: "PointZM",
1610612738: "LineStringZM",
1610612739: "PolygonZM",
1610612740: "MultiPointZM",
1610612741: "MultiLineStringZM",
1610612742: "MultiPolygonZM",
1610612743: "GeometryZM",
1610612744: "GeometryCollectionZM",
}
var ShapeType_value = map[string]int32{
"Unset": 0,
"Point": 1,
"LineString": 2,
"Polygon": 3,
"MultiPoint": 4,
"MultiLineString": 5,
"MultiPolygon": 6,
"Geometry": 7,
"GeometryCollection": 8,
"PointM": 536870913,
"LineStringM": 536870914,
"PolygonM": 536870915,
"MultiPointM": 536870916,
"MultiLineStringM": 536870917,
"MultiPolygonM": 536870918,
"GeometryM": 536870919,
"GeometryCollectionM": 536870920,
"PointZ": 1073741825,
"LineStringZ": 1073741826,
"PolygonZ": 1073741827,
"MultiPointZ": 1073741828,
"MultiLineStringZ": 1073741829,
"MultiPolygonZ": 1073741830,
"GeometryZ": 1073741831,
"GeometryCollectionZ": 1073741832,
"PointZM": 1610612737,
"LineStringZM": 1610612738,
"PolygonZM": 1610612739,
"MultiPointZM": 1610612740,
"MultiLineStringZM": 1610612741,
"MultiPolygonZM": 1610612742,
"GeometryZM": 1610612743,
"GeometryCollectionZM": 1610612744,
}
var SpatialObjectType_name = map[int32]string{
0: "Unknown",
1: "GeographyType",
2: "GeometryType",
}
var SpatialObjectType_value = map[string]int32{
"Unknown": 0,
"GeographyType": 1,
"GeometryType": 2,
}
Functions ¶
This section is empty.
Types ¶
type BoundingBox ¶
type BoundingBox struct { LoX float64 `protobuf:"fixed64,1,opt,name=lo_x,json=loX,proto3" json:"lo_x,omitempty"` HiX float64 `protobuf:"fixed64,2,opt,name=hi_x,json=hiX,proto3" json:"hi_x,omitempty"` LoY float64 `protobuf:"fixed64,3,opt,name=lo_y,json=loY,proto3" json:"lo_y,omitempty"` HiY float64 `protobuf:"fixed64,4,opt,name=hi_y,json=hiY,proto3" json:"hi_y,omitempty"` }
BoundingBox represents the bounding box of a Geospatial type. Note the lo coordinates can be higher in value than the hi coordinates for spherical geometries. NOTE: Do not use these to compare bounding boxes. Use the library functions provided in the geo package to perform these calculations.
func (*BoundingBox) Descriptor ¶
func (*BoundingBox) Descriptor() ([]byte, []int)
func (*BoundingBox) Marshal ¶
func (m *BoundingBox) Marshal() (dAtA []byte, err error)
func (*BoundingBox) MarshalToSizedBuffer ¶
func (m *BoundingBox) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BoundingBox) ProtoMessage ¶
func (*BoundingBox) ProtoMessage()
func (*BoundingBox) Reset ¶
func (m *BoundingBox) Reset()
func (*BoundingBox) Size ¶
func (m *BoundingBox) Size() (n int)
func (*BoundingBox) String ¶
func (m *BoundingBox) String() string
func (*BoundingBox) Unmarshal ¶
func (m *BoundingBox) Unmarshal(dAtA []byte) error
func (*BoundingBox) XXX_DiscardUnknown ¶
func (m *BoundingBox) XXX_DiscardUnknown()
func (*BoundingBox) XXX_Marshal ¶
func (m *BoundingBox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BoundingBox) XXX_Merge ¶
func (m *BoundingBox) XXX_Merge(src proto.Message)
func (*BoundingBox) XXX_Size ¶
func (m *BoundingBox) XXX_Size() int
func (*BoundingBox) XXX_Unmarshal ¶
func (m *BoundingBox) XXX_Unmarshal(b []byte) error
type Config ¶ added in v0.25.2
type Config struct { S2Geography *S2GeographyConfig `protobuf:"bytes,1,opt,name=s2_geography,json=s2Geography,proto3" json:"s2_geography,omitempty"` S2Geometry *S2GeometryConfig `protobuf:"bytes,2,opt,name=s2_geometry,json=s2Geometry,proto3" json:"s2_geometry,omitempty"` }
Config is the information used to tune one instance of a geospatial index. Each SQL index will have its own config.
At the moment, only one major indexing strategy is implemented (S2 cells).
func (*Config) Descriptor ¶ added in v0.25.2
func (Config) IsEmpty ¶ added in v0.25.2
IsEmpty returns whether the config contains a geospatial index configuration.
func (Config) IsGeography ¶ added in v0.25.2
IsGeography returns whether the config is a geography geospatial index configuration.
func (Config) IsGeometry ¶ added in v0.25.2
IsGeometry returns whether the config is a geometry geospatial index configuration.
func (*Config) MarshalToSizedBuffer ¶ added in v0.25.2
func (*Config) ProtoMessage ¶ added in v0.25.2
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶ added in v0.25.2
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶ added in v0.25.2
func (*Config) XXX_Unmarshal ¶ added in v0.25.2
type S2Config ¶ added in v0.25.2
type S2Config struct { // MinLevel is the minimum cell level stored in the index. If left unset, it // defaults to 0. MinLevel int32 `protobuf:"varint,1,opt,name=min_level,json=minLevel,proto3" json:"min_level,omitempty"` // MaxLevel is the maximum cell level stored in the index. If left unset, it // defaults to 30. MaxLevel int32 `protobuf:"varint,2,opt,name=max_level,json=maxLevel,proto3" json:"max_level,omitempty"` // `MaxLevel-MinLevel` must be an exact multiple of LevelMod. If left unset, // it defaults to 1. LevelMod int32 `protobuf:"varint,3,opt,name=level_mod,json=levelMod,proto3" json:"level_mod,omitempty"` // MaxCells is a soft hint for the maximum number of entries used to store a // single geospatial object. If left unset, it defaults to 4. MaxCells int32 `protobuf:"varint,4,opt,name=max_cells,json=maxCells,proto3" json:"max_cells,omitempty"` }
S2Config is the required information to tune one instance of an S2 cell backed geospatial index. For advanced users only -- the defaults should be good enough.
TODO(sumeer): Based on experiments, reduce the knobs below by making the covering self-tuning.
func (*S2Config) Descriptor ¶ added in v0.25.2
func (*S2Config) MarshalToSizedBuffer ¶ added in v0.25.2
func (*S2Config) ProtoMessage ¶ added in v0.25.2
func (*S2Config) ProtoMessage()
func (*S2Config) XXX_DiscardUnknown ¶ added in v0.25.2
func (m *S2Config) XXX_DiscardUnknown()
func (*S2Config) XXX_Marshal ¶ added in v0.25.2
func (*S2Config) XXX_Unmarshal ¶ added in v0.25.2
type S2GeographyConfig ¶ added in v0.25.2
type S2GeographyConfig struct {
S2Config *S2Config `protobuf:"bytes,1,opt,name=s2_config,json=s2Config,proto3" json:"s2_config,omitempty"`
}
func (*S2GeographyConfig) Descriptor ¶ added in v0.25.2
func (*S2GeographyConfig) Descriptor() ([]byte, []int)
func (*S2GeographyConfig) Equal ¶ added in v0.25.2
func (this *S2GeographyConfig) Equal(that interface{}) bool
func (*S2GeographyConfig) Marshal ¶ added in v0.25.2
func (m *S2GeographyConfig) Marshal() (dAtA []byte, err error)
func (*S2GeographyConfig) MarshalTo ¶ added in v0.25.2
func (m *S2GeographyConfig) MarshalTo(dAtA []byte) (int, error)
func (*S2GeographyConfig) MarshalToSizedBuffer ¶ added in v0.25.2
func (m *S2GeographyConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*S2GeographyConfig) ProtoMessage ¶ added in v0.25.2
func (*S2GeographyConfig) ProtoMessage()
func (*S2GeographyConfig) Reset ¶ added in v0.25.2
func (m *S2GeographyConfig) Reset()
func (*S2GeographyConfig) Size ¶ added in v0.25.2
func (m *S2GeographyConfig) Size() (n int)
func (*S2GeographyConfig) String ¶ added in v0.25.2
func (m *S2GeographyConfig) String() string
func (*S2GeographyConfig) Unmarshal ¶ added in v0.25.2
func (m *S2GeographyConfig) Unmarshal(dAtA []byte) error
func (*S2GeographyConfig) XXX_DiscardUnknown ¶ added in v0.25.2
func (m *S2GeographyConfig) XXX_DiscardUnknown()
func (*S2GeographyConfig) XXX_Marshal ¶ added in v0.25.2
func (m *S2GeographyConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*S2GeographyConfig) XXX_Merge ¶ added in v0.25.2
func (m *S2GeographyConfig) XXX_Merge(src proto.Message)
func (*S2GeographyConfig) XXX_Size ¶ added in v0.25.2
func (m *S2GeographyConfig) XXX_Size() int
func (*S2GeographyConfig) XXX_Unmarshal ¶ added in v0.25.2
func (m *S2GeographyConfig) XXX_Unmarshal(b []byte) error
type S2GeometryConfig ¶ added in v0.25.2
type S2GeometryConfig struct { // The rectangle bounds of the plane that will be efficiently indexed. Shapes // should rarely exceed these bounds. MinX float64 `protobuf:"fixed64,1,opt,name=min_x,json=minX,proto3" json:"min_x,omitempty"` MaxX float64 `protobuf:"fixed64,2,opt,name=max_x,json=maxX,proto3" json:"max_x,omitempty"` MinY float64 `protobuf:"fixed64,3,opt,name=min_y,json=minY,proto3" json:"min_y,omitempty"` MaxY float64 `protobuf:"fixed64,4,opt,name=max_y,json=maxY,proto3" json:"max_y,omitempty"` S2Config *S2Config `protobuf:"bytes,5,opt,name=s2_config,json=s2Config,proto3" json:"s2_config,omitempty"` }
func (*S2GeometryConfig) Descriptor ¶ added in v0.25.2
func (*S2GeometryConfig) Descriptor() ([]byte, []int)
func (*S2GeometryConfig) Equal ¶ added in v0.25.2
func (this *S2GeometryConfig) Equal(that interface{}) bool
func (*S2GeometryConfig) Marshal ¶ added in v0.25.2
func (m *S2GeometryConfig) Marshal() (dAtA []byte, err error)
func (*S2GeometryConfig) MarshalTo ¶ added in v0.25.2
func (m *S2GeometryConfig) MarshalTo(dAtA []byte) (int, error)
func (*S2GeometryConfig) MarshalToSizedBuffer ¶ added in v0.25.2
func (m *S2GeometryConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*S2GeometryConfig) ProtoMessage ¶ added in v0.25.2
func (*S2GeometryConfig) ProtoMessage()
func (*S2GeometryConfig) Reset ¶ added in v0.25.2
func (m *S2GeometryConfig) Reset()
func (*S2GeometryConfig) Size ¶ added in v0.25.2
func (m *S2GeometryConfig) Size() (n int)
func (*S2GeometryConfig) String ¶ added in v0.25.2
func (m *S2GeometryConfig) String() string
func (*S2GeometryConfig) Unmarshal ¶ added in v0.25.2
func (m *S2GeometryConfig) Unmarshal(dAtA []byte) error
func (*S2GeometryConfig) XXX_DiscardUnknown ¶ added in v0.25.2
func (m *S2GeometryConfig) XXX_DiscardUnknown()
func (*S2GeometryConfig) XXX_Marshal ¶ added in v0.25.2
func (m *S2GeometryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*S2GeometryConfig) XXX_Merge ¶ added in v0.25.2
func (m *S2GeometryConfig) XXX_Merge(src proto.Message)
func (*S2GeometryConfig) XXX_Size ¶ added in v0.25.2
func (m *S2GeometryConfig) XXX_Size() int
func (*S2GeometryConfig) XXX_Unmarshal ¶ added in v0.25.2
func (m *S2GeometryConfig) XXX_Unmarshal(b []byte) error
type SRID ¶
type SRID int32
SRID is a Spatial Reference Identifer. All geometry and geography shapes are stored and represented as using coordinates that are bare floats. SRIDs tie these floats to the planar or spherical coordinate system, allowing them to be interpreted and compared.
The zero value is special and means an unknown coordinate system.
type ShapeType ¶
type ShapeType int32
ShapeType is the type of a spatial shape. Each of these corresponds to a different representation and serialization format. For example, a Point is a pair of doubles (or more than that for geometries with Z or N), a LineString is an ordered series of Points, etc.
const ( ShapeType_Unset ShapeType = 0 ShapeType_Point ShapeType = 1 ShapeType_LineString ShapeType = 2 ShapeType_Polygon ShapeType = 3 ShapeType_MultiPoint ShapeType = 4 ShapeType_MultiLineString ShapeType = 5 ShapeType_MultiPolygon ShapeType = 6 // Geometry can contain any type. ShapeType_Geometry ShapeType = 7 // GeometryCollection can contain a list of any above type except for Geometry. ShapeType_GeometryCollection ShapeType = 8 ShapeType_PointM ShapeType = 536870913 ShapeType_LineStringM ShapeType = 536870914 ShapeType_PolygonM ShapeType = 536870915 ShapeType_MultiPointM ShapeType = 536870916 ShapeType_MultiLineStringM ShapeType = 536870917 ShapeType_MultiPolygonM ShapeType = 536870918 ShapeType_GeometryM ShapeType = 536870919 ShapeType_GeometryCollectionM ShapeType = 536870920 ShapeType_PointZ ShapeType = 1073741825 ShapeType_LineStringZ ShapeType = 1073741826 ShapeType_PolygonZ ShapeType = 1073741827 ShapeType_MultiPointZ ShapeType = 1073741828 ShapeType_MultiLineStringZ ShapeType = 1073741829 ShapeType_MultiPolygonZ ShapeType = 1073741830 ShapeType_GeometryZ ShapeType = 1073741831 ShapeType_GeometryCollectionZ ShapeType = 1073741832 ShapeType_PointZM ShapeType = 1610612737 ShapeType_LineStringZM ShapeType = 1610612738 ShapeType_PolygonZM ShapeType = 1610612739 ShapeType_MultiPointZM ShapeType = 1610612740 ShapeType_MultiLineStringZM ShapeType = 1610612741 ShapeType_MultiPolygonZM ShapeType = 1610612742 ShapeType_GeometryZM ShapeType = 1610612743 ShapeType_GeometryCollectionZM ShapeType = 1610612744 )
func (ShapeType) EnumDescriptor ¶
type SpatialObject ¶
type SpatialObject struct { // Type is the type of the SpatialObject. Type SpatialObjectType `protobuf:"varint,1,opt,name=type,proto3,enum=cockroach.geopb.SpatialObjectType" json:"type,omitempty"` // EWKB is the EWKB representation of the spatial object. EWKB EWKB `protobuf:"bytes,2,opt,name=ewkb,proto3,casttype=EWKB" json:"ewkb,omitempty"` // SRID is the denormalized SRID derived from the EWKB. SRID SRID `protobuf:"varint,3,opt,name=srid,proto3,casttype=SRID" json:"srid,omitempty"` // ShapeType is denormalized ShapeType derived from the EWKB. ShapeType ShapeType `protobuf:"varint,4,opt,name=shape_type,json=shapeType,proto3,enum=cockroach.geopb.ShapeType" json:"shape_type,omitempty"` // BoundingBox is the bounding box of the SpatialObject. BoundingBox *BoundingBox `protobuf:"bytes,5,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` }
SpatialObject represents a serialization of a Geospatial type.
func (*SpatialObject) Descriptor ¶
func (*SpatialObject) Descriptor() ([]byte, []int)
func (*SpatialObject) EWKBHex ¶
func (b *SpatialObject) EWKBHex() string
EWKBHex returns the EWKB-hex version of this data type
func (*SpatialObject) Marshal ¶
func (m *SpatialObject) Marshal() (dAtA []byte, err error)
func (*SpatialObject) MarshalToSizedBuffer ¶
func (m *SpatialObject) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SpatialObject) MemSize ¶
func (b *SpatialObject) MemSize(deterministic bool) uintptr
MemSize returns the size of the spatial object in memory. If deterministic is true, then only length of EWKB slice is included - this option should only be used when determinism is favored over precision.
func (*SpatialObject) ProtoMessage ¶
func (*SpatialObject) ProtoMessage()
func (*SpatialObject) Reset ¶
func (m *SpatialObject) Reset()
func (*SpatialObject) Size ¶
func (m *SpatialObject) Size() (n int)
func (*SpatialObject) String ¶
func (m *SpatialObject) String() string
func (*SpatialObject) Unmarshal ¶
func (m *SpatialObject) Unmarshal(dAtA []byte) error
func (*SpatialObject) XXX_DiscardUnknown ¶
func (m *SpatialObject) XXX_DiscardUnknown()
func (*SpatialObject) XXX_Marshal ¶
func (m *SpatialObject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SpatialObject) XXX_Merge ¶
func (m *SpatialObject) XXX_Merge(src proto.Message)
func (*SpatialObject) XXX_Size ¶
func (m *SpatialObject) XXX_Size() int
func (*SpatialObject) XXX_Unmarshal ¶
func (m *SpatialObject) XXX_Unmarshal(b []byte) error
type SpatialObjectType ¶
type SpatialObjectType int32
SpatialObjectType represents the type of the SpatialObject.
const ( SpatialObjectType_Unknown SpatialObjectType = 0 SpatialObjectType_GeographyType SpatialObjectType = 1 SpatialObjectType_GeometryType SpatialObjectType = 2 )
func (SpatialObjectType) EnumDescriptor ¶
func (SpatialObjectType) EnumDescriptor() ([]byte, []int)
func (SpatialObjectType) String ¶
func (x SpatialObjectType) String() string