data_provider

package
v0.0.1-0...-132fcf6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BadTimeString

type BadTimeString struct {
	// contains filtered or unexported fields
}

func (*BadTimeString) Error

func (bts *BadTimeString) Error() string

type EmptyTile

type EmptyTile struct {
	// contains filtered or unexported fields
}

func (EmptyTile) BufferedExtent

func (et EmptyTile) BufferedExtent() (extent *geom.Extent, srid uint64)

func (EmptyTile) Extent

func (et EmptyTile) Extent() (extent *geom.Extent, srid uint64)

func (EmptyTile) ZXY

func (_ EmptyTile) ZXY() (uint, uint, uint)

type ErrDuplicateCollectionName

type ErrDuplicateCollectionName struct {
	// contains filtered or unexported fields
}

func (ErrDuplicateCollectionName) Error

type FeatureId

type FeatureId struct {
	Collection string
	FeaturePk  uint64
}

type Provider

type Provider struct {
	Tiler prv.Tiler
	// contains filtered or unexported fields
}

func (*Provider) CollectionFeatures

func (p *Provider) CollectionFeatures(collectionName string, properties map[string]string, extent *geom.Extent) ([]*prv.Feature, error)

Get all features for a particular collection

func (*Provider) CollectionNames

func (p *Provider) CollectionNames() ([]string, error)

Fetch a list of all collection names from provider

func (*Provider) FilterFeatures

func (p *Provider) FilterFeatures(extent *geom.Extent, collections []string, properties map[string]string) ([]FeatureId, error)

Filter out features based on params passed start_time, stop_time, timestamp parameters are specifically used for timestamp filtering

@see check_time_filter().

func (*Provider) GetFeatures

func (p *Provider) GetFeatures(featureIds []FeatureId) ([]*prv.Feature, error)

Get features given collection/pk pairs

func (*Provider) MakeCollection

func (p *Provider) MakeCollection(name string, featureIds []FeatureId) (string, error)

Create a new collection given collection/pk pairs to populate it

Jump to

Keyboard shortcuts

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