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

📗OpenCelliD PMTiles #497

Closed
hfu opened this issue May 27, 2024 · 5 comments
Closed

📗OpenCelliD PMTiles #497

hfu opened this issue May 27, 2024 · 5 comments
Assignees
Labels
adopt UN Geodata Adoptation Center priority/MUST

Comments

@hfu
Copy link
Contributor

hfu commented May 27, 2024

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

@hfu hfu added the someday/maybe we may revisit it someday, maybe. label May 27, 2024
@hfu hfu self-assigned this May 27, 2024
@hfu hfu added the adopt UN Geodata Adoptation Center label Jun 11, 2024
@hfu hfu changed the title OpenCelliD PMTiles 📗OpenCelliD PMTiles Jun 11, 2024
@yuiseki yuiseki self-assigned this Jun 15, 2024
@yuiseki
Copy link
Member

yuiseki commented Jun 15, 2024

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

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

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

@hfu
Copy link
Contributor Author

hfu commented Jun 15, 2024

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

@hfu hfu added priority/MUST and removed someday/maybe we may revisit it someday, maybe. labels Jun 15, 2024
@hfu
Copy link
Contributor Author

hfu commented Jun 15, 2024

実際にやってみましたところ、私の手元では表示がうまくいかなかったこともあり、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
Copy link
Contributor Author

hfu commented Jun 15, 2024

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

image

@hfu
Copy link
Contributor Author

hfu commented Jun 18, 2024

I am closing this as successfully completed!

@hfu hfu closed this as completed Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adopt UN Geodata Adoptation Center priority/MUST
Projects
None yet
Development

No branches or pull requests

2 participants