Skip to content
This repository was archived by the owner on Aug 17, 2020. It is now read-only.
This repository was archived by the owner on Aug 17, 2020. It is now read-only.

Question about missing .hgt files #5

@cviebrock

Description

@cviebrock

I'm trying to use your scripts and am running into trouble, but probably because of something I'm doing wrong:

python heightmap.py --elevation-dir ./data \
    --geojson ~/Downloads/buildings.json \
    --output my.heightmap \
    --save-image my.png \
    49.897 -97.137 4 512

The output is:

ll 49.897 -97.137 4.0 512 <pyproj.Proj object at 0x10e8a9390>
Traceback (most recent call last):
  File "heightmap.py", line 90, in <module>
    elev = SrtmHeightMap(lat, lng, resolution, size, proj, args.elevation_dir)
  File "heightmap.py", line 49, in __init__
    tiles[tile_key] = SrtmHeightMap._loadTile(data_dir, lat, lng)
  File "heightmap.py", line 65, in _loadTile
    with open(p, 'rb') as f:
IOError: [Errno 2] No such file or directory: './data/N90E014.hgt'

I figured that I'd only need an .hgt file for the area I'm trying to map (i.e. N49W097.hgt), but the script is looking for a different file. Furthermore, I don't think there actually are any files for N90*.

Where did I mess up? 😉

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions