Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.39 KB

README.md

File metadata and controls

57 lines (41 loc) · 1.39 KB

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