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 , 11 years ago
Cc: | added |
---|
comment:2 by , 11 years ago
Version: | 1.9.2 → unspecified |
---|
comment:3 by , 11 years ago
comment:4 by , 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 , 11 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
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.