tables

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: BSD-3-Clause Imports: 13 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommonTablesWithDatabase

func CommonTablesWithDatabase(db sqlite.Database) ([]sqlite.Table, error)

func CommonTablesWithDatabaseAndOptions

func CommonTablesWithDatabaseAndOptions(db sqlite.Database, table_opts *CommonTablesOptions) ([]sqlite.Table, error)

func NewAncestorsTable

func NewAncestorsTable() (sqlite.Table, error)

func NewAncestorsTableWithDatabase

func NewAncestorsTableWithDatabase(db sqlite.Database) (sqlite.Table, error)

func NewConcordancesTable

func NewConcordancesTable() (sqlite.Table, error)

func NewConcordancesTableWithDatabase

func NewConcordancesTableWithDatabase(db sqlite.Database) (sqlite.Table, error)

func NewGeoJSONTable

func NewGeoJSONTable() (sqlite.Table, error)

func NewGeoJSONTableWithDatabase

func NewGeoJSONTableWithDatabase(db sqlite.Database) (sqlite.Table, error)

func NewGeoJSONTableWithDatabaseAndOptions

func NewGeoJSONTableWithDatabaseAndOptions(db sqlite.Database, opts *GeoJSONTableOptions) (sqlite.Table, error)

func NewGeoJSONTableWithOptions

func NewGeoJSONTableWithOptions(opts *GeoJSONTableOptions) (sqlite.Table, error)

func NewGeometriesTable

func NewGeometriesTable() (sqlite.Table, error)

func NewGeometriesTableWithDatabase

func NewGeometriesTableWithDatabase(db sqlite.Database) (sqlite.Table, error)

func NewGeometriesTableWithDatabaseAndOptions added in v0.2.4

func NewGeometriesTableWithDatabaseAndOptions(db sqlite.Database, opts *GeometriesTableOptions) (sqlite.Table, error)

func NewGeometriesTableWithOptions added in v0.2.4

func NewGeometriesTableWithOptions(opts *GeometriesTableOptions) (sqlite.Table, error)

func NewNamesTable

func NewNamesTable() (sqlite.Table, error)

func NewNamesTableWithDatabase

func NewNamesTableWithDatabase(db sqlite.Database) (sqlite.Table, error)

func NewSPRTable

func NewSPRTable() (sqlite.Table, error)

func NewSPRTableWithDatabase

func NewSPRTableWithDatabase(db sqlite.Database) (sqlite.Table, error)

func NewSearchTable

func NewSearchTable() (sqlite.Table, error)

func NewSearchTableWithDatabase

func NewSearchTableWithDatabase(db sqlite.Database) (sqlite.Table, error)

func PointInPolygonTablesWithDatabase

func PointInPolygonTablesWithDatabase(db sqlite.Database) ([]sqlite.Table, error)

func SearchTablesWithDatabase

func SearchTablesWithDatabase(db sqlite.Database) ([]sqlite.Table, error)

func SpatialTablesWithDatabase

func SpatialTablesWithDatabase(db sqlite.Database) ([]sqlite.Table, error)

Types

type AncestorsRow

type AncestorsRow struct {
	Id                int64
	AncestorID        int64
	AncestorPlacetype string
	LastModified      int64
}

type AncestorsTable

type AncestorsTable struct {
	features.FeatureTable
	// contains filtered or unexported fields
}

func (*AncestorsTable) IndexFeature

func (t *AncestorsTable) IndexFeature(db sqlite.Database, f geojson.Feature) error

func (*AncestorsTable) IndexRecord

func (t *AncestorsTable) IndexRecord(db sqlite.Database, i interface{}) error

func (*AncestorsTable) InitializeTable

func (t *AncestorsTable) InitializeTable(db sqlite.Database) error

func (*AncestorsTable) Name

func (t *AncestorsTable) Name() string

func (*AncestorsTable) Schema

func (t *AncestorsTable) Schema() string

type CommonTablesOptions

type CommonTablesOptions struct {
	GeoJSON *GeoJSONTableOptions
}

type ConcordancesRow

type ConcordancesRow struct {
	Id           int64
	OtherID      string
	OtherSource  string
	LastModified int64
}

type ConcordancesTable

type ConcordancesTable struct {
	features.FeatureTable
	// contains filtered or unexported fields
}

func (*ConcordancesTable) IndexFeature

func (t *ConcordancesTable) IndexFeature(db sqlite.Database, f geojson.Feature) error

func (*ConcordancesTable) IndexRecord

func (t *ConcordancesTable) IndexRecord(db sqlite.Database, i interface{}) error

func (*ConcordancesTable) InitializeTable

func (t *ConcordancesTable) InitializeTable(db sqlite.Database) error

func (*ConcordancesTable) Name

func (t *ConcordancesTable) Name() string

func (*ConcordancesTable) Schema

func (t *ConcordancesTable) Schema() string

type GeoJSONRow

type GeoJSONRow struct {
	Id           int64
	Body         string
	LastModified int64
}

type GeoJSONTable

type GeoJSONTable struct {
	features.FeatureTable
	// contains filtered or unexported fields
}

func (*GeoJSONTable) IndexFeature

