Documentation ¶
Index ¶
- Constants
- func NewProvider(config map[string]interface{}) (mvt.Provider, error)
- type Layer
- type Provider
- func (p *Provider) ForEachFeature(ctx context.Context, layerName string, tile tegola.Tile, ...) error
- func (p *Provider) Layer(name string) (Layer, bool)
- func (p Provider) Layers() ([]mvt.LayerInfo, error)
- func (p Provider) MVTLayer(ctx context.Context, layerName string, tile tegola.Tile, ...) (layer *mvt.Layer, err error)
Constants ¶
View Source
const ( DefaultPort = 5432 DefaultSRID = tegola.WebMercator DefaultMaxConn = 100 )
View Source
const ( ConfigKeyHost = "host" ConfigKeyPort = "port" ConfigKeyDB = "database" ConfigKeyUser = "user" ConfigKeyPassword = "password" ConfigKeyMaxConn = "max_connections" ConfigKeySRID = "srid" ConfigKeyLayers = "layers" ConfigKeyLayerName = "name" ConfigKeyTablename = "tablename" ConfigKeySQL = "sql" ConfigKeyFields = "fields" ConfigKeyGeomField = "geometry_fieldname" ConfigKeyGeomIDField = "id_fieldname" )
View Source
const Name = "postgis"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Layer ¶ added in v0.4.0
type Layer struct {
// contains filtered or unexported fields
}
layer holds information about a query.
func (Layer) GeomFieldName ¶ added in v0.4.0
func (Layer) IDFieldName ¶ added in v0.4.0
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider provides the postgis data provider.
func (*Provider) ForEachFeature ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.