Code Monkey home page Code Monkey logo

Comments (5)

yuiseki avatar yuiseki commented on June 26, 2024 1

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

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

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

from 7.

hfu avatar hfu commented on June 26, 2024 1

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

from 7.

hfu avatar hfu commented on June 26, 2024 1

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

from 7.

hfu avatar hfu commented on June 26, 2024 1

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

image

from 7.

hfu avatar hfu commented on June 26, 2024

I am closing this as successfully completed!

from 7.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.