This commit adds a `PC_Transform` function that returns a new patch with its data transformed based on the passed `pcid`.
In contrast to `PC_SetPCId` this function may reinterpret the data if dimension interpretations, scales or offsets are different in the new schema. In the future `PC_Transform` will also re-project the patch data if the schema `srid` has changed, but that is not yet supported.
replaces `int32_t x_position` with `PCDIMENSION *xdim` (and similarly for y,z,m) in PCSCHEMA to get a direct access to the corresponding dimension
-> code readability improvement by discarding the `-1` constant and maybe slight expected performance increase of get/set functions
replaces `int32_t x_position` with `PCDIMENSION *xdim` (and similarly for y,z,m) in PCSCHEMA to get a direct access to the corresponding dimension
-> code readability improvement by discarding the `-1` constant and maybe slight expected performance increase of get/set functions
In CUnit 2.1-2 and before the CU_SuiteInfo structure looks like this:
typedef struct CU_SuiteInfo {
const char *pName;
CU_InitializeFunc pInitFunc;
CU_CleanupFunc pCleanupFunc;
CU_TestInfo *pTests;
} CU_SuiteInfo;
In CUnit 2.1-3 it looks like this:
typedef struct CU_SuiteInfo {
const char *pName;
CU_InitializeFunc pInitFunc;
CU_CleanupFunc pCleanupFunc;
CU_SetUpFunc pSetUpFunc;
CU_TearDownFunc pTearDownFunc;
CU_TestInfo *pTests;
} CU_SuiteInfo;
This commit changes the test code so it works with both CUnit 2.1-2 and CUnit
2.1-3.