NAME
RasterRowCol2Coords - compute true world co-ordinate from row, column index
SYNOPSIS
#include "csf.h"
void RasterRowCol2Coords
(
const CSF_RASTER_LOCATION_ATTRIBUTES *m,
double row,
double col,
double *x,
double *y
);
PARAMETERS
-
const CSF_RASTER_LOCATION_ATTRIBUTES *m
-
raster 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
RrowCol2Coords 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.
SEE ALSO
RgetCoords
,
RrowCol2Coords