If I use gdalwarp to convert a simple ArcInfo ASCII grid with a compound projection (Geographic horizontal/meters vertical) to a GeoTIFF, I get an error message. Here's the input raster (asc_h84deg_vm.asc):
ncols 2
nrows 2
xllcorner -112
yllcorner 38
cellsize 1
nodata_value -999
78 -999
-999 -999
Here's the input projection (asc_h84deg_vm.prj):
COMPD_CS["WGS_1984,NAVD88",GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AXIS["Latitude",NORTH],AXIS["Longitude",EAST],AUTHORITY["EPSG","4326"]],VERT_CS["National Geodetic Vertical Datum of 1929",VERT_DATUM["North American Vertical Datum 1988",2005,AUTHORITY["EPSG","5103"]],UNIT["m",1.0],AXIS["Gravity-related height",UP],AUTHORITY["EPSG","5703"]]]
I use the following gdalwarp command:
gdalwarp -of GTiff -ts 2 2 asc_h84deg_vm.asc -overwrite asc_h84deg_vm_exported.tif -ot Float32
ERROR 1: Too many points (441 out of 441) failed to transform, unable to compute output bounds.
Note that if I use gdal_translate to convert the ASCII grid, it succeeds:
gdal_translate -of GTiff -outsize 2 2 asc_h84deg_vm.asc asc_h84deg_vm_exported.tif -ot Float32
Input file size is 2, 2
0...10...20...30...40...50...60...70...80...90...100 - done.
I have tried gdalwarp with other compound projections where the horizontal projection is a projected coordinate system instead of a geographic and it works fine.
Any ideas how to get gdalwarp to work with a compound projection where the horizontal part is a geographic projection? Note that reprojection works fine if I try to do a gdaltransform operation on some coordinates that are within the range of my raster:
gdaltransform -s_srs asc_h84deg_vm.prj -t_srs EPSG:32612+5702
Enter X Y [Z [T]] values separated by space, and press Return.
-113 38 87
324396.629208543 4207702.36747255 285.4325