Opened 8 years ago

Closed 5 years ago

#6362 closed enhancement (wontfix)

Not optimal gdaldem "scale-factor": the projection is already know (and possibly coordinate dependent)

Reported by: cate Owned by: warmerdam
Priority: normal Milestone: closed_because_of_github_migration
Component: Utilities Version: 1.11.3
Severity: minor Keywords:
Cc:

Description

Hello,

I find the scale factor in gdaldem (e.g. hillshade and slope) not very useful. The geoTiff already know the projection and so the horizontal and vertical units. The factor -z could be used to fine-tuning the projections of shading.

Additionally such factor could be coordinate dependent (e.g. varying by latitude).

So I propose a new flag -S with force gdal to use geoTiff projections and units (and so, no more scale=111120 factors).

Change History (3)

comment:1 by Jukka Rahkonen, 8 years ago

I believe that most DEM files are using some 2D projection like UTM http://epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::32635 so vertical units are unknown. If the coordinate system is metric heights are probably metric too and using the same unit as for x and y for z multiplied with "-z" would give a correct result but it is only guessing.

Especially with projections like EPSG:4326, on what basis would you select meters as vertical unit because only Lat and Long axis are defined http://epsg-registry.org/export.htm?wkt=urn:ogc:def:crs:EPSG::4326?

If there was an automatic -S switch I would like to have also -s switch for overriding the automatic scale.

comment:2 by Jukka Rahkonen, 6 years ago

I would say that this can be implemented only after the Z dimension is really handled in GeoTIFFs, compare with #7093.

comment:3 by Even Rouault, 5 years ago

Milestone: closed_because_of_github_migration
Resolution: wontfix
Status: newclosed

This ticket has been automatically closed because Trac is no longer used for GDAL bug tracking, since the project has migrated to GitHub. If you believe this ticket is still valid, you may file it to https://github.com/OSGeo/gdal/issues if it is not already reported there.

Note: See TracTickets for help on using tickets.