Documentation ¶
Index ¶
- type CollectionInfoDB
- type DB
- func (db *DB) AddCollection(coll *CollectionInfoDB) (bool, error)
- func (db *DB) AllCollectionInfos() []*CollectionInfoDB
- func (d *DB) DeleteItem(collectionID string, itemID string) error
- func (db *DB) FindCollection(collName string) (*CollectionInfoDB, error)
- func (d *DB) GetFeatures(collectionName string, bbox *ogc.Bbox, filterAttrs map[string]string, ...) ([]*ogc.Feature, error)
- func (d *DB) GetItem(collectionId string, itemId string) (*ogc.FeatureCollection, error)
- func (d *DB) InsertFeature(collectionName string, features []*ogc.Feature) ([]string, error)
- func (db *DB) RemoveCollection(collName string) (bool, error)
- func (d *DB) Start() error
- func (d *DB) Stop(err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionInfoDB ¶
type CollectionInfoDB struct { CollectionInfo *ogc.CollectionInfo // contains filtered or unexported fields }
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB holds the DB connection
func (*DB) AddCollection ¶
func (db *DB) AddCollection(coll *CollectionInfoDB) (bool, error)
func (*DB) AllCollectionInfos ¶
func (db *DB) AllCollectionInfos() []*CollectionInfoDB
func (*DB) DeleteItem ¶
Delete a feature
func (*DB) FindCollection ¶
func (db *DB) FindCollection(collName string) (*CollectionInfoDB, error)
func (*DB) GetFeatures ¶
func (d *DB) GetFeatures(collectionName string, bbox *ogc.Bbox, filterAttrs map[string]string, limit int, dateStart *time.Time, dateEnd *time.Time) ([]*ogc.Feature, error)
GetFeatures get features
func (*DB) InsertFeature ¶
Click to show internal directories.
Click to hide internal directories.