[Gdal-dev] Transformation from UTM32 WGS84 (EPSG:32632) to latlong (EPSG:4326)

shortyII sschantz at bfs.de
Thu Aug 9 11:14:16 EDT 2007


Hello,
it my first time using gdalwarp for transformation a GTIFF UTM32 WGS84
(EPSG:32632) to latlong (EPSG:4326). I read a lot and tried it several times
with different parameters, but it still doesn't work:

here the info from gdalinfo form my sourcefile
Driver: GTiff/GeoTIFF
Files: l0.tif
Size is 21354, 28920
Coordinate System is:
LOCAL_CS["unnamed",
    UNIT["unknown",1]]
Origin = (32270953.125000000000000,6114921.875000000000000)
Pixel Size = (31.250000000000000,-31.250000000000000)
Metadata:
  TIFFTAG_XRESOLUTION=320
  TIFFTAG_YRESOLUTION=320
  TIFFTAG_RESOLUTIONUNIT=3 (pixels/cm)
Image Structure Metadata:
  COMPRESSION=LZW
Corner Coordinates:
Upper Left  (32270953.125, 6114921.875)
Lower Left  (32270953.125, 5211171.875)
Upper Right (32938265.625, 6114921.875)
Lower Right (32938265.625, 5211171.875)
Center      (32604609.375, 5663046.875)
Band 1 Block=21354x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)...

1st try:
gdalwarp -s_srs EPSG:32632 -t_srs EPSG:4326 -srcnodata "-9999" l0.tif
l0_geo.tif
Copying color table from l0.tif to new file.
Creating output file that is 1P x 47502L.
Processing input file l0.tif.
ERROR 1: Too many points (441 out of 441) failed to transform,
unable to compute output bounds.
100 - done.

2nd try:
E:\Stefan\Test>gdalwarp -t_srs "EPSG:4326" -srcnodata "-9999" -co "TFW=YES"
-co "COMPRESS=LZW" l0.tif l0_geo.tif
Copying color table from l0.tif to new file.
ERROR 1: No PROJ.4 translation for source SRS, coordinate
transformation initialization has failed.
Creating output file that is 21354P x 28920L.
Processing input file l0.tif.
ERROR 1: No PROJ.4 translation for source SRS, coordinate
transformation initialization has failed.
:0...10...20...30...40...50...60...70...80...90...100 - done.

The result was:
gdalinfo l0_geo.tif

Driver: GTiff/GeoTIFF
Files: l0_geo.tif
Size is 21354, 28920
Coordinate System is:
GEOGCS["WGS 84",
    DATUM["WGS_1984",
        SPHEROID["WGS 84",6378137,298.2572235630016,
            AUTHORITY["EPSG","7030"]],
        AUTHORITY["EPSG","6326"]],
    PRIMEM["Greenwich",0],
    UNIT["degree",0.0174532925199433],
    AUTHORITY["EPSG","4326"]]
Origin = (32270953.125000000000000,6114921.875000000000000)
Pixel Size = (31.249999999999996,-31.249999999999996)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  COMPRESSION=LZW
Corner Coordinates:
Upper Left  (32270953.125, 6114921.875) (32270953d 7'115964117022.00"E,
6114921d52'21474836510.00"N)
Lower Left  (32270953.125, 5211171.875) (32270953d 7'115964117022.00"E,
5211171d52'17179869214.00"N)
Upper Right (32938265.625, 6114921.875) (32938265d37'120259084318.00"E,
6114921d52'21474836510.00"N)
Lower Right (32938265.625, 5211171.875) (32938265d37'120259084318.00"E,
5211171d52'17179869214.00"N)
Center      (32604609.375, 5663046.875)
(32604609d22'115964117022.00"E,5663046d52'21474836510.00"N)
Band 1 Block=21354x1 Type=Byte, ColorInterp=Palette
  Color Table (RGB with 256 entries)

The issue is now, that the coordinates are false??

Could anybody help me??? Thanks!
-- 
View this message in context: http://www.nabble.com/Transformation-from-UTM32-WGS84-%28EPSG%3A32632%29-to-latlong-%28EPSG%3A4326%29-tf4241391.html#a12068685
Sent from the GDAL - Dev mailing list archive at Nabble.com.




More information about the Gdal-dev mailing list