Page 1 of 1

Process imagery from UTM to WGS84

Posted: Thu Jun 25, 2020 12:54 am
by ahuimanu
Hello,

In the World/Terrain/Terrain Tutorial section of both the V4 and V5 SDKs, there is a section entitled: Process imagery from UTM to WGS84

Using the OSGeo4W shell that comes with QGIS 3.10.6, I first run the JPEG2000 to GeoTiff command:

Code: Select all

gdal_translate -of GTiff -co COMPRESS=LZW -co TILED=NO input.jp2 output.tif
Which is successful as expressed in the tutorial.

However, when I run the gdalwarp command:

Code: Select all

gdalwarp -s_srs EPSG:3857 -t_srs "+proj=longlat +ellps=wgs84 +datum=wgs84 +units=d" input.tif output_wgs84.tif
the specification of the custom srs has an error that I've narrowed down to this component:

Code: Select all

+units=d
As a Post Script,

is there a way to accomplish the same workflow in the QGIS GUI/menus?

Thank you.

Re: Process imagery from UTM to WGS84

Posted: Thu Aug 27, 2020 12:25 pm
by ahuimanu
Hello, checking back in on this. The SDK example doesn't contain the correct command switches for up-to-date versions of the gdal tools.