Process imagery from UTM to WGS84

ahuimanu
Posts: 76
Joined: Mon Dec 17, 2012 5:45 am

Process imagery from UTM to WGS84

Postby ahuimanu » Thu Jun 25, 2020 12:54 am

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.

ahuimanu
Posts: 76
Joined: Mon Dec 17, 2012 5:45 am

Re: Process imagery from UTM to WGS84

Postby ahuimanu » Thu Aug 27, 2020 12:25 pm

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.


Return to “Software Development Kit (SDK) Questions”

Who is online

Users browsing this forum: No registered users and 18 guests