Documentation
¶
Index ¶
- Constants
- func Convert(logger *log.Logger, input string, output string, deduplicate bool, ...) error
- func ConvertMbtiles(logger *log.Logger, input string, output string, deduplicate bool, ...) error
- func ConvertPmtilesV2(logger *log.Logger, input string, output string, deduplicate bool, ...) error
- func IdToZxy(i uint64) (uint8, uint32, uint32)
- func Matches(z uint8, minX uint32, minY uint32, maxX uint32, maxY uint32, candidate Zxy) bool
- func ParentId(i uint64) uint64
- func ParseEntryV2(b []byte) (uint8, Zxy, Range)
- func Show(logger *log.Logger, bucketURL string, file string, show_tile bool, z int, ...) error
- func SubpyramidXY(logger *log.Logger, input string, output string, z uint8, minX uint32, ...)
- func Upload(logger *log.Logger, input string, bucket string, key string, ...) error
- func WriteImage(interior *roaring64.Bitmap, boundary *roaring64.Bitmap, ...)
- func ZxyToId(z uint8, x uint32, y uint32) uint64
- type CacheKey
- type CachedValue
- type Compression
- type DirectoryV2
- type EntryV3
- type HeaderV3
- type Metadata
- type OffsetLen
- type Range
- type Request
- type Resolver
- type Response
- type Server
- 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 ¶
func WriteImage ¶ added in v1.7.0
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 {
SpecVersion uint8
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 (*Resolver) AddTileIsNew ¶ added in v1.0.0
must be called in increasing tile_id order, uniquely
func (*Resolver) NumContents ¶ added in v1.6.0
Click to show internal directories.
Click to hide internal directories.