Documentation ¶
Index ¶
- func GenerateTileRanges(opts *GenerateRangesOptions)
- func GenerateTiles(opts *GenerateTilesOptions)
- func NewDiskOutputter(dsnStr string) (*diskOutputter, error)
- func NewMbtilesOutputter(dsn string, batchSize int, metadata *MbtilesMetadata) (*mbtilesOutputter, error)
- type GenerateBoxesConsumerFunc
- type GenerateRangesOptions
- type GenerateTilesConsumerFunc
- type GenerateTilesOptions
- type HTTPError
- type JobGenerator
- func NewFileTransportXYZJobGenerator(root string, urlTemplate string, bounds orb.Bound, zooms []maptile.Zoom, ...) (JobGenerator, error)
- func NewMetatileJobGenerator(bucket string, requesterPays bool, pathTemplate string, layerName string, ...) (JobGenerator, error)
- func NewTapalcatl2JobGenerator(bucket string, requesterPays bool, pathTemplate string, layerName string, ...) (JobGenerator, error)
- func NewXYZJobGenerator(urlTemplate string, bounds orb.Bound, zooms []maptile.Zoom, ...) (JobGenerator, error)
- type MbtilesMetadata
- func (m *MbtilesMetadata) Bounds() (orb.Bound, error)
- func (m *MbtilesMetadata) Center() (orb.Point, error)
- func (m *MbtilesMetadata) Format() (string, error)
- func (m *MbtilesMetadata) Get(k string) (string, bool)
- func (m *MbtilesMetadata) Keys() []string
- func (m *MbtilesMetadata) MaxZoom() (uint, error)
- func (m *MbtilesMetadata) MinZoom() (uint, error)
- func (m *MbtilesMetadata) Name() (string, error)
- func (m *MbtilesMetadata) Set(key string, value string)
- type MbtilesReader
- type TileData
- type TileOutputter
- type TileRequest
- type TileResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTileRanges ¶
func GenerateTileRanges(opts *GenerateRangesOptions)
func GenerateTiles ¶
func GenerateTiles(opts *GenerateTilesOptions)
func NewDiskOutputter ¶
func NewMbtilesOutputter ¶
func NewMbtilesOutputter(dsn string, batchSize int, metadata *MbtilesMetadata) (*mbtilesOutputter, error)
Types ¶
type GenerateRangesOptions ¶
type GenerateRangesOptions struct { Bounds orb.Bound Zooms []maptile.Zoom ConsumerFunc GenerateBoxesConsumerFunc }
type GenerateTilesOptions ¶
type JobGenerator ¶
type JobGenerator interface { CreateWorker() (func(id int, jobs chan *TileRequest, results chan *TileResponse), error) CreateJobs(jobs chan *TileRequest) error }
func NewMetatileJobGenerator ¶
type MbtilesMetadata ¶
type MbtilesMetadata struct {
// contains filtered or unexported fields
}
func NewMbtilesMetadata ¶
func NewMbtilesMetadata(metadata map[string]string) *MbtilesMetadata
func (*MbtilesMetadata) Format ¶
func (m *MbtilesMetadata) Format() (string, error)
func (*MbtilesMetadata) Keys ¶
func (m *MbtilesMetadata) Keys() []string
func (*MbtilesMetadata) MaxZoom ¶
func (m *MbtilesMetadata) MaxZoom() (uint, error)
func (*MbtilesMetadata) MinZoom ¶
func (m *MbtilesMetadata) MinZoom() (uint, error)
func (*MbtilesMetadata) Name ¶
func (m *MbtilesMetadata) Name() (string, error)
func (*MbtilesMetadata) Set ¶
func (m *MbtilesMetadata) Set(key string, value string)
type MbtilesReader ¶
type MbtilesReader interface { Close() error GetTile(tile maptile.Tile) (*TileData, error) VisitAllTiles(visitor func(maptile.Tile, []byte)) error Metadata() (*MbtilesMetadata, error) }
func NewMbtilesReader ¶
func NewMbtilesReader(dsn string) (MbtilesReader, error)
func NewMbtilesReaderWithDatabase ¶
func NewMbtilesReaderWithDatabase(db *sql.DB) (MbtilesReader, error)
type TileOutputter ¶
type TileRequest ¶
Click to show internal directories.
Click to hide internal directories.