Definition at line 45 of file rt_spatial_relationship.c.
References ES_ERROR, ES_NONE, FLT_EQ, FLT_NEQ, rt_raster_t::ipX, rt_raster_t::ipY, RASTER_DEBUGF, rt_raster_cell_to_geopoint(), rt_raster_geopoint_to_cell(), rt_raster_get_srid(), rterror(), rt_raster_t::scaleX, rt_raster_t::scaleY, rt_raster_t::skewX, and rt_raster_t::skewY.
Referenced by diff_rastinfo(), RASTER_addBandOutDB(), RASTER_mapAlgebra2(), RASTER_notSameAlignmentReason(), RASTER_sameAlignment(), rt_band_load_offline_data(), rt_raster_from_two_rasters(), rt_raster_iterator(), and test_raster_same_alignment().
56 assert(NULL != rast1);
57 assert(NULL != rast2);
58 assert(NULL != aligned);
63 if (reason != NULL) *reason =
"The rasters have different SRIDs";
68 if (reason != NULL) *reason =
"The rasters have different scales on the X axis";
72 if (reason != NULL) *reason =
"The rasters have different scales on the Y axis";
77 if (reason != NULL) *reason =
"The rasters have different skews on the X axis";
81 if (reason != NULL) *reason =
"The rasters have different skews on the Y axis";
97 rterror(
"rt_raster_same_alignment: Could not get raster coordinates of second raster from first raster's spatial coordinates");
109 rterror(
"rt_raster_same_alignment: Could not get spatial coordinates of second raster from raster coordinates");
120 if (reason != NULL) *reason =
"The rasters are aligned";
126 if (reason != NULL) *reason =
"The rasters (pixel corner coordinates) are not aligned";
void rterror(const char *fmt,...)
Wrappers used for reporting errors and info.
rt_errorstate rt_raster_cell_to_geopoint(rt_raster raster, double xr, double yr, double *xw, double *yw, double *gt)
Convert an xr, yr raster point to an xw, yw point on map.
#define RASTER_DEBUGF(level, msg,...)
int32_t rt_raster_get_srid(rt_raster raster)
Get raster's SRID.
rt_errorstate rt_raster_geopoint_to_cell(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.