2.0.4 • Published 6 months ago

@undp-data/geohub-cli v2.0.4

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
6 months ago

geohub-cli

This repository is to manage CLI tools for geohub

Usage

$geohub -h
Usage: geohub [options] [command]

Options:
  -v, --version     output the version number
  -h, --help        display help for command

Commands:
  martin [options]  scan martin layers to register metadata into PostgreSQL database.
  stac [options]    scan STAC collections to register metadata into PostgreSQL database.
  help [command]    display help for command
  • Register martin layers
$geohub martin -h
Usage: geohub martin [options]

scan martin layers to register metadata into PostgreSQL database.

Options:
  -d, --database <dsn>           PostgreSQL database connection string
  -m, --martin-url [martin-url]  URL for martin index.json (default: "https://martin.undpgeohub.org/index.json")
  -o, --output [output]          Output directory for temporary working folder (default: "tmp")
  -h, --help                     display help for command
  • Register STAC collections
$geohub stac -h
Usage: geohub stac [options]

scan STAC collections to register metadata into PostgreSQL database.

Options:
  -d, --database <dsn>   PostgreSQL database connection string
  -s, --stac <stac>      STAC API root URL. e.g., https://planetarycomputer.microsoft.com/api/stac/v1
  -o, --output [output]  Output directory for temporary working folder (default: "tmp")
  -h, --help             display help for command

For example

# to register STAC by Microsoft Planetary Computer
geohub stac -d <database connection string> -s https://planetarycomputer.microsoft.com/api/stac/v1

# to register STAC by Earth Search
geohub stac -d <database connection string> -s https://earth-search.aws.element84.com/v0/
2.0.3

9 months ago

2.0.2

9 months ago

2.0.4

6 months ago

2.0.1

11 months ago

2.0.0

1 year ago

1.1.1

1 year ago

1.1.2

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago