[GRASS-dev] Rast3d_location2coord inconsistent behavior

Anna Petrášová kratochanna at gmail.com
Sat Jul 19 10:04:50 PDT 2014


I have a question about Rast3d_location2coord [1]. It is casting the col,
row, depth values to integer like this:

(int) col

instead of using


as a result, col = 0.1 => col = 0 and col = -0.1 => col = 0, which doesn't
seem correct to me. Any opinions?

Thanks, Anna

BTW, similar function Rast_northing_to_row from raster library returns

[1] http://grass.osgeo.org/programming7/region_8c_source.html#l00291
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140719/aada5a14/attachment.html>

More information about the grass-dev mailing list