I am having an issue with running the gdalwarp command from command prompt. Basically I have a raster WGS84 file, which I would like to reproject to spatial reference which is using the Azimuthal Equidistant projection, but with "cubic" resampling method. This is the syntax that I am using:
"C:/gdalwin32-1.4.1/bin/gdalwarp.exe" -s_srs EPSG:4326 -t_srs "+proj=aeqd +datum=WGS84 +lat_0=40.81266 +lon_0=14.414252" -r cubic -of GTiff "C:/vesuvius_wgs84.tif" "C:/vesuvius_cubic_aeqd.tif"
(40.81266, 14.414252 is the center of the raster)
For some reason when I press "Enter", the vesuvius_cubic_aeqd.tif file is not created, but instead I get the following text printed on my command prompt:
gdalwarp [--help-general] [--formats]
[-s_srs srs_def] [-t_srs srs_def] [-to "NAME=VALUE"]
[-order n | -tps | -rpc | -geoloc] [-et err_threshold]
[-refine_gcps tolerance [minimum_gcps]]
[-te xmin ymin xmax ymax] [-te_srs srs_def]
[-tr xres yres] [-tap] [-ts width height]
[-ovr level|AUTO|AUTO-n|NONE] [-wo "NAME=VALUE"] [-ot Byte/Int16/...] [-wt Byte/Int16]
[-srcnodata "value [value...]"] [-dstnodata "value [value...]"] -dstalpha
[-r resampling_method] [-wm memory_in_mb] [-multi] [-q]
[-cutline datasource] [-cl layer] [-cwhere expression]
[-csql statement] [-cblend dist_in_pixels] [-crop_to_cutline]
[-of format] [-co "NAME=VALUE"]* [-overwrite]
[-nomd] [-cvmd meta_conflict_value] [-setci] [-oo NAME=VALUE]*
[-doo NAME=VALUE]*
srcfile* dstfile
What is the problem?
Interestingly, if I remove the "-r cubic" part like so:
"C:/gdalwin32-1.4.1/bin/gdalwarp.exe" -s_srs EPSG:4326 -t_srs "+proj=aeqd +datum=WGS84 +lat_0=40.81266 +lon_0=14.414252" -of GTiff "C:/vesuvius_wgs84.tif" "C:/vesuvius_cubic_aeqd.tif"
everything works correctly, and vesuvius_cubic_aeqd.tif file is created. To make it more strange, I tried replacing the "-r cubic" with "-r bilinear" or "-r average", but again neither of these worked. I also tried, removing the "-of GTiff", and that did not work either.
What am I doing wrong in the upper gdalwarp command syntax?
Thank you for the help in advance.