postgis

package
v0.0.0-...-e8e586d Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func New

func New() (*Storage, error)

func (*Storage) AddPoint

func (s *Storage) AddPoint(ctx context.Context, p internal.Point) error

func (*Storage) AddPointBatch

func (s *Storage) AddPointBatch(ctx context.Context, points []internal.Point) error

func (*Storage) AddPolygon

func (s *Storage) AddPolygon(ctx context.Context, polygon internal.Polygon) error

func (*Storage) AddPolygonBatch

func (s *Storage) AddPolygonBatch(ctx context.Context, polygons []internal.Polygon) error

func (*Storage) Close

func (s *Storage) Close(ctx context.Context) error

func (*Storage) DeletePoint

func (s *Storage) DeletePoint(ctx context.Context, p internal.Point) error

func (*Storage) Drop

func (s *Storage) Drop(ctx context.Context) error

func (*Storage) DropPolygon

func (s *Storage) DropPolygon(ctx context.Context) error

func (*Storage) GetInPolygon

func (s *Storage) GetInPolygon(ctx context.Context, polygon []internal.Point) ([]internal.Point, error)

func (*Storage) GetInPolygonPolygon

func (s *Storage) GetInPolygonPolygon(ctx context.Context, polygon internal.Polygon) ([]internal.Polygon, error)

func (*Storage) GetInRadius

func (s *Storage) GetInRadius(ctx context.Context, p internal.Point, radius int) ([]internal.Point, error)

func (*Storage) GetInRadiusPolygon

func (s *Storage) GetInRadiusPolygon(ctx context.Context, p internal.Polygon, radius int) ([]internal.Polygon, error)

func (*Storage) GetInShapes

func (s *Storage) GetInShapes(ctx context.Context, shapes internal.Shapes) ([]internal.Point, error)

func (*Storage) GetIntersectionPoint

func (s *Storage) GetIntersectionPoint(ctx context.Context, point internal.Point) ([]internal.Polygon, error)

func (*Storage) GetIntersectionPolygon

func (s *Storage) GetIntersectionPolygon(ctx context.Context, polygon internal.Polygon) ([]internal.Polygon, error)

func (*Storage) Init

func (s *Storage) Init(ctx context.Context) error

func (*Storage) InitPolygon

func (s *Storage) InitPolygon(ctx context.Context) error

func (*Storage) IsPointExist

func (s *Storage) IsPointExist(ctx context.Context, p internal.Point) (bool, error)

Jump to

Keyboard shortcuts

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