Opened 11 years ago

Closed 11 years ago

#5064 closed defect (invalid)

gdal.ReprojectImage does not accept gdal.GRA_Average and gdal.GRA_Mode

Reported by: matthiass Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: gdalwarp, ReprojectImage, eResampleAlg, GRA_Average
Cc: antonio

Description

I need to reproject an image to a lower resolution using the Average algorithm. I was using this command. gdal.ReprojectImage(srcDS, outds,None, None, gdal.GRA_Average)

While for the GDALResampleAlg these enummerators work: GRA_NearestNeighbour GRA_Bilinear GRA_Cubic GRA_CubicSpline GRA_Lanczos

These two do not: GRA_Average GRA_Mode

Or do i have to script this with gdalwarp?

Btw: it would be very convenient to have an argument for ReprojectImage/Gdalwarp to simply indicate the target resolution. Like: -res i where i is in meters

Change History (5)

comment:1 by antonio, 11 years ago

Cc: antonio added

comment:2 by matthiass, 11 years ago

Version: 1.9.2unspecified

comment:3 by Even Rouault, 11 years ago

Do you use a GDAL 1.10 release candidate or a 1.9.X version ? GRA_Average and GRA_Mode have been introduced just 2 or 3 weeks ago in the 1.10 developement.

comment:4 by matthiass, 11 years ago

I am using 1.9.2:

gdal.VersionInfo() '1920'

Have I then stumbled over some never documentation then my version?

comment:5 by Even Rouault, 11 years ago

Resolution: invalid
Status: newclosed

The documentation on gdal.org is up to date with the latest development version, so it might contain new features you have not in a past version.

Note: See TracTickets for help on using tickets.