[GRASS-dev] G_get_raster_sample(): request outside region

Florian Kindl Florian.Kindl at uibk.ac.at
Fri Jul 14 05:28:05 EDT 2006


Hello list!

I try to obtain the cell values of a raster map at the location of certain 
nodes of a vector map:

+++
struct Cell_head window;
G_get_window(&window);

...

Vect_get_node_coor( In, node, &x, &y, NULL );
z = G_get_raster_sample( fdrast, &window, NULL, x, y, 0, method );
+++

Running this code gives the following message:
WARNING: [rugg_dtmgrd in c716322] - read request for row 311730 is outside region
ERROR: problem reading raster cell file

Are the coordinates returned by Vect_get_node_coor() a valid argument for 
G_get_raster_sample() ?
Is my use of G_get_window() OK?

Any comment is welcome,
thanks,
Flo.


-- 
Florian Kindl
Institute of Geography
University of Innsbruck











More information about the grass-dev mailing list