Documentation ¶
Index ¶
- Variables
- func OperationStorageError(op string) error
- type Storage
- func (s *Storage) Index(fc geojson.FeatureCollection, icoverer *s2.RegionCoverer, ...) error
- func (s *Storage) LoadAllFeatures(add func(*insideout.FeatureStorage, uint32) error) error
- func (s *Storage) LoadCellStorage(id uint32) (*insideout.CellsStorage, error)
- func (s *Storage) LoadFeature(id uint32) (*insideout.Feature, error)
- func (s *Storage) LoadFeaturesCells(add func([]s2.CellUnion, []s2.CellUnion, uint32)) error
- func (s *Storage) LoadIndexInfos() (*insideout.IndexInfos, error)
- func (s *Storage) LoadMapInfos() (*insideout.MapInfos, bool, error)
- func (s *Storage) StabDB(lat, lng float64, stopOnInsideFound bool) (insideout.IndexResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStorage = errors.New("storage error")
Functions ¶
func OperationStorageError ¶
Types ¶
type Storage ¶
Storage cold storage.
func NewROStorage ¶
NewROStorage returns a read only storage using bboltdb.
func NewStorage ¶
NewStorage returns a cold storage using bboltdb.
func (*Storage) Index ¶
func (s *Storage) Index(fc geojson.FeatureCollection, icoverer *s2.RegionCoverer, ocoverer *s2.RegionCoverer, warningCellsCover int, fileName, version string) error
func (*Storage) LoadAllFeatures ¶
LoadAllFeatures loads FeatureStorage from DB into idx only useful to fill in memory shapeindex.
func (*Storage) LoadCellStorage ¶
func (s *Storage) LoadCellStorage(id uint32) (*insideout.CellsStorage, error)
LoadCellStorage loads cell storage from.
func (*Storage) LoadFeature ¶
LoadFeature loads one feature from the DB.
func (*Storage) LoadFeaturesCells ¶
LoadFeaturesCells loads CellsStorage from DB into idx only useful to fill in memory tree indexes.
func (*Storage) LoadIndexInfos ¶
func (s *Storage) LoadIndexInfos() (*insideout.IndexInfos, error)
LoadIndexInfos loads index infos from the DB.
func (*Storage) LoadMapInfos ¶
LoadMapInfos loads map infos from the DB if any.
Click to show internal directories.
Click to hide internal directories.