Skip to content

Scripts for generating global landcover layers from ESA Landcover data

Notifications You must be signed in to change notification settings

radarlabs/global-landcover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Scripts for generating global landcover layers from ESA Landcover data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published