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

Gane R gane.prog at gmail.com
Thu Oct 1 00:31:33 PDT 2015


Hi,

https://drive.google.com/file/d/0B4shTM1bPS5TZ3psWTFpU1ZuV2c/view?usp=sharing

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 ?, gdalinfo of this file follows

gdalinfo file04.pdf

Projection: PROJCS["unnamed",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS
84
",6378137,298.257223563,AUTHORITY["EPSG","7030"]],TOWGS84[0,0,0,0,0,0,0],AUTHORI
TY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",
0.0174532925199433,AUTHORITY["EPSG","9108"]],AUTHORITY["EPSG","4326"]],PROJECTIO
N["Mercator_1SP"],PARAMETER["central_meridian",0],PARAMETER["scale_factor",0],PA
RAMETER["false_easting",0],PARAMETER["false_northing",0],UNIT["Meter",1]]
  RasterCount: 3
  RasterSize (5388,3341)
Using driver Geospatial PDF
  Metadata:
    0:  AUTHOR=anonymous
    1:  CREATION_DATE=D:20150626141600Z
    2:  NEATLINE=POLYGON ((-9778005.7471570373
5257640.588139087,-9778432.250753
6598 5258664.8154589375,-9776778.2288263608
5259347.8824177133,-9776351.72522973
83 5258323.6550978627,-9778005.7471570373 5257640.588139087))
    3:  PRODUCER=

Corner Coordinates:
  Upper Left (-9778858.754336, 5259689.04274448)
  Lower Left (-9778432.25075366, 5258664.81545894)
  Upper Right (-9777204.73240246, 5260372.10970584)
  Lower Right (-9776778.22882012, 5259347.88242029)
  Center (-9777818.55540679, 5259518.61586393)

Coordinate System is:
PROJCS["unnamed",
    GEOGCS["WGS 84",
        DATUM["WGS_1984",
            SPHEROID["WGS 84",6378137,298.257223563,
                AUTHORITY["EPSG","7030"]],
            TOWGS84[0,0,0,0,0,0,0],
            AUTHORITY["EPSG","6326"]],
        PRIMEM["Greenwich",0,
            AUTHORITY["EPSG","8901"]],
        UNIT["degree",0.0174532925199433,
            AUTHORITY["EPSG","9108"]],
        AUTHORITY["EPSG","4326"]],
    PROJECTION["Mercator_1SP"],
    PARAMETER["central_meridian",0],
    PARAMETER["scale_factor",0],
    PARAMETER["false_easting",0],
    PARAMETER["false_northing",0],
    UNIT["Meter",1]]
Band 1 :
   DataType: Byte
   ColorInterpretation: Red
   Description:
   Size (5388,3341)
   BlockSize (5388,1)
   Offset: 0
   Scale: 1
Band 2 :
   DataType: Byte
   ColorInterpretation: Green
   Description:
   Size (5388,3341)
   BlockSize (5388,1)
   Offset: 0
   Scale: 1
Band 3 :
   DataType: Byte
   ColorInterpretation: Blue
   Description:
   Size (5388,3341)
   BlockSize (5388,1)
   Offset: 0
   Scale: 1

Gane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20151001/8b167da3/attachment.html>


More information about the gdal-dev mailing list