NAME
RgetCoords - compute true world co-ordinate of a pixel
SYNOPSIS
#include "csf.h"
int RgetCoords
(
const MAP *m,
int inCellPos,
size_t row,
size_t col,
double *x,
double *y
);
PARAMETERS
-
const MAP *m
-
map handle
-
int inCellPos
-
nonzero if you want the co-ordinate
at the centre of the cell, 0 if you
want the upper left co-ordinate of the cell
-
size_t row
-
Row number (relates to y position).
-
size_t col
-
Column number (relates to x position).
-
double *x
-
write-only. Returns x of true co-ordinate
-
double *y
-
write-only. Returns y of true co-ordinate
DESCRIPTION
RrowCol2Coords computes the true world co-ordinate from a
row, column index.
The row, column co-ordinate
don't have to be on the map. They are just relative to upper left position.
For example (row,col) = (-1,0) computes the (x,y) co-ordinate 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
RasterRowCol2Coords
,
RrowCol2Coords