Documentation ¶
Index ¶
- type CollectionInfoDB
- type DB
- func (db *DB) AddCollection(coll *CollectionInfoDB) error
- func (db *DB) AllCollectionInfos() []*CollectionInfoDB
- func (d *DB) CreateCollectionTable(collectionName string, features []*ogc.Feature) error
- func (d *DB) DeleteItem(collectionId string, itemId string) error
- func (db *DB) FindCollection(collName string) *CollectionInfoDB
- func (d *DB) GetFeatures(request ogc.GetFeatureRequest) ([]*ogc.Feature, error)
- func (d *DB) GetItem(collectionId string, itemId string) (*ogc.FeatureCollection, error)
- func (d *DB) InsertFeature(collectionName string, features []*ogc.Feature) (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) error
func (*DB) AllCollectionInfos ¶
func (db *DB) AllCollectionInfos() []*CollectionInfoDB
func (*DB) CreateCollectionTable ¶
creates a feature table based
func (*DB) DeleteItem ¶
Delete a feature
func (*DB) FindCollection ¶
func (db *DB) FindCollection(collName string) *CollectionInfoDB
func (*DB) GetFeatures ¶
gets features based on query
func (*DB) InsertFeature ¶
Click to show internal directories.
Click to hide internal directories.