Skip to content

garrettsickles/hgt2png

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hgt2png

Build Status

Convert HGT raster to a subset PNG rasters

Usage

Usage: 
        hgt2png <Mode> <HGT Source> <Output Prefix> <HGT Width> <HGT Height> [<Subwidth> <Subheight>]
Note:
        The last two parameters, [<Subwidth> <Subheight>], are optional.
            - If excluded, both default to 1.
            - If included, both must be counting number which evenly subdivide
                  <HGT Width> and <HGT Height>, respectively.

E.G.
        hgt2png a SOURCE.hgt temp/ 3601 3601 2 2

            => temp/SOURCE.0.0.png
            => temp/SOURCE.0.1800.png
            => temp/SOURCE.1800.0.png
            => temp/SOURCE.1800.1800.png

E.G.
        hgt2png r SOURCE.hgt MyData. 3601 3601

            => MyData.SOURCE.0.0.png

Example

Single Image

./hgt2png r N36W113.hgt test/ 3601 3601

Western Grand Canyon

Subdivided Images (n x n)

./hgt2png r N36W113.hgt test/ 3601 3601 3 3

Building

$ make clean
$ make

About

Convert SRTM HGT raster to a subset PNG rasters

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published