Opened 15 years ago

Closed 15 years ago

#2733 closed defect (fixed)

gdalwarp cblend option does not work

Reported by: asgerpetersen Owned by: warmerdam
Priority: normal Milestone: 1.6.1
Component: Utilities Version: 1.6.0
Severity: normal Keywords: blend
Cc:

Description

Setting -cblend option in gdalwarp does not seem to have any effect.

It looks like the following code in gdalwarp.cpp

papszWarpOptions = 
     CSLSetNameValue( papszWarpOptions, "BLEND_DIST", argv[++i] );

does not match this code in gdalwarpoperation.cpp

const char *pszBD = CSLFetchNameValue( psOptions->papszWarpOptions,
                                       "CUTLINE_BLEND_DIST" );

Change History (2)

comment:1 by asgerpetersen, 15 years ago

Ok, I think I found a workaround for now. The blend distance warp option can also be set with the -wo option like this:

gdalwarp -cutline cutline.shp -cl cutline -wo "CUTLINE_BLEND_DIST=2" grd2.asc grd1.tif

comment:2 by warmerdam, 15 years ago

Keywords: blend added
Milestone: 1.6.1
Resolution: fixed
Status: newclosed
Version: unspecified1.6.0

Corrected in trunk (r15938) and 1.6 (r15939), though I haven't tested the change.

Thanks!

Note: See TracTickets for help on using tickets.