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

Mateusz Loskot mateusz at loskot.net
Thu Jul 5 00:52:52 EDT 2007


Helmut Kudrnovsky wrote:
> 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?

It usually means the SRS is unknown or parameters are invalid.

> 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

Could you try to use EPSG codes directly instead of definitions
from .prj files?

Please, check if following command works for you:

gdalwarp -of GTiff -s_srs EPSG:4312 -t_srs EPSG:4314 teil2_gw_gk31.tif
teil2_gw_dhdnz3.tif

where 4312 is EPSG code of MGI and 4314 of DHDN.

Cheers
-- 
Mateusz Loskot
http://mateusz.loskot.net



More information about the Gdal-dev mailing list