UNopenGIS / 7

UN Smart Maps - keep web maps open for a better world
https://unopengis.github.io/smartmaps/
Creative Commons Zero v1.0 Universal
12 stars 2 forks source link

📗OpenCelliD PMTiles #497

Closed hfu closed 1 week ago

hfu commented 1 month ago

Maybe I should develop PMTiles for OpenCelliD. https://www.opencellid.org/

yuiseki commented 2 weeks ago

@hfu foil4g で、OpenCelliDのCSVをPMTilesに変換するタスクを実装しました

PMTilesに変換後のデータは4.6GBもあります! Image from Gyazo

UN Smart MapsのSource Cooperativeに置かせていただきたいです 🙏

hfu commented 2 weeks ago

@hfu ありがとうございます!私の方でフォローアップして、 cell_towers.pmtiles を Source Cooperative の smartmaps の下にアップロードするようにします!

hfu commented 2 weeks ago

実際にやってみましたところ、私の手元では表示がうまくいかなかったこともあり、tippecanoe のパラメータを調整しつつ、csv.gz から直接 tippecanoe に行くような方式で変換する参考用プロトタイプを作ってみました。

Makefile

As in https://github.com/optgeo/opencellid/blob/main/Makefile:

SRC_PATH = ../foil4g/tmp/opencellid.org/cell_towers.csv.gz
DST_PATH = cellid.pmtiles
GZCAT = gzcat

all: 
    $(GZCAT) ${SRC_PATH} | \
    tippecanoe -o ${DST_PATH} -f \
    -L'{"file": "", "format": "csv"}'

PMTiles file on Source Cooperative

Data page

https://beta.source.coop/smartmaps/opencellid/cellid.pmtiles

Direct access (for PMTiles Viewer, MapLibre GL JS, etc.)

https://data.source.coop/smartmaps/opencellid/cellid.pmtiles

On PMTiles Viewer

https://pmtiles.io/?url=https%3A%2F%2Fdata.source.coop%2Fsmartmaps%2Fopencellid%2Fcellid.pmtiles#map=13.78/35.69938/139.77238

hfu commented 2 weeks ago

※ 上記 PMTiles Viewer の表示を拡大すると、いかにも桁を丸めているような表示になります。精査はできていませんが、OpenCellid の CSV ファイルの時点で桁を丸めていらっしゃるという理解です。

image
hfu commented 1 week ago

I am closing this as successfully completed!