[gdal-dev] gdalbuilvrt problem
Even Rouault
even.rouault at mines-paris.org
Wed Oct 21 12:43:53 EDT 2009
Selon Fabrice LALLAURET - PSV <fabrice.lallauret at external.thalesgroup.com>:
> I try to use gdalbuilvrt with images having different resolutions. I
> use it with argument -resolution highest and I find (I think) a bug.
>
> The highest resolution is set with these lines of code in gdalbuildvrt.cpp :
>
> else if (resolutionStrategy == HIGHEST_RESOLUTION)
> {
> we_res = MIN(we_res,
> psDatasetProperties[i].adfGeoTransform[GEOTRSFRM_WE_RES]);
> ns_res = MIN(ns_res,
> psDatasetProperties[i].adfGeoTransform[GEOTRSFRM_NS_RES]);
> }
> and MIN macro if define as :
>
> ../port/cpl_port.h:# define MIN(a,b) ((a<b) ? a : b)
>
> But if resolution is negative MIN(-15,-1) is -15 not -1. I am right ?
Good catch. Fixed by ticket http://trac.osgeo.org/gdal/ticket/3198
>
> Regards
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list