Documentation
¶
Index ¶
- Constants
- func Convert(logger *log.Logger, input string, output string)
- func IdToZxy(i uint64) (uint8, uint32, uint32)
- func Matches(z uint8, minX uint32, minY uint32, maxX uint32, maxY uint32, candidate Zxy) bool
- func ParseEntry(b []byte) (uint8, Zxy, Range)
- func SubpyramidXY(logger *log.Logger, input string, output string, z uint8, minX uint32, ...)
- func ZxyToId(z uint8, x uint32, y uint32) uint64
- type Compression
- type Datum
- type DatumKind
- type Directory
- type Entry
- type EntryAscending
- type EntryV3
- type Fetcher
- type FileFetcher
- type HTTPFetcher
- type HeaderV3
- type Key
- type Loop
- type Metadata
- type OffsetLen
- type Range
- type Request
- type Resolver
- type Response
- type TileType
- type Writer
- type Zxy
Constants ¶
View Source
const ( UnknownCompression Compression = 0 NoCompression = 1 Gzip = 2 Brotli = 3 Zstd = 4 )
View Source
const ( UnknownTileType TileType = 0 Mvt = 1 Png = 2 Jpeg = 3 Webp = 4 )
View Source
const HEADERV3_LEN_BYTES = 127
Variables ¶
This section is empty.
Functions ¶
func SubpyramidXY ¶
Types ¶
type Compression ¶ added in v1.0.0
type Compression uint8
type Directory ¶
func ParseDirectory ¶
type EntryAscending ¶
type EntryAscending []Entry
func (EntryAscending) Len ¶
func (e EntryAscending) Len() int
func (EntryAscending) Less ¶
func (e EntryAscending) Less(i, j int) bool
func (EntryAscending) Swap ¶
func (e EntryAscending) Swap(i, j int)
type FileFetcher ¶
type FileFetcher struct {
// contains filtered or unexported fields
}
type HTTPFetcher ¶
type HTTPFetcher struct {
// contains filtered or unexported fields
}
type HeaderV3 ¶ added in v1.0.0
type HeaderV3 struct {
RootOffset uint64
RootLength uint64
MetadataOffset uint64
MetadataLength uint64
LeafDirectoryOffset uint64
LeafDirectoryLength uint64
TileDataOffset uint64
TileDataLength uint64
AddressedTilesCount uint64
TileEntriesCount uint64
TileContentsCount uint64
Clustered bool
InternalCompression Compression
TileCompression Compression
TileType TileType
MinZoom uint8
MaxZoom uint8
MinLonE7 int32
MinLatE7 int32
MaxLonE7 int32
MaxLatE7 int32
CenterZoom uint8
CenterLonE7 int32
CenterLatE7 int32
}
type Resolver ¶ added in v1.0.0
type Resolver struct {
Entries []EntryV3
Offset uint64
OffsetMap map[string]OffsetLen
AddressedTiles uint64 // none of them can be empty
// contains filtered or unexported fields
}
func NewResolver ¶ added in v1.0.0
func NewResolver() *Resolver
Click to show internal directories.
Click to hide internal directories.