PostGIS
3.4.0dev-r@@SVN_REVISION@@
|
rt_errorstate rt_raster_geopoint_to_rasterpoint | ( | rt_raster | raster, |
double | xw, | ||
double | yw, | ||
double * | xr, | ||
double * | yr, | ||
double * | igt | ||
) |
Convert an xw,yw map point to a xr,yr raster point.
raster | : the raster to get info from |
xw | : X ordinate of the geographical point |
yw | : Y ordinate of the geographical point |
xr | : output parameter, the x ordinate in raster space |
yr | : output parameter, the y ordinate in raster space |
igt | : input/output parameter, inverse geotransform matrix |
Definition at line 852 of file rt_raster.c.
References ES_ERROR, ES_NONE, FLT_EQ, rtrowdump::raster, RASTER_DEBUGF, rt_raster_get_inverse_geotransform_matrix(), and rterror().
Referenced by RASTER_getPixelValueResample(), rt_raster_copy_to_geometry(), rt_raster_geopoint_to_cell(), and test_raster_get_pixel_bilinear().