gpkg

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

This section is empty.

Types

type Direction

type Direction string
const (
	Asc  Direction = "ASC"
	Desc Direction = "DESC"
)

type FeatureId added in v0.2.0

type FeatureId int64

type GeoPackage

type GeoPackage struct {
	Order    Order
	Validate bool
	Cache    GeometryCache
	// contains filtered or unexported fields
}

func Open

func Open(path, table string, cols []string) (*GeoPackage, error)

Warning: the table and columns are not sanitized, so they are prone to SQL injection attacks if provided by user input.

func (*GeoPackage) Close

func (g *GeoPackage) Close() error

func (*GeoPackage) ReverseGeocode

func (g *GeoPackage) ReverseGeocode(ctx context.Context, l s2.LatLng) ([]string, error)

type GeometryCache added in v0.2.0

type GeometryCache interface {
	Get(fid FeatureId) (geom.Geometry, error)
	Set(fid FeatureId, g geom.Geometry) error
}

type Order

type Order struct {
	Column    string
	Direction Direction
}

Jump to

Keyboard shortcuts

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