Ticket #1174 (closed enhancement: fixed)
[raster] C-level index-to-geocoordinate functions
|Reported by:||bnordgren||Owned by:||pracine|
Primarily, this patch adds a geocoordinate-to-index function for raster at the C level.
The attached patch changes the internal structure of rt_raster such that it stores forward and reverse affine transformations between pixel index coordinates and geospatial coordinates. The inverse transform is also stored in "struct rt_raster_t" and is automatically recomputed when the accessors are used to change the affine transform parameters. Tidied up the code in rt_api.c to ensure it uses accessors.
The serialized structure is left unchanged, but it is no longer possible to memcpy between struct rt_raster_t and struct rt_raster_serialized_t.
All tests pass. Patch applies against r7789