spatial

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericGeometry

type GenericGeometry struct {
	PointData              *PointData
	LineStringData         *LineStringData
	PolygonData            *PolygonData
	MultiPointData         *MultiPointData
	MultiLineStringData    *MultiLineStringData
	MultiPolygonData       *MultiPolygonData
	GeometryCollectionData *GeometryCollectionData
	// contains filtered or unexported fields
}

func NewGenericGeometry

func NewGenericGeometry(srid Srid, typ GeometryType) *GenericGeometry

func (*GenericGeometry) Decode

func (g *GenericGeometry) Decode(data []byte) error

func (*GenericGeometry) Encode

func (g *GenericGeometry) Encode() []byte

func (GenericGeometry) Srid

func (g GenericGeometry) Srid() Srid

func (*GenericGeometry) Type

func (g *GenericGeometry) Type() GeometryType

type GeometryCollection

type GeometryCollection struct {
	Data GeometryCollectionData
	// contains filtered or unexported fields
}

func NewGeometryCollection

func NewGeometryCollection(srid Srid) *GeometryCollection

func (*GeometryCollection) Decode

func (c *GeometryCollection) Decode(data []byte) error

func (*GeometryCollection) Encode

func (c *GeometryCollection) Encode() []byte

func (GeometryCollection) Srid

func (g GeometryCollection) Srid() Srid

type GeometryCollectionData

type GeometryCollectionData []GenericGeometry

type GeometryType

type GeometryType uint32
const (
	GEOMETRY_TYPE_GENERIC GeometryType = iota
	GEOMETRY_TYPE_POINT
	GEOMETRY_TYPE_LINE_STRING
	GEOMETRY_TYPE_POLYGON
	GEOMETRY_TYPE_MULTI_POINT
	GEOMETRY_TYPE_MULTI_LINE_STRING
	GEOMETRY_TYPE_MULTI_POLYGON
	GEOMETRY_TYPE_COLLECTION
)

type LineString

type LineString struct {
	Data LineStringData
	// contains filtered or unexported fields
}

func NewLineString

func NewLineString(srid Srid) *LineString

func (*LineString) Decode

func (l *LineString) Decode(data []byte) error

func (*LineString) Encode

func (l *LineString) Encode() []byte

func (LineString) Srid

func (g LineString) Srid() Srid

type LineStringData

type LineStringData []PointData

type MultiLineString

type MultiLineString struct {
	Data MultiLineStringData
	// contains filtered or unexported fields
}

func NewMultiLineString

func NewMultiLineString(srid Srid) *MultiLineString

func (*MultiLineString) Decode

func (ml *MultiLineString) Decode(data []byte) error

func (*MultiLineString) Encode

func (ml *MultiLineString) Encode() []byte

func (MultiLineString) Srid

func (g MultiLineString) Srid() Srid

type MultiLineStringData

type MultiLineStringData []LineStringData

type MultiPoint

type MultiPoint struct {
	Data MultiPointData
	// contains filtered or unexported fields
}

func NewMultiPoint

func NewMultiPoint(srid Srid) *MultiPoint

func (*MultiPoint) Decode

func (mp *MultiPoint) Decode(data []byte) error

func (*MultiPoint) Encode

func (mp *MultiPoint) Encode() []byte

func (MultiPoint) Srid

func (g MultiPoint) Srid() Srid

type MultiPointData

type MultiPointData []PointData

type MultiPolygon

type MultiPolygon struct {
	Data MultiPolygonData
	// contains filtered or unexported fields
}

func NewMultiPolygon

func NewMultiPolygon(srid Srid) *MultiPolygon

func (*MultiPolygon) Decode

func (mp *MultiPolygon) Decode(data []byte) error

func (*MultiPolygon) Encode

func (mp *MultiPolygon) Encode() []byte

func (MultiPolygon) Srid

func (g MultiPolygon) Srid() Srid

type MultiPolygonData

type MultiPolygonData []PolygonData

type Point

type Point struct {
	Data PointData
	// contains filtered or unexported fields
}

func NewPoint

func NewPoint(srid Srid) *Point

func (*Point) Decode

func (p *Point) Decode(data []byte) error

func (*Point) Encode

func (p *Point) Encode() []byte

func (Point) Srid

func (g Point) Srid() Srid

type PointData

type PointData struct {
	X, Y float64
}

type Polygon

type Polygon struct {
	Data PolygonData
	// contains filtered or unexported fields
}

func NewPolygon

func NewPolygon(srid Srid) *Polygon

func (*Polygon) Decode

func (p *Polygon) Decode(data []byte) error

func (*Polygon) Encode

func (p *Polygon) Encode() []byte

func (Polygon) Srid

func (g Polygon) Srid() Srid

type PolygonData

type PolygonData []LineStringData

type Srid

type Srid uint32

Jump to

Keyboard shortcuts

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