NAME
RrowCol2Coords - compute true world co-ordinate from row, column index
SYNOPSIS
#include "csf.h"
int RrowCol2Coords
(
const MAP *m,
double row,
double col,
double *x,
double *y
);
PARAMETERS
-
const MAP *m
-
map handle
-
double row
-
Row number (relates to y position).
-
double col
-
Column number (relates to x position).
-
double *x
-
write-only. x co-ordinate
-
double *y
-
write-only. y co-ordinate
DESCRIPTION
RasterRowCol2Coords computes the true world co-ordinate from a
row, column index. The row,column co-ordinate can be fractions.
For example (row,col) = (0.5,0.5) computes the (x,y) co-ordinate of
the centre of the upper left pixel. Secondly, the row and column co-ordinate
don't have to be on the map. They are just relative to upper left position.
For example (row,col) = (-0.5,0.5) computes the (x,y) co-ordinate of
the centre of the pixel that is right above upper left pixel.
RETURNS
0 if the co-ordinate is outside the map.
1 if inside.
-1 in case of an error.
MERRNO
ILL_CELLSIZE
SEE ALSO
RgetCoords
,
RasterRowCol2Coords