377 Commits

Author SHA1 Message Date
Mathieu Brédif
ef5fc167d8 indentation normalization 2017-02-12 23:52:15 +01:00
Éric Lemoine
2b87e90d49 Fix indent in cu_pc_patch.c 2017-02-10 15:01:53 +01:00
Éric Lemoine
071d9a72a7 Make pc_patch_compress return the compressed patch
When compressing a patch from GHT to LAZPERF the pc_patch_compress function
currently returns the uncompressed patch.

This commit fixes the bug in pc_patch_compress and adds unit tests for
pc_patch_compress.
2017-02-10 15:01:53 +01:00
Éric Lemoine
87cb90cf29 Fix indent in cu_pc_sort.c (#131)
cu_pc_sort.c currently uses a mix of spaces and tabs. This commit changes all
the tabs to spaces.
2017-01-30 16:52:22 +01:00
Éric Lemoine
c9692411f9 Fix sort unit tests with cunit 2.1-3 (#132) 2017-01-30 16:51:28 +01:00
Mathieu Brédif
68caab7ae1 PC_Sort and PC_IsSorted (#106)
* PC_Sort and PC_IsSorted

* fixing -Wdeclaration-after-statement warnings

* using sort_r for a portable definition of qsort_r/qsort_s

* uncompression fallback for lazperf/is_sorted

* NEWS updated, sort_r github reference and README added
2017-01-29 23:12:31 +01:00
Éric Lemoine
28e6b977c6 Add check and installcheck targets to CMake-based Makefile (#129)
* Add check and installcheck targets to CMake-based Makefile

* Indicate how to run unit-tests in README file
2017-01-27 17:40:46 +01:00
Éric Lemoine
e90e0ac166 Remove unused functions and vars (#128)
* Remove unused function in pc_patch_ght.c

* Remove unused vars in pc_patch_lazperf.c

* Remove unused vars in cu_pc_patch_ght.c

* Remove unused vars in cu_pc_point.c

* Remove unused vars in cu_pc_bytes.c
2017-01-27 17:22:37 +01:00
Éric Lemoine
3a04787079 Use __attribute__ ((format (printf, x, y))) (#126)
This commit adds __attribute__ ((format (printf, x, y))) where it makes sense.
2017-01-26 17:45:50 +01:00
Éric Lemoine
8165600c61 Build issues when using a specific install prefix (Autotools) (#127)
* Introduce LAZPERF_CPPFLAGS

Without this the las.hpp header file is not found when lazperf was
installed in a non-system place.

* Use GHT_CPPFLAGS

Without this the ght.h header file is not found when libght was installed in
a non-system place.

* Use tabs in Makefiles
2017-01-26 17:43:03 +01:00
Éric Lemoine
42c87870eb Fix build issues (#123) 2017-01-24 16:56:41 +01:00
Éric Lemoine
784776ea5b Fix pc_patch_lazperf_compute_extent return value 2017-01-24 16:31:15 +01:00
Éric Lemoine
122848cf28 Fix argument passed to pc_patch_lazperf_compute_extent 2017-01-24 16:31:15 +01:00
Éric Lemoine
4875968a62 Declare the pc_patch_lazperf_compute_extent function 2017-01-24 16:31:15 +01:00
Éric Lemoine
6a59f73ebb Make the pc_bitmap_set function static
And get rid of a warning at compile time.
2017-01-24 16:31:15 +01:00
Éric Lemoine
0de6087164 Declare the lazperf compress/uncompress functions
These functions used from pc_patch_lazperf.c were not declared, causing warning
at compile time.
2017-01-24 16:31: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
Paul Ramsey
dd2269cffe Merge pull request #119 from achidlow/fix-postgres9.6-debian-compile
Fix compile against PostgreSQL 9.6 on Debian by using correct flags.
2016-10-19 05:54:30 -07:00
Adam Chidlow
a52d6a5d5d Fix compile against PostgreSQL 9.6 on Debian by using correct flags. 2016-10-19 10:20:31 +08:00
Paul Ramsey
3929653f51 Merge pull request #110 from pblottiere/fix_ght
fix compilation issue with GHT support
2016-06-16 08:11:22 -07:00
Blottiere Paul
8afd8f9c6d fix compilation issue with GHT support 2016-06-16 16:16:59 +02:00
Blottiere Paul
68c688b688 fix README (#109) 2016-06-16 08:23:32 +02:00
Blottiere Paul
29c8e1c12a update NEWS file for LAZ compression (#107) 2016-06-15 10:19:19 +02:00
Paul Ramsey
211258b78d Merge pull request #105 from pblottiere/laz
Add lazperf pcpatch
2016-06-14 05:59:51 -07:00
Blottiere Paul
b3764bd5dc Add lazperf pcpatch 2016-06-14 10:22:16 +02:00
Paul Ramsey
206bd54c45 Merge pull request #103 from mbredif/PC_PointN 2016-06-07 09:46:57 -07:00
Mathieu Brédif
3eeae8ef06 readme 2016-03-09 16:38:39 +01:00
Mathieu Brédif
5a0f7944fd new PC_PointN function 2016-03-07 15:57:05 +01:00
Sandro Santilli
c15d4ef395 Merge pull request #97 from ldgeo/master
fix crash when a child node is empty in pc schema
2016-03-07 13:01:10 +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
e6a8e062a9 Merge pull request #101 from mbredif/patch-2
Enable valgrind checks in Travis, fix reported errors and leaks.
2016-03-05 15:55:06 +01:00
Sandro Santilli
3841d7d830 Merge pull request #99 from mbredif/patch-1
pc_bytes_sigbits_decode compression -> PC_DIM_NONE
2016-03-05 15:53:07 +01:00
Mathieu Brédif
da5a5a9823 Valgrind issue with option --show-leak-kinds=all 2016-03-03 19:11:23 +01:00
Mathieu Brédif
8b64d2d5bc install valgrind in travis 2016-03-03 18:10:39 +01:00
Mathieu Brédif
19a57ee89b Testing compression type of dimensional bytes 2016-03-03 17:35:20 +01:00
Mathieu Brédif
dbc47c7064 valgrind check in travis 2016-03-03 17:05:57 +01:00
Mathieu Brédif
897d7c086d fix valgrind errors using CLAMP in pc_val, due to incorrect formatting 2016-03-03 00:53:27 +01:00
Mathieu Brédif
40b2e49d89 Adding missing xmlCleanupParser calls
Fixes memory leaks
2016-03-03 00:05:05 +01:00
Mathieu Brédif
0826a986a0 fix memory leak in test_uncompressed_filter 2016-03-02 23:48:13 +01:00
Mathieu Brédif
76e3040d5f pc_bytes_sigbits_decode compression -> PC_DIM_NONE
Output compression was erroneously set to PC_DIM_SIGBITS instead of_DIM_NONE. Thanks @pblottiere for spotting this!
2016-02-29 15:44:32 +01:00
Sandro Santilli
0c588207bf Add git attributes file.
Fixes #17 (should)
2015-10-10 20:03:58 +02:00
Sandro Santilli
7fdcd49480 Add pc_lib_version(), pc_script_version() and compare in pc_version()
Fixes #40
2015-08-17 18:33:03 +02:00
Sandro Santilli
9ff42f8ade Import 1.0.1 section in NEWS file 2015-08-09 11:10:11 +02:00
Vincent Picavet
a94e4c045d Fix PG 9.5 compatibility. 2015-07-30 17:26:54 +02:00
Sandro Santilli
3612254615 Add PC_Upgrade item 2015-05-15 16:06:50 +02:00
Sandro Santilli
82429d4461 Add a pc_upgrade([<version>]) function 2015-05-15 16:00:58 +02:00
Sandro Santilli
bb0d7b4b6f Force override when linking "next" script 2015-05-15 15:32:06 +02:00
Sandro Santilli
48868f55b9 Create in-development upgrade scripts ("next" prefix) 2015-05-15 15:27:48 +02:00
Sandro Santilli
38944e72df Implement PC_Patch{Min,Max,Avg}(PcPatch) returns PcPoint
Closes #77

NOTE: changes the C function signature so you need to properly
      upgrade scripts for things to work again.
2015-05-15 15:19:47 +02:00
Sandro Santilli
bb02dd0454 Allow passing 0 to --iterate for skipping queries 2015-05-14 17:12:59 +02:00