func (t *GeoJSONTable) IndexFeature(db sqlite.Database, f geojson.Feature) error

func (*GeoJSONTable) IndexRecord

func (t *GeoJSONTable) IndexRecord(db sqlite.Database, i interface{}) error

func (*GeoJSONTable) InitializeTable

func (t *GeoJSONTable) InitializeTable(db sqlite.Database) error

func (*GeoJSONTable) Name

func (t *GeoJSONTable) Name() string

func (*GeoJSONTable) Schema

func (t *GeoJSONTable) Schema() string

type GeoJSONTableOptions

type GeoJSONTableOptions struct {
	IndexAltFiles bool
}

func DefaultGeoJSONTableOptions

func DefaultGeoJSONTableOptions() (*GeoJSONTableOptions, error)

type GeometriesRow

type GeometriesRow struct {
	Id           int64
	Body         string
	LastModified int64
}

type GeometriesTable

type GeometriesTable struct {
	features.FeatureTable
	// contains filtered or unexported fields
}

func (*GeometriesTable) IndexFeature

func (t *GeometriesTable) IndexFeature(db sqlite.Database, f geojson.Feature) error

func (*GeometriesTable) IndexRecord

func (t *GeometriesTable) IndexRecord(db sqlite.Database, i interface{}) error

func (*GeometriesTable) InitializeTable

func (t *GeometriesTable) InitializeTable(db sqlite.Database) error

func (*GeometriesTable) Name

func (t *GeometriesTable) Name() string

func (*GeometriesTable) Schema

func (t *GeometriesTable) Schema() string

type GeometriesTableOptions added in v0.2.4

type GeometriesTableOptions struct {
	IndexAltFiles bool
}

func DefaultGeometriesTableOptions added in v0.2.4

func DefaultGeometriesTableOptions() (*GeometriesTableOptions, error)

type NamesRow

type NamesRow struct {
	Id           int64
	Placetype    string
	Country      string
	Language     string
	ExtLang      string
	Script       string
	Region       string
	Variant      string
	Extension    string
	PrivateUse   string
	Name         string
	LastModified int64
}

type NamesTable

type NamesTable struct {
	features.FeatureTable
	// contains filtered or unexported fields
}

func (*NamesTable) IndexFeature

func (t *NamesTable) IndexFeature(db sqlite.Database, f geojson.Feature) error

func (*NamesTable) IndexRecord

func (t *NamesTable) IndexRecord(db sqlite.Database, i interface{}) error

func (*NamesTable) InitializeTable

func (t *NamesTable) InitializeTable(db sqlite.Database) error

func (*NamesTable) Name

func (t *NamesTable) Name() string

func (*NamesTable) Schema

func (t *NamesTable) Schema() string

type SPRRow

type SPRRow struct {
	Id            int64   // properties.wof:id	INTEGER
	ParentId      int64   // properties.wof:parent_id	INTEGER
	Name          string  // properties.wof:name  TEXT
	Placetype     string  // properties.wof:placetype TEXT
	Country       string  // properties.wof:country TEXT
	Repo          string  // properties.wof:repo TEXT
	Path          string  // derived TEXT
	URI           string  // derived TEXT
	Latitude      float64 // derived REAL
	Longitude     float64 // derived REAL
	MinLatitude   float64 // properties.geom:bbox.1 REAL
	MinLongitude  float64 // properties.geom:bbox.0 REAL
	MaxLatitude   float64 // properties.geom:bbox.3 REAL
	MaxLongitude  float64 // properties.geom.bbox.2 REAL
	IsCurrent     int64   // properies.mz:is_current INTEGER
	IsCeased      int64   // derived INTEGER
	IsDeprecated  int64   // derived INTEGER
	IsSuperseded  int64   // derived INTEGER
	IsSuperseding int64   // derived INTEGER
	SupersededBy  []int64 // ...
	Supersedes    []int64 // ...
	LastModified  int64   // properties.wof:lastmodified INTEGER
}

type SPRTable

type SPRTable struct {
	features.FeatureTable
	// contains filtered or unexported fields
}

func (*SPRTable) IndexFeature

func (t *SPRTable) IndexFeature(db sqlite.Database, f geojson.Feature) error

func (*SPRTable) IndexRecord

func (t *SPRTable) IndexRecord(db sqlite.Database, i interface{}) error

func (*SPRTable) InitializeTable

func (t *SPRTable) InitializeTable(db sqlite.Database) error

func (*SPRTable) Name

func (t *SPRTable) Name() string

func (*SPRTable) Schema

func (t *SPRTable) Schema() string

type SearchTable

type SearchTable struct {
	features.FeatureTable
	// contains filtered or unexported fields
}

func (*SearchTable) IndexFeature

func (t *SearchTable) IndexFeature(db sqlite.Database, f geojson.Feature) error

func (*SearchTable) IndexRecord

func (t *SearchTable) IndexRecord(db sqlite.Database, i interface{}) error

func (*SearchTable) InitializeTable

func (t *SearchTable) InitializeTable(db sqlite.Database) error

func (*SearchTable) Name

func (t *SearchTable) Name() string

func (*SearchTable) Schema

func (t *SearchTable) Schema() string

Jump to

Keyboard shortcuts

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