[GRASS5] r.in.gdal - precision problem in lib/gis/adj_cellhd.c

Brad Douglas rez at touchofmadness.com
Wed Apr 6 12:02:53 EDT 2005


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"));


-- 
Brad Douglas <rez at touchofmadness.com>




More information about the grass-dev mailing list