Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rick51231 committed Feb 13, 2023
0 parents commit e2996ee
Show file tree
Hide file tree
Showing 5 changed files with 1,174 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
release/
repo/
data.txt
.idea

24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ATAK DTED2 DataPackage generator
This tool used for downloading DTED2 elevation models data from USGS and creating ATAK DataPackages from it.
In releases section, you can find datapackages for several regions.

### Requirements
- USGS account
- Geoapify api key (create free-tier account. For single-use you can find key in the source code of [this](https://www.geoapify.com/boundaries-api) page)
- Geoapify regions ids (see below)

### Get region ids
- Go to https://apidocs.geoapify.com/playground/place-details/
- Select `From address autocomplete`
- Enter the name of the country (or etc) in the text field
- When result loading finished, scroll to the bottom and copy the region id from `place_id: xxxx` (xxx - region id)

### Usage
- Install requirements `npm install`
- Fill variable `usgsLogin` in [index.js](index.js) with you USGS login
- Fill variable `usgsPassword` in [index.js](index.js) with you USGS password
- Fill variable `geoapifyKey` in [index.js](index.js) with you Geoapify api key
- Fill variable `regions` in [index.js](index.js) with required regions list
- Run script via `node index.js`
- When it's finished, the datapackages will be in the `release` folder

Loading

0 comments on commit e2996ee

Please sign in to comment.