Documentation
¶
Index ¶
- Constants
- func Convert(logger *log.Logger, input string, output string) error
- func ConvertMbtiles(logger *log.Logger, input string, output string) error
- func ConvertPmtilesV2(logger *log.Logger, input string, output string) error
- func IdToZxy(i uint64) (uint8, uint32, uint32)
- func Matches(z uint8, minX uint32, minY uint32, maxX uint32, maxY uint32, candidate Zxy) bool
- func ParseEntryV2(b []byte) (uint8, Zxy, Range)
- func Show(logger *log.Logger, args []string) error
- func SubpyramidXY(logger *log.Logger, input string, output string, z uint8, minX uint32, ...)
- func Upload(logger *log.Logger, args []string) error
- func ZxyToId(z uint8, x uint32, y uint32) uint64
- type CacheKey
- type CachedValue
- type Compression
- type DirectoryV2
- type EntryV3
- type HeaderV3
- type Loop
- type Metadata
- type OffsetLen
- type Range
- type Request
- type Resolver
- type Response
- type TileType
- 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 ConvertMbtiles ¶ added in v1.1.0
func ConvertPmtilesV2 ¶ added in v1.1.0
func SubpyramidXY ¶
Types ¶
type CachedValue ¶ added in v1.2.0
type CachedValue struct {
// contains filtered or unexported fields
}
type Compression ¶ added in v1.0.0
type Compression uint8
type DirectoryV2 ¶ added in v1.1.0
func ParseDirectoryV2 ¶ added in v1.1.0
func ParseDirectoryV2(dir_bytes []byte) DirectoryV2
func ParseHeaderV2 ¶ added in v1.1.0
func ParseHeaderV2(reader io.Reader) ([]byte, DirectoryV2)
func (DirectoryV2) SizeBytes ¶ added in v1.1.0
func (d DirectoryV2) SizeBytes() int
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 Loop ¶
type Loop struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.