Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.37 KB

README.md

File metadata and controls

37 lines (29 loc) · 1.37 KB

Global Landcover

This repo contains scripts for generating tilesets from the ESA Worldcover dataset.

Installation

Install gdal-async with shared libs

$ npm install gdal-async --build-from-source --shared_gdal

Usage

$ node main.js <options>

  -h, --help               Display the usage guide.
  --layers type            Comma-separated list of layers to include in the
                           output. Available values are:
                           forest,shrub,grass,crop,built,bare,snow,water,wetland,mangroves,moss.
                           Defaults to all.
  -t, --threshold number   Threshold used for GDAL sieve operation (in pixels).
                           Defaults to 2048.
  -s, --simplify number    Polygon simplification tolerance (in degrees).
                           Defaults to 0.01
  -p, --parallel number    Number of worker processes to run.
                           Defaults to #CPUs/2.
  -v, --verbose            More detailed logging.

Output

Output is 1.4 GB of GeoJSON, with ~3.4M features.

Converted to .mbtiles with a max tilesize of 500K is 270MB.

image