Re: [gdal-dev] gdalwarp: question about methods implemented when source grid is denser than target.

2023-05-25 Thread Even Rouault
Hi, to briefly answer your question, for the methods bilinear, cubic, cubicspline and lanczos who have nominal kernel radius of respective values 1, 2, 2 and 3 (and thus a diameter double that size), the radius is extended by a factor source_size / dest_size to take into account the downsampl

[gdal-dev] gdalwarp: question about methods implemented when source grid is denser than target.

2023-05-24 Thread Ramiro Espada Guerrero
Hi, I would like to know if gdalwarp does any "average" regriding when the source grid is denser than the target grid regardless of the chosen method for the interpolation. And if there is any document where I can follow exactly the calculations. I tried to follow the code on github but it is pret

Re: [gdal-dev] gdalwarp question - probably pretty simple

2012-11-23 Thread Etienne Tourigny
I think only one alpha band is supported? On Fri, Nov 23, 2012 at 2:08 PM, David Strip wrote: > On 11/22/2012 10:40 PM, David Strip wrote: >> >> I've got a geotiff which gdalinfo reports as 2 bands, with band 2 >> interpreted as alpha. The projection is Maryland State Plane. The color >> table is

Re: [gdal-dev] gdalwarp question - probably pretty simple

2012-11-23 Thread David Strip
On 11/22/2012 10:40 PM, David Strip wrote: I've got a geotiff which gdalinfo reports as 2 bands, with band 2 interpreted as alpha. The projection is Maryland State Plane. The color table is paletted, with NO_DATA = 0 I can view this file in OpenEV with no problem I call gdalwarp -t "WGS84"

[gdal-dev] gdalwarp question - probably pretty simple

2012-11-22 Thread David Strip
I've got a geotiff which gdalinfo reports as 2 bands, with band 2 interpreted as alpha. The projection is Maryland State Plane. The color table is paletted, with NO_DATA = 0 I can view this file in OpenEV with no problem I call gdalwarp -t "WGS84" input.tif output.tif When I open the resulti

Re: [gdal-dev] gdalwarp question

2012-05-16 Thread Kyle Shannon
Billy, Yes, gdalwarp will use the srs from the file if one is not specified, providing it is valid. kss On Wed, May 16, 2012 at 8:13 AM, Billy Newman wrote: > If I do not provide a source spatial reference to gdalwarp will the > information in the geotiff be used instead? ie. gdalwarp -t_srs >

[gdal-dev] gdalwarp question

2012-05-16 Thread Billy Newman
If I do not provide a source spatial reference to gdalwarp will the information in the geotiff be used instead? ie. gdalwarp -t_srs 'EPSG:4326' input.tif output.tif? I do not have a real example because I do not have the file I am working with on this computer. But an example gdalinfo would be: