Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error with pmtiles_metadata (not compatible with v3?) #638

Closed
prusswan opened this issue Dec 14, 2023 · 0 comments · Fixed by #643
Closed

error with pmtiles_metadata (not compatible with v3?) #638

prusswan opened this issue Dec 14, 2023 · 0 comments · Fixed by #643

Comments

@prusswan
Copy link
Contributor

metadata["vector_layers"] = json.loads(metadata["json"])["vector_layers"]

does not work with current PMTiles (metadata does not have the "json" key)

These are the keys present in the header and metadata from one of the current PMTiles extracted from protomaps daily builds:

{'header': ['addressed_tiles_count',
            'center_lat_e7',
            'center_lon_e7',
            'center_zoom',
            'clustered',
            'internal_compression',
            'leaf_directory_length',
            'leaf_directory_offset',
            'max_lat_e7',
            'max_lon_e7',
            'max_zoom',
            'metadata_length',
            'metadata_offset',
            'min_lat_e7',
            'min_lon_e7',
            'min_zoom',
            'root_length',
            'root_offset',
            'tile_compression',
            'tile_contents_count',
            'tile_data_length',
            'tile_data_offset',
            'tile_entries_count',
            'tile_type',
            'version'],
 'metadata': ['attribution',
              'description',
              'name',
              'planetiler:buildtime',
              'planetiler:githash',
              'planetiler:osm:osmosisreplicationseq',
              'planetiler:osm:osmosisreplicationtime',
              'planetiler:osm:osmosisreplicationurl',
              'planetiler:version',
              'type',
              'vector_layers']}

Related links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant