geoutil

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLOCK_SIZE                  = 1024
	DEGREES_TO_RADIANS          = math.Pi / 180.0
	DEGREES_E7_TO_RADIANS       = DEGREES_TO_RADIANS * 1e-7
	IMPORT_ALL                  = 1
	IMPORT_NEWER                = 2
	IMPORT_NONE                 = 0
	MILLISECONDS_PER_SECOND     = 1000
	NANOSECONDS_PER_MILLISECOND = 1000000
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DatasetStats

type DatasetStats interface {
	LocationCount() uint32
	Ordered() bool
	OrderedStrict() bool
	TimestampEarliest() uint64
	TimestampLatest() uint64
}

* Statistics for a geographical dataset.

type MigrationReport

type MigrationReport interface {
	After() DatasetStats
	Before() DatasetStats
	Imported() DatasetStats
	Source() DatasetStats
}

* A report for a data migration.

type Util

type Util interface {
	DegreesE7ToRadians(degreesE7 int32) float64
	GeoDBStats(db geodb.Database) (DatasetStats, error)
	GeoJSONOrGPXStats(db geo.Database) (DatasetStats, error)
	Migrate(dst geodb.Database, src geo.Database, importStrategy int) (MigrationReport, error)
	MillisecondsToTime(ms uint64) time.Time
}

* A utility for transforming geographic data.

func Create

func Create() Util

* Creates a utility for working with geographic databases.

Jump to

Keyboard shortcuts

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