Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whiteblackgoose/hgt2png
Cross-platform tool for transforming hgt files into 32-bit and 64-bit pngs
https://github.com/whiteblackgoose/hgt2png
Last synced: about 1 month ago
JSON representation
Cross-platform tool for transforming hgt files into 32-bit and 64-bit pngs
- Host: GitHub
- URL: https://github.com/whiteblackgoose/hgt2png
- Owner: WhiteBlackGoose
- License: mit
- Created: 2021-02-12T06:35:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-21T06:28:41.000Z (over 3 years ago)
- Last Synced: 2024-10-06T09:05:51.140Z (about 1 month ago)
- Language: C#
- Homepage:
- Size: 25 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hgt2png
Cross-platform tool for transforming hgt files into 32-bit and 64-bit pngs.
By WhiteBlackGoose and MomoDeve.
## Installation
```
git clone https://github.com/WhiteBlackGoose/hgt2png
cd hgt2png/hgt2png
dotnet build hgt2png.csproj
```## Usage
Consider these files.
```
dotnet run hgt2png.csproj "../samples/hgt"
```It will gather all the files with the appropriate naming (e. g. N44E033):
and pack into one 32-bit image:
as well as a more precise 64-bit image:
You can specify the path and prefix
```
dotnet run hgt2png.csproj "../samples/hgt" "../samples/res/some_random_prefix"
```Finally, you can specify maxbyte. It's needed when you independently process images within multiple executions, and since you need the same
maxbyte, you first process those folders you need separately, then take the highest maxbyte and specify:```
dotnet run hgt2png.csproj "../samples/hgt" "../samples/res/some_random_prefix" -maxbyte 5
```#### Interpolation
Sometimes there are broken dots (whose first byte is 255 or 128). Hgt2png interpolates them with the average of all non-broken dots around. If all dots around are broken,
it sets the broken dot to 0.