Repository navigation
Add hakunapi-tiles-generator: seed a GeoPackage tile pyramid and convert it to PMTiles - #243
Merged
Merged
Conversation
…ert it to PMTiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Community module with two command-line tools.
TilesGeneratorrenders a vector tile pyramid offline into GeoPackage tile tables, from the feature sources of a normal service configuration.PMTilesConvertconverts such a table into a PMTiles v3 archive. It is a driver, not a second renderer: tiles come from the server'sVectorTileGenerator, and sources load throughdb.classes. The PMTiles writer lives inhakunapi-tiles-source-pmtiles, beside the reader from #242. Not wired into the reference webapp.filterper collection. An optionalsourcesproperty groups collections into output tables; without it each collection is its own table.TilesGeneratorGeneratorControl/ZoomRange/TileSourcesPyramidGenerator-Dhakunapi.tiles.block, default 4) on a worker pool, throughgenerateBlockwhen supported: the first production caller of the block API. Results are written in completion order. An empty tile writes no row.PyramidTables/TilePyramidWriterGPKG/GPKGTilesTable/GPKGTileMatrix/MvtTilesExtension(hakunapi-gpkg)init. The table entry carries the tiling scheme's extent, not the tiles'. Every table gets ahakunapi_mvtrow ingpkg_extensions.PMTilesConvert/PyramidBoundsPyramidBoundsderives the header extent from the finest zoom's tiles in WGS84; no region is assumed.PMTilesWriter/DirectoryWriter/HeaderWriterBehaviour:
fsync, so a crashed run may leave an unusable file<name>.collections)PMTilesConvertextent and centre default to the finest zoom's tiles;--bboxand--centeroverride. A non-4326 pyramid needs a projection factory on the classpath, else it asks for--bboxPMTilesConvertrefuses a pyramid whose matrices are not 2^z by 2^z