Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTileBbox ¶
func FormatTileBbox(tileID mercantile.TileID) string
FormatTileBbox converts tile (x, y, z) to bbox string (l,b,r,t)
Types ¶
type Bbox ¶
Bbox stores a web mercator bounding box, for which tiles should be downloaded.
type JobStats ¶
JobStats stores number of jobs, that will be executed, jobs which have been resolved successfully or failed and Start timestamp.
func (*JobStats) ShowCurrentState ¶
func (jobs *JobStats) ShowCurrentState()
ShowCurrentState prints current state of jobs.
func (*JobStats) ShowSummary ¶
func (jobs *JobStats) ShowSummary()
ShowSummary prints summary along with execution time after all jobs have been processed.
type Options ¶
type Options struct { URL string Layer string Format string Service string Version string Width string Height string Styles string Zooms Zooms Bbox Bbox Concurrency int Help bool // If all options are correct, // build base URL for all tiles // requests. BaseURL string }
Options struct stores all available flags and their values set by user.
func (*Options) ParseBaseURL ¶
ParseBaseURL builds base URL for all tiles requests based on passed arguments.
func (*Options) ValidateOptions ¶
ValidateOptions validates options supplied by user. Downloading will start only, if all required options have been passed in correct format.
type Tile ¶
Tile contains content received from WMS server and other metadata about tile itself. For example tile's path in z/x tree, name under which the tile will be saved (y.png).