This file contains 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
import argparse | |
import os | |
import warnings | |
import mercantile | |
import rasterio | |
from pmtiles.tile import Compression | |
from pmtiles.tile import TileType | |
from pmtiles.tile import zxy_to_tileid | |
from pmtiles.writer import Writer |
This file contains 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
#!/usr/bin/env python3 | |
import argparse | |
import os | |
from pmtiles.reader import MmapSource, Reader, all_tiles | |
from pmtiles.writer import Writer | |
from pmtiles.tile import Compression | |
from pmtiles.tile import zxy_to_tileid | |
from tqdm import tqdm | |
def merge_pmtiles(input_dir: str, output_file: str) -> None: |
This file contains 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
#!/usr/bin/env python3 | |
import argparse | |
import os | |
from pmtiles.reader import all_tiles | |
from pmtiles.reader import MmapSource | |
from pmtiles.reader import Reader | |
from pmtiles.tile import TileType | |
from tqdm import tqdm |