This object is in archive! 

How to download SRTM 1/3 arc to Locusmaps?

blahdi shared this question 2 years ago
Answered

How can we download SRTM 1/3 arc second digital elevation to Locusmaps?


I am finding that the current elevation profile in Lomaps is not accurate in many places in USA WA state, and I suspect it is due to lower granularity.


Pls advise.

Replies (13)

photo
1

I have Lomaps for USA WA state along with latest elevation data provided by Lomaps. Elevation granularity is not good enough for mountains.

photo
1

Hi, copy the data in HGT format (1° tiles) into /Locus/data/srtm directory and restart the app.

photo
1

Michal, appreciate your response.


it seems to be really complicated to get the HGT files for SRTM 1/3. They are not in viewpanaromas web site (which is outdated and not maintained for years). and USGS bulk downloader does not install on windows anymore because the app is downloader app is old, and requires a really old version of Java which oracle has removed from its web site (likely because it has many security issues).

photo
2

Then I'm sorry, there is no other way how to get custom elevation data into Locus.

photo
1

blahdi,

have you looked at this list with URLs?

https://www.opentopodata.org/datasets/srtm30m_urls.txt

from page

https://www.opentopodata.org/datasets/srtm/

So you can mimik a bulk download, which is a script in fact with the subset you need. Login credentials needed, though.

Registration: https://urs.earthdata.nasa.gov/

photo
1

thanks Michael - i am now looking into it. Looks a bit complicated for regular users , but might be doable.

photo
1

the python scripts (even with 2.0) are giving download errors.


I was able to use USGS EarthExplorer, but downloads are NOT in HGT file format - this makes it more complicated.

photo
1

The real DEM folks use GeoTIFF format, not hgt.

The link above points to a list of hgt files, that's what you need.


Once you have username/password from this NASA service, you can use

wget --user user --password pass http://example.com/
Of course filling in the right data and the hgt files you need from above list.

photo
1

awesome. this wget approach of downloading is working with above list. I will let u know once everything works.

photo
1

unfortunately, those SRTM files which were downloaded from above list are not being recognized by Locus maps.


I have unzipped them and put them in the SRTM folder and removed older files.

photo
1

Weird. If they have the right name in the right place, and Locus has been restarted after copy, does Locus give an error or does it try to download elevation?

photo
1

does the name as long as it has the HGT extension matter as much? I assume the file is self-coded with GPS info.

photo
1

https://fileproinfo.com/tools/viewer/hgt#

claims to view hgt files, so you might want to check the content, too.

I have not worked with that site, though.

photo
1

Found the problem - Locusmap recognizes the HGT files from that link, but it expects all HGT files in a single directory. Does not work if HGT files are in subdirectories, and each file extracts to a separate subdirectory. Locusmap also does not parse zip files.


Essentially, these limitationsmakes the extraction process really manually cumbersome and can take 1 full day for single US State - not feasable for most people. It needs to be done once and distributed to everyone via Lomaps.

photo
1

Yes, one folder, and the correct name is the only identification that works.

Renaming etc. is also a topic for a script, not manual work.

I agree that wanting special material beyond automatic download by Locus implies special work ...

photo
1

And, these files appear to be 3 arc second. Not 1/3 arc second.? I could not verify it..

photo
2

Check the size: 3 MB means 3", 25 MB contains 1" dats

photo
1

I found this thread which renamed BIL file - i will try it out.

https://help.locusmap.eu/topic/srtm-hgt-file-handling

photo
1

BIL to HGT rename approach mentioned in the link above did not work for BIL format 1/3 arc downloads from USGS. fyi

photo
1

That does not answer your question about what this web site provides - 1" or 3" :-)

photo
1

Hahaha. The thread indicates that we might be able to use bil files download from usgs earthexplorer and they are highest resolution available. I dont know for sure, but hoping.

photo
1

Again, as you did the wget thing and unzipped: What did you get as hgt? 3 MB or 25 MB?

photo
1

Sorry I didnt realize it was a question. They are mostly 2.8MB.

photo
2

I think I successfully converted a BIL file - SRTM 1 arc second to HGT using GDAL translate. I tested it on Locusmap Pro, and slope angles and terrain looks more detailed. The file size is 25MB


https://gis.stackexchange.com/questions/385962/srtm-hgt-to-geotiff-conversion-using-gdal


Now, I have to figure out how to convert the entire set of files for Washington state. Or, maybe instead I will convert some specific areas.

photo
2

done. Downloaded only for Cascade range in WA state.


Steps:

1. From USGS Explorer download 1arc BIL files of the areeas u want

2. Extract all files from the zip files to a directory (not just BIL file).

3. Use gdaltranslate to convert from BIL to HGT. See link above.


Its complicated, but can be done.


Thank you all for your awesome help.

photo
1

Congratulations!

Replies have been locked on this page!