TransWikia.com

Reprojecting GeoTIFF from WGS84 to UTM with gdalwarp?

Geographic Information Systems Asked by FrancisLi on December 24, 2020

I have a GeoTIFF image in WGS84 and when I try with gdalwarp to reproject to UTM, it has a problem.

Size of TIFF is J: 15769, W: 60027

J_LeftTop:2.0705046510  W_LeftTop:0.4974727391;
J_RightTop:2.0702337994 W_RightTop:0.4996621899;
J_LeftBottom:2.0760866619    W_LeftBottom:0.4980068600;
J_RightBottom:2.0758219229 W_RightBottom:0.5002002912;
J_CNT:2.0731617464 W_CNT:0.4988380007

When I try:

gdalwarp -t_srs '+proj=utm +zone=12 +datum=WGS84 +units=m +no_defs' test.tif test_utm1.tif

ERROR 1: Too many points (10201 out of 10201) failed to transform,
unable to compute output bounds.

What should I do differently?

2 Answers

Trhough formula :ZoneNumber = floor((LongTemp + 180)/6) + 1 I calculate zone for the point.Then I got the right ZoneNumber.

Answered by FrancisLi on December 24, 2020

Have you tried to add the s_srs parameter? Input epsg is 4326 but perhaps the geotiff CRS definition is not the standard expected from GDAL.

Moreover are you sure about the t_srs parameter? Are your data on UTM12N zone?

Answered by Roberto Marzocchi on December 24, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP