Skip to main content
Post Closed as "Not suitable for this site" by Andre Silva, nmtoken, Jochen Schwarze, xunilk, LaughU
Fixed spelling error in title; added 'resampling' tag
Link

gdalwarp won't run with "cubic" resamlingresampling method

deleted 38 characters in body
Source Link
PolyGeo
  • 65.4k
  • 29
  • 114
  • 345

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.

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.

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?

edited body
Source Link
marco
  • 1.1k
  • 3
  • 15
  • 27

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: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.

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.

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.

Source Link
marco
  • 1.1k
  • 3
  • 15
  • 27
Loading