Documentation ¶
Overview ¶
package catalog provides methods for creating lookup tables of tilepack.MbtilesReader instances.
Index ¶
- func NewCatalogFromFS(db_fs fs.FS) (map[string]tilepack.MbtilesReader, error)
- func NewCatalogFromFSWithMatchFunc(db_fs fs.FS, match_func MatchFunc) (map[string]tilepack.MbtilesReader, error)
- func NewCatalogFromFSWithRegexp(db_fs fs.FS, re *regexp.Regexp) (map[string]tilepack.MbtilesReader, error)
- type MatchFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCatalogFromFS ¶
NewCatalogFromFS return a lookup table of tilepack.MbtilesReader instances from a fs.FS instance. This method will match filenames (in 'db_fs') ending in `.*\.(sqlite|sqlite3|mbtiles|db)$`
func NewCatalogFromFSWithMatchFunc ¶
func NewCatalogFromFSWithMatchFunc(db_fs fs.FS, match_func MatchFunc) (map[string]tilepack.MbtilesReader, error)
NewCatalogFromFS return a lookup table of tilepack.MbtilesReader instances from a fs.FS instance whose children return true when compared against the MatchFunction defined in 'match_func'
func NewCatalogFromFSWithRegexp ¶
func NewCatalogFromFSWithRegexp(db_fs fs.FS, re *regexp.Regexp) (map[string]tilepack.MbtilesReader, error)
NewCatalogFromFS return a lookup table of tilepack.MbtilesReader instances from a fs.FS instance whose children match the regular expression defined in 're'.
Types ¶
Click to show internal directories.
Click to hide internal directories.