[Gdal-dev] ERROR 6: Failed to initialize PROJ.4 with ...

Helmut Kudrnovsky hellik at web.de
Wed Jul 4 17:33:35 EDT 2007


hi,

i've tried to warp a geotiff with the following command by the mean of gdal of the FWtools1.3.4 on a win-xp-machine:

C:\data_rev\rect>gdalwarp -of GTiff -s_srs Austria_GK_MGI_M31.prj -t_srs dhdn_zone3.prj teil2_gw_gk31.tif teil2_gw_dhdnz3.tif

where Austria_GK_MGI_M31.prj is:

PROJCS["Austria_MGI_M31",GEOGCS["GCS_MGI",DATUM["D_MGI",SPHEROID["Bessel_1841",6377397.155,299.1528128],TOWGS84[577.326,90.129,463.919,5.137,1.474,5.297,2.4232]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",-5000000.0],PARAMETER["Central_Meridian",13.33333333333333],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

and dhdn_zone3.prj is :

PROJCS["DHDN_3_Degree_Gauss_Zone_3",GEOGCS["GCS_Deutsches_Hauptdreiecksnetz",DATUM["D_Deutsches_Hauptdreiecksnetz",SPHEROID["Bessel_1841",6377397.155,299.1528128],TOWGS84[598.1,73.7,418.2,0.202,0.045,-2.455,6.7]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Gauss_Kruger"],PARAMETER["False_Easting",3500000.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",9.0],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]

and the following error message comes up:

ERROR 6: Failed to initialize PROJ.4 with `+ellps=bessel +towgs84=598.1,73.7,418.2,0.202,0.045,-2.455,6.7 +units=m +no_defs '.
Creating output file that is 3643P x 3885L.
Processing input file teil2_gw_gk31.tif.
ERROR 6: Failed to initialize PROJ.4 with `+ellps=bessel +towgs84=598.1,73.7,418.2,0.202,0.045,-2.455,6.7 +units=m +no_defs '.
:0...10...20...30...40...50...60...70...80...90...100 - done.

what does this error message "ERROR 6: Failed to initialize PROJ.4..." mean?  i've got the TOWGS84 parameters for source (epsg-code: 1618, MGI to WGS 84-3) and target (epsg-code: 1777, DHDN to WGS 84-2)  from the epsg-database

best regards an thanks in advance
helli


gdalinfo teil2_gw_gk31.tif:

Driver: GTiff/GeoTIFF
Files: teil2_gw_gk31.tif
       teil2_gw_gk31.aux
       teil2_gw_gk31.rrd
Size is 3643, 3885
Coordinate System is:
PROJCS["Austria_MGI_M31",
    GEOGCS["GCS_MGI",
        DATUM["unknown",
            SPHEROID["unnamed",6377397.155,299.1528128000009]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433]],
    PROJECTION["Transverse_Mercator"],
    PARAMETER["latitude_of_origin",0],
    PARAMETER["central_meridian",13.33333333333333],
    PARAMETER["scale_factor",1],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",-5000000],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (-30199.836829051419000,309992.790323723110000)
Pixel Size = (1.500172774538732,-1.500172774538732)
Metadata:
  AREA_OR_POINT=Area
Corner Coordinates:
Upper Left  (  -30199.837,  309992.790) ( 12d55'44.97"E, 47d55'41.88"N)
Lower Left  (  -30199.837,  304164.619) ( 12d55'46.44"E, 47d52'33.16"N)
Upper Right (  -24734.707,  309992.790) ( 13d 0'8.27"E, 47d55'42.72"N)
Lower Right (  -24734.707,  304164.619) ( 13d 0'9.48"E, 47d52'34.00"N)
Center      (  -27467.272,  307078.705) ( 12d57'57.29"E, 47d54'7.96"N)
Band 1 Block=3643x2 Type=Byte, ColorInterp=Red
  Overviews: 911x972, 456x486, 228x243, 114x122, 57x61
Band 2 Block=3643x2 Type=Byte, ColorInterp=Green
  Overviews: 911x972, 456x486, 228x243, 114x122, 57x61
Band 3 Block=3643x2 Type=Byte, ColorInterp=Blue
  Overviews: 911x972, 456x486, 228x243, 114x122, 57x61
  
gdalinfo teil2_gw_dhdnz3.tif:
 
 Driver: GTiff/GeoTIFF
Files: teil2_gw_dhdnz3.tif
Size is 3643, 3885
Coordinate System is:
LOCAL_CS["DHDN_3_Degree_Gauss_Zone_3",
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (-30199.836829051419000,309992.790323723110000)
Pixel Size = (1.500172774538732,-1.500172774538732)
Metadata:
  AREA_OR_POINT=Area
Corner Coordinates:
Upper Left  (  -30199.837,  309992.790) 
Lower Left  (  -30199.837,  304164.619) 
Upper Right (  -24734.707,  309992.790) 
Lower Right (  -24734.707,  304164.619) 
Center      (  -27467.272,  307078.705) 
Band 1 Block=3643x2 Type=Byte, ColorInterp=Red
Band 2 Block=3643x2 Type=Byte, ColorInterp=Green
Band 3 Block=3643x2 Type=Byte, ColorInterp=Blue


_______________________________________________________________________
Jetzt neu! Schützen Sie Ihren PC mit McAfee und WEB.DE. 3 Monate
kostenlos testen. http://www.pc-sicherheit.web.de/startseite/?mc=022220





More information about the Gdal-dev mailing list