Opened 10 years ago

Closed 10 years ago

#4973 closed defect (fixed)

arguement detection

Reported by: terryrankine Owned by: warmerdam
Priority: lowest Milestone: 1.10.0
Component: Utilities Version: 1.9.2
Severity: trivial Keywords: args, command line


I miss-spelt an arguement - GDAL did not provide a useful error. -dstnodata vs -dstnodat

-bash-3.2$ gdalwarp -of ERS -s_srs "+proj=latlong +datum=GDA94" -t_srs "+proj=latlong +datum=WGS84" -r cubic /projects/r17/GA/GSWA_P1236_Charnley_ppmug.ers /projects/p36/GA/GSWA_P1236_Charnley_ppmug.warp.ers -dstnodat -99999 Usage: 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] [-tr xres yres] [-tap] [-ts width height] [-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] srcfile* dstfile

Available resampling methods:

near (default), bilinear, cubic, cubicspline, lanczos.

Change History (4)

comment:1 by Even Rouault, 10 years ago

Resolution: wontfix
Status: newclosed

No command line utilities that I'm aware of can detect that the intent was -dstnodata when you trype -dstnodat. That's life...

comment:2 by terryrankine, 10 years ago


how about argument '-dstnodat' not found?

comment:3 by Even Rouault, 10 years ago

Resolution: wontfix
Status: closedreopened

ah ok, I believed that you wished some GDAL'isense...

comment:4 by Even Rouault, 10 years ago

Component: defaultUtilities
Milestone: 1.10.0
Resolution: fixed
Status: reopenedclosed

r25582 "GDAL/OGR C/C++ utilities: make usage message more self-explanatory in case of bad option (#4973)"

Note: See TracTickets for help on using tickets.