[GRASS-user] problem with Rast_get_x_value functions

Jarek Jasiewicz jarekj at amu.edu.pl
Sun Jul 18 09:47:02 EDT 2010


Thanks Glynn
> You cannot dereference a "void*", nor perform arithmetic on one.
>
> If you want to access the map as an array of FCELL values, use
> Rast_allocate_f_buf() and Rast_get_f_row(). There is no point in using
> the map's native type if you're just going to convert the data anyhow.
>   
The problem was how to write warper function to read and convert data 
from any type to any type
it is alrady done, I didn't know I must use (c*size) to instead of c 
passing pointer to function

thanks a lot
Jarek


>
>   



More information about the grass-user mailing list