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.
Click to show internal directories.
Click to hide internal directories.