Hill shading doesn't work with hi-res DEM's?

Started by windanimal, December 30, 2016, 05:39:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

windanimal

I'm a new Oruxmaps user and I'm curious why hill shading and relief maps only work with the lower resolution SRTM DEM's. High resolution 1/3 arc-second DEM's from viewer.nationalmap.gov that I converted to .DEM + .HDR file format work for most functions but not hill shading or relief maps. I'm using version 6.5.10.



Sombreado no funciona con hi-res DEM?

orux

#1
Quote from: "windanimal"I'm a new Oruxmaps user and I'm curious why hill shading and relief maps only work with the lower resolution SRTM DEM's. High resolution 1/3 arc-second DEM's from viewer.nationalmap.gov that I converted to .DEM + .HDR file format work for most functions but not hill shading or relief maps. I'm using version 6.5.10.



Sombreado no funciona con hi-res DEM?




Lo siento, pero el sombreado usando ficheros HDR no lo tengo preparado, lo intentaré en próximas versiones,





orux

windanimal

#2
Está bien, OruxMaps es una buenísima app!

Muchas gracias

orux

#3
Quote from: "windanimal"Está bien, OruxMaps es una buenísima app!

Muchas gracias




Hola,



en la última beta he añadido la posibilidad de usar los HDR para el mapa de relieve y sombreado.  http://oruxmaps.com/foro/viewtopic.php?f=4&t=3689">http://oruxmaps.com/foro/viewtopic.php?f=4&t=3689



¿lo puedes probar?



orux

windanimal

#4
Hola,



El sombreado aparece en la beta pero es equivocado en las montañas y aparece tambien en las planicies y el mar.



My english is better: Hill shading now is generated in the latest beta with HDR DEM's but it's wrong. It shows up on flatland and in the sea. It's also segmented into tiles that don't match at the tile edges. The DEM files are working since I can show DEM altitude in the dashboard and it's very accurate.



One issue I noticed in the beta is that the drag and drop to sort the dashboard items isn't working.



I do like how the menus have been cascaded so they aren't as long.



Gracias.

orux

#5
Quote from: "windanimal"Hola,



El sombreado aparece en la beta pero es equivocado en las montañas y aparece tambien en las planicies y el mar.



My english is better: Hill shading now is generated in the latest beta with HDR DEM's but it's wrong. It shows up on flatland and in the sea. It's also segmented into tiles that don't match at the tile edges. The DEM files are working since I can show DEM altitude in the dashboard and it's very accurate.



One issue I noticed in the beta is that the drag and drop to sort the dashboard items isn't working.



I do like how the menus have been cascaded so they aren't as long.



Gracias.


Thanks.



Can you share with me some DEM HDR file from some mountainous area? I have difficulties in finding examples on the Web.





orux

windanimal

#6
Hola,



Please let me know how to send you the file. It's very large, 280 MB compressed.



Here are the steps I took to create the file:



1. Download the DEM data file from: https://viewer.nationalmap.gov/basic/">//https://viewer.nationalmap.gov/basic/



2. Zoom to a small area on map



3. Make these selections on the left of the page:

· Data > Elevation Products > 1/3 arc-second DEM

· Select GridFloat as the file format



4. Hit the button "Find Products"



5. Click on a result and download and unzip



Now we have to convert the .flt file to a .bil file



Use the gdal_translate command which is one of the GDAL utilities (GDAL is Geospatial Data Abstraction Library)



6. Here is the command I used to convert the file floatn35w120_13.flt


gdal_translate -of EHdr floatn35w120_13.flt floatn35w120_13.bil

7. Change the file extension from .bil to .dem and copy it and the .hdr file to oruxmaps/dem





Muchas Gracias!

windanimal

#7
Hola,



I uploaded the DEM file to:



https://drive.google.com/file/d/0B6L7fh6mJZUpSDl2RDVRQ3U1dkU/view?usp=sharing">//https://drive.google.com/file/d/0B6L7fh6mJZUpSDl2RDVRQ3U1dkU/view?usp=sharing



It is a zip (280 MB) containing a .hdr and a .dem file. Unzip and copy to the oruxmaps/dem folder.



It is 1 degree x 1 degree in southern California (Santa Barbara) and has both mountains and sea. Latitude 34-35 North, Longitude 119-120 West.



I created it using the steps in my previous post.



Gracias!

orux

#8
Quote from: "windanimal"Hola,



I uploaded the DEM file to:



https://drive.google.com/file/d/0B6L7fh6mJZUpSDl2RDVRQ3U1dkU/view?usp=sharing">//https://drive.google.com/file/d/0B6L7fh6mJZUpSDl2RDVRQ3U1dkU/view?usp=sharing



It is a zip (280 MB) containing a .hdr and a .dem file. Unzip and copy to the oruxmaps/dem folder.



It is 1 degree x 1 degree in southern California (Santa Barbara) and has both mountains and sea. Latitude 34-35 North, Longitude 119-120 West.



I created it using the steps in my previous post.



Gracias!


Thanks.



Pleease, could you test the last beta version, updated today?





orux

windanimal

#9
Hi Orux,



New beta rc4 funciona muy bien. Hill shading works correctly now and the resolution is very high - Looks much better than SRTM.



Muchas Gracias!

windanimal

#10
Hi Orux,



If I had a blank (all white) Mapsforge map and turned on DEM hill shading I could use it as a hill shading layer on other maps.



Is there a way to make a blank Mapsforge map?



Gracias.

orux

#11
Quote from: "windanimal"Hi Orux,



If I had a blank (all white) Mapsforge map and turned on DEM hill shading I could use it as a hill shading layer on other maps.



Is there a way to make a blank Mapsforge map?



Gracias.




Hello,



I don't know, but may be you can ask to openandromaps.org builders,



orux

eartrumpet

#12
Quote from: "windanimal"
Is there a way to make a blank Mapsforge map?

Just use an empty theme file. E.g. save this code as "blank.xml" and copy to your theme directory:


<?xml version="1.0" encoding="UTF-8"?>
<rendertheme xmlns="http://mapsforge.org/renderTheme" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mapsforge.org/renderTheme https://raw.githubusercontent.com/mapsforge/mapsforge/dev/resources/renderTheme.xsd" version="1" map-background="#FFFFFF">
</rendertheme>


Use with a map of the desired area, or even better - use a simple world map from here:

http://download.mapsforge.org/maps/world/">//http://download.mapsforge.org/maps/world/

windanimal

#13
Thank you eartrumpet, your solution works perfectly.