[GRASS5] r.in.gdal - precision problem in lib/gis/adj_cellhd.c
Radim Blazek
blazek at itc.it
Thu Apr 7 02:59:17 EDT 2005
Brad Douglas wrote:
> On Wed, 2005-04-06 at 15:23 +0200, Markus Neteler wrote:
>
>>How can I convince lib/gis/adj_cellhd.c to work as desired?
>>The comparison is currently:
>>
>> if (cellhd->north > 90.0)
>> return (_("Illegal latitude for North"));
>
>
> float north;
>
> sscanf(cellhd->north, "%.1f", &north);
> if (north > 90.0)
> return (_("Illegal latitude for North.\n"));
>
>
It can silently damage data. I am not in favour.
Radim
More information about the grass-dev
mailing list