[GRASS-dev] Difficulties on accessing a CELL type raster- C rotine

Pedro Roma pedroroma1982 at gmail.com
Tue Oct 19 06:58:20 EDT 2010


Greetings

I'm doing a GRASS Module (in C) that uses a training area (raster) and bands
from a group and it do some pixel checking for the training_area and sees if
the value shopuld be in that training area (some statistical analysis quite
easy to implement). But I'm having a lot of difficulties in "accessing" to
data in training_area raster. I have used i.maxlik to access to data in
group and in signature file (that I need) and r.example to access to
training map but I'm not getting it.

For pixels where my training_map is null(), according to map display pixel
query, if I print that value using: c = ((CELL *) inrast)[col]; I get
-2147483648 instead of null() or something.
Is this expected?

Thanks

Best regards
Pedro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20101019/57f063be/attachment.html


More information about the grass-dev mailing list