I'm trying to make a GeoTIFF using
geotifcp, which I'll then upload to GeoServer.
I've got an image overlay (part of a
.kml) in Google Earth, so I tried to use its bounding box to create a world file, which I could then feed to
In GeoServer, I've set the declared coordinate reference system to
EPGS:4326, which I understand to match Google Earth. To upload the GeoTIFF to GeoServer, though, I need to also specify the native coordinate reference system of the GeoTIFF, which I should be able to do with
geotifcp using a proj4 string.
From here, I got the proj4 string that should match Google Earth:
+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 +no_defs
But when I use that with
geotifcp -e image.tfw -4 "+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" image.tif geotiff_image.tif
it returns this error:
mode=w Failure in GTIFSetFromProj4
What am I doing wrong?