Logo Lanfrica
  • Home
  • Atlas
  • Insights
  • Docs
  • Sign in

© 2026 Lanfrica. All rights reserved. All copyrights of the resources shown on the Lanfrica website belong to the original copyright holders, unless explicitly stated otherwise.

watergis/open-building-vt-generator

Domain:

geospatial

Record type:

software
Creator:
wat
Host:
This module is to convert csv files of Google's building data in Africa to GeoJSON files. # open-building-vt-generator This module is to convert csv files of Google's building data in Africa to GeoJSON files. ## Download First of all, download all of building data by commandline. ```bash gsutil cp -R gs://open-buildings-data/v1/polygons_s2_level_4_gzip . ``` The total size of files is 46GB for 135 files. ## Extract .csv.gz to .csv ```bash find ./polygons_s2_level_4_gzip -type f -name "*.gz" -exec gunzip {} \; ``` The total size of files after extracting is 129.5GB ## Convert .csv to GeoJSON - Installation ```bash git clone git@github.com:watergis/google-building-csv2geojson.git cd google-building-csv2geojson npm i ``` - Convert Modify `building-csv2geojson.test.js` ```js const { BuidlingCsv2GeoJSON} = require('../src/index'); const path = require('path'); (() => { // specify the directory where stored csv files const inputDir = path.resolve(__dirname, './data') // specify the directory where export to const outputDir = path.resolve(__dirname, './output') const csv2geojson = new BuidlingCsv2GeoJSON(inputDir, outputDir); csv2geojson.convert(); })(); ``` ```bash npm run convert ``` ### generate vector tiles by tippecanoe - if you just want to convert few GeoJSON files... ```bash tippecanoe -P --no-feature-limit --no-tile-size-limit --force --minimum-zoom=15 --maximum-zoom=15 --base-zoom=15 --hilbert -l "open-buildings" -o open-buildings.mbtiles $(find ./tests/output/*.geojson) ``` This might take very long time to generate mbtiles if the number of GeoJSON is too much. - if you want to convert in the entire Africa... Modify `geojson2mbtiles.test.js` ```js const { GeoJSON2mbtiles} = require('../src/index'); const path = require('path'); (async () => { const parentDir = __dirname; // specify the GeoJSON directory path. const inputDir = path.resolve(parentDir, './output') // specify the mbtiles directory path to export const outputDir = path.resolve(parentDir, './mbtiles') const geojson2mbtiles = new GeoJSON2mbtiles(inputDir, outputDir) …

Visit

github.com

Tags

googlembtilesopen-buildingvector-tiles

Licenses

MIT

Similar

watergis/19dMisiker101/ahlr-vtvt-park/kenya-appMedical devices building on open paradigmOpen Buildings: Global Building Footprint DatasetBuilding OMProDat: an open multilingual prosodic database

watergis/19d

Open Buildings data introduced by Google for 19d tile grid data which can cover the whole Rwanda. #

Misiker101/ahlr-vt

AHLR-VT: A Hybrid CNN–Vision Transformer Architecture for Offline Amharic Handwritten Text-Line Reco

vt-park/kenya-app

# kenya-app Android app that visualizes NDVI polygon data on Google Maps (satellite view) and can c

Medical devices building on open paradigm

International audience The pandemic context has led to an increase in global cooperat

Open Buildings: Global Building Footprint Dataset

Mapping urban density and informal settlements - Estimating population distribution in the absence o

Building OMProDat: an open multilingual prosodic database

International audience Current research on speech prosody generally makes use of larg