[gdal-dev] gdalwarp fails to warp for this GeoPDF

Even Rouault even.rouault at spatialys.com
Thu Oct 1 01:42:36 PDT 2015


Le jeudi 01 octobre 2015 09:31:33, Gane R a écrit :
> Hi,
> 
> https://drive.google.com/file/d/0B4shTM1bPS5TZ3psWTFpU1ZuV2c/view?usp=shari
> ng
> 
> gdalwarp -t_srs EPSG:3857 "file04.pdf" "file04.tif"
> 
> ERROR 6: Failed to initialize PROJ.4 with `+proj=merc +lon_0=0 +k=0 +x_0=0
> +y_0=
> 0 +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs '.
> k <= 0
> 
> Is this due to PDF driver ?, 

I don't think so. Looks like an issue with your GDAL and/or proj.4 install.
The proj.4 string for EPSG:3857 reported above is wrong. It should be (as reported by gdalsrsinfo "EPSG:3857"):

+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +wktext  +no_defs

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com


More information about the gdal-dev mailing list