Documentation
¶
Index ¶
- Variables
- func AvailableSrcConversions() []proj.EPSGCode
- func IsKnownSrcConversionSRID(code proj.EPSGCode) bool
- func IsMinMaxZoomExplicit(cmd *cobra.Command) bool
- func IsValidLat(f64 float64) bool
- func IsValidLatString(lat string) (float64, bool)
- func IsValidLng(f64 float64) bool
- func IsValidLngString(lng string) (float64, bool)
- type ErrTileNameFormat
- type Format
- type MapTile
- type TileChannel
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "cache", Short: "command to manage the cache", Long: "command to manage the cache", PersistentPreRunE: func(cmd *cobra.Command, args []string) error { RequireCache = true if cmd.HasParent() { pcmd := cmd.Parent() if pcmd.PersistentPreRunE != nil { if err := pcmd.PersistentPreRunE(pcmd, args); err != nil { return err } } } return nil }, }
View Source
var Config *config.Config
Config from the main app
View Source
var RequireCache bool
View Source
var SeedPurgeCmd = &cobra.Command{ Use: "seed", Aliases: []string{"purge"}, Short: "seed or purge tiles from the cache", Long: "command to seed or purge tiles from the cache", Example: "tegola cache seed --bounds lng,lat,lng,lat", }
View Source
var TileListCmd = &cobra.Command{
Use: "tile-list filename|-",
Short: "operate on a list of tile names separated by new lines",
Example: "tile-list my-tile-list.txt",
PreRunE: tileListValidate,
RunE: tileListCommand,
}
View Source
var TileNameCmd = &cobra.Command{
Use: "tile-name z/x/y",
Short: "operate on a single tile formatted according to --format",
Example: "tile-name 0/0/0",
PreRunE: tileNameValidate,
RunE: tileNameCommand,
}
Functions ¶
func AvailableSrcConversions ¶ added in v0.21.2
func IsKnownSrcConversionSRID ¶ added in v0.21.2
func IsMinMaxZoomExplicit ¶
func IsValidLat ¶
func IsValidLatString ¶
func IsValidLng ¶
func IsValidLngString ¶
Types ¶
type ErrTileNameFormat ¶
type ErrTileNameFormat string
func (ErrTileNameFormat) Error ¶
func (e ErrTileNameFormat) Error() string
type TileChannel ¶
type TileChannel struct {
// contains filtered or unexported fields
}
func (*TileChannel) Channel ¶
func (tc *TileChannel) Channel() <-chan slippy.Tile
func (*TileChannel) Close ¶
func (tc *TileChannel) Close()
func (*TileChannel) Err ¶
func (tc *TileChannel) Err() (e error)
Click to show internal directories.
Click to hide internal directories.