[gdal-dev] gdaldem hillshade returns an empty .tif (i.e. everything is 181 (?))

Ruth Simm goldfish_and_muskie at yahoo.com
Tue Jun 30 10:23:17 PDT 2015


Yup. That's why I thought...so back to square one....
Why do I get a dud file with:
gdaldem hillshade -of GTiff infile.tif hillshd.tif
 



     On Tuesday, June 30, 2015 10:07 AM, Even Rouault <even.rouault at spatialys.com> wrote:
   

 Le mardi 30 juin 2015 19:05:58, Ruth Simm a écrit :
> Hm. Well the prj is 3857 ...but I reprojected it from 4326....would -
> 
> I did run this on one tile - came out fine:
> gdaldem hillshade DCM_N00E116.tif hillshade_test.tif -compute_edges -z 5 -s
> 111120 -az 90 but this returned the same result on the global file:
> 
> gdaldem hillshade -of GTiff infile_3857.tif hillshade.tif -compute_edges -z
> 5 -s 111120 -az 90

For EPSG:3857, you shouldn't add  -s 111120 as the horizontal units are 
already meters.

> 
> 
> 
> 
> 
>      On Tuesday, June 30, 2015 2:41 AM, Even Rouault
> <even.rouault at spatialys.com> wrote:
> 
> 
>  #yiv0977550860 p, #yiv0977550860 li {white-space:pre-wrap;}Le mardi 30
> juin 2015 01:20:13, Ruth Simm a écrit :> I ran this command on a
> completely NORMAL (but large) global .tiff with a> few tiles missing - but
> nothing else suspicious - and after 40 minutes it> returned a dud file
> with '181' being the only value. Has this ever> happened to anyone
> before?> gdaldem hillshade -of GTiff infile.tif hillshd.tifRuth,I guess
> this might be an issue with the ratio of vertical units to
> horizontal.http://gdal.org/gdaldem.html#gdaldem_hillshade:-s scale:ratio
> of vertical units to horizontal. If the horizontal unit of the source DEM
> is degrees (e.g Lat/Long WGS84 projection), you can use scale=111120 if
> the vertical units are meters (or scale=370400 if they are in feet) I'd
> suggest you experiment a bit on a subwindow of your big raster or a
> subsampled version of it first.Even-- Spatialys - Geospatial professional
> serviceshttp://www.spatialys.com

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20150630/733ba8a9/attachment-0001.html>


More information about the gdal-dev mailing list