22 Commits

Author SHA1 Message Date
Blottiere Paul
7b431437f2 Allman brackets 2022-02-08 09:14:32 +01:00
Blottiere Paul
1cef6c78a5 Custom llvm style 2022-02-08 09:10:45 +01:00
Blottiere Paul
428ca78fb3 clang-format 2 2022-02-07 17:11:31 +01:00
Éric Lemoine
d552002187 Add PC_Transform
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.
2017-04-26 16:46:40 +02:00
Mathieu Brédif
4088121eeb dim pointers instead of positions in PCSCHEMA
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
2017-04-01 10:03:25 +02:00
Éric Lemoine
4ba2fe6d8f Revert "testing : pcpoint_get/set and pc_point_to_geometry_wkb" 2017-03-30 10:15:50 +02:00
Mathieu Brédif
081d210f13 dim pointers instead of positions in PCSCHEMA
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
2017-03-21 13:58:25 +01:00
Mathieu Brédif
3b8f165b35 PCSCHEMA *pc_schema_from_xml(const char *)
consistent return of pc_schema_from_xml : NULL on failure
2017-03-17 12:14:02 +01:00
Mathieu Brédif
8f4e7e5ecc Consistent error handling in pc_schema_from_xml (2)
slight rework of #108 from @achidlow
2017-03-17 12:13:08 +01:00
Mathieu Brédif
165d9ea7be geometry cast of pcpoint with optional srid, z and m values, using caching of Z and M positions in schema. 2017-02-16 09:27:04 +01:00
Mathieu Brédif
ef5fc167d8 indentation normalization 2017-02-12 23:52:15 +01:00
Éric Lemoine
8cd3f4c15a Fix unit tests with cunit 2.1-3 (#124)
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.
2017-01-24 16:29:33 +01:00
Blottiere Paul
1508f405bb fix crash when a child node is empty in pc schema
add unit test in case of an empty child node in schema
2016-03-06 15:48:08 +01:00
Sandro Santilli
3011d8dace Fix crash on cloning schema with missing dimension name/description
Closes #66
Includes testcase
2015-04-09 16:00:27 +02:00
Sandro Santilli
53b4fa1dcb Add test for pc_schema_clone and plug memory leaks in the test
See #65
2015-04-09 12:24:47 +02:00
Sandro Santilli
aebb3cb0d3 Add test for #28
Involves registering cu_tester specific error handler
2015-02-09 19:55:59 +01:00
Paul Ramsey
668d2413b2 Tests in place for patchlevel filtering
much optimization left to do
2013-06-04 14:53:42 -07:00
Paul Ramsey
73da920ff0 Remove trailing white space from .c files 2013-03-08 13:46:06 -08:00
Paul Ramsey
d4a104bd77 Enable dimensional storage in the db 2013-03-06 22:06:23 -08:00
Paul Ramsey
c7060031b5 Add dimensional compression routines, right out to the
patch level. Now to add them to SQL.
2013-03-01 16:42:15 -08:00
Paul Ramsey
87b05d6668 Commit partial work on dimensional compression 2013-02-18 20:54:37 -08:00
Paul Ramsey
efd85bc528 Rename libpc to lib for hobu 2013-02-04 15:36:13 -08:00