Sandro Santilli
022708bcba
Fix stat computed by PC_Filter for scaled/offsetted dimensions.
...
Closes #78 .
Includes testcase.
2015-04-30 13:31:13 +02:00
Sandro Santilli
a632241185
Fix max stat computed by PC_Filter for unscaled dimensions.
...
Closes #79 .
Includes testcase.
2015-04-30 11:58:40 +02:00
Sandro Santilli
7061bbb549
Add "type" field in pc_summary dimension output
2015-04-24 16:41:21 +02:00
Sandro Santilli
d345f927c0
Fix leaks in patch unit test
2015-04-21 16:19:57 +02:00
Sandro Santilli
ca62fdf00f
Fix leak in pc_patch_from_patchlist
2015-04-21 16:19:52 +02:00
Sandro Santilli
4ba74589d6
Fix mem leak in pc_patch_dimensional_from_pointlist
2015-04-21 16:17:11 +02:00
Sandro Santilli
ab76f32045
Fix leak in pc_patch_compute_stats
2015-04-21 16:15:47 +02:00
Sandro Santilli
dda27dc9d8
Fix leak in pc_patch_dimensional_from_uncompressed
2015-04-21 16:04:58 +02:00
Sandro Santilli
c0e75fbd43
Warn when truncating values due to size constraints
...
Also makes the truncation controled rather than unspecified.
Values are clamped (max if over max, min if below min).
Closes #68
Updates expected output from existing test that uses truncating value
2015-04-21 13:56:09 +02:00
Sandro Santilli
3f3bdab31f
Clone stats on dimensional compression
...
Closes #75
2015-04-21 12:13:17 +02:00
Sandro Santilli
291ccfe57a
Fix crash in testcase (due to #75 )
2015-04-21 12:01:18 +02:00
Sandro Santilli
44037b743e
Leak some leaks from pc_patch unit test
2015-04-21 11:40:21 +02:00
Sandro Santilli
e105cdbc40
Fix memory leak in pc_patch_dimensional_to_string
2015-04-21 11:33:12 +02:00
Sandro Santilli
cd7a644818
Drop a memory copy in pc_patch_to_string ( #74 )
2015-04-21 11:12:07 +02:00
Sandro Santilli
fed95d2f73
Remove unused include
2015-04-20 19:17:29 +02:00
Sandro Santilli
e5605e9292
Fix crash in schema parser
...
Closes #71 .
Includes testcase.
2015-04-14 11:26:28 +02:00
Sandro Santilli
667dcf3ec0
Fix handling of sigbits encoding with 0 common bits
...
Includes online check
Closes #69
2015-04-13 16:58:35 +02:00
Sandro Santilli
db42b12e0c
Fix memory leak in pc_patch_uncompressed_compute_extent
2015-04-13 15:48:15 +02:00
Sandro Santilli
c72199f1f8
Fix 64bit sigbits encoding
2015-04-13 14:17:01 +02:00
Sandro Santilli
45c0fc7820
Revert "Fix sigbits decoding to handle the 0-commonbits case"
...
This reverts commit ca64830e53cdae288e80fb8a127c2a86cf141c2f.
It broke other cases, better to rethink (#69 )
2015-04-13 14:10:49 +02:00
Sandro Santilli
ca64830e53
Fix sigbits decoding to handle the 0-commonbits case
...
See #67
2015-04-13 13:40:36 +02: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
bfc1998b53
Fix memory leak in dimensional encoding when all values are equal
2015-04-02 16:33:02 +02:00
Sandro Santilli
11012357fd
Support sigbits encoding for 64bit integers
...
Fixes #61
2015-04-02 16:26:30 +02:00
Pete Gadomski
868b78c1eb
Compile the static library with -fPIC
...
On Ubuntu precise64, gcc/g++ 4.8, cmake 2.8.11.2, I get a link error
between the static libpc and the (default shared) libpointcloud.so. This
patch fixes the link error.
Fixes #26
2015-03-28 01:15:29 +00:00
Sandro Santilli
3fe9d4599f
Implement PC_Summary(pcpatch)
...
Includes test and docs
2015-03-19 16:54:09 +01:00
Sandro Santilli
48faede812
More unused variables and definitions dropped
2015-02-12 18:22:08 +01:00
Sandro Santilli
7ca2b21c47
Fix a couple more unused variable warnings
...
Improves error checking in pc_patch_dimensional_compute_extent
2015-02-12 18:17:43 +01:00
Sandro Santilli
7d92ab50da
Move INTERPRETATION_STRINGS and INTERPRETATION_SIZES to .c file
...
Closes #41
2015-02-12 17:36:46 +01:00
Sandro Santilli
77985c0b5c
Centralize version into Version.config
...
Works with both autoconf and cmake
2015-02-12 13:39:26 +01:00
Sandro Santilli
30f18f3ce0
Fix unused variable warnings in pc_bytes.c
2015-02-12 12:25:17 +01:00
Sandro Santilli
225327468d
Fix unused variables warnings
2015-02-12 10:37:21 +01:00
Sandro Santilli
74a0818f6a
Add pc_point_to_double_array function
...
The function was written by Remi-C and slightly modified by me
to avoid the check for NULL and be const-correct.
Also I've added a unit test for the new library function.
2015-02-12 10:34:17 +01:00
Sandro Santilli
9243eeaaee
Add a couple of return values check
...
now that pcerror is not guaranteed to exit it is worth checking returns
2015-02-09 19:56:37 +01:00
Sandro Santilli
aebb3cb0d3
Add test for #28
...
Involves registering cu_tester specific error handler
2015-02-09 19:55:59 +01:00
Sandro Santilli
5c9532c00d
Revert recently introduced double free on pcpoint (only in test)
2015-02-09 19:55:01 +01:00
Sandro Santilli
2025de2625
Do not assume schema XML has a name for each dimension
...
Closes #28
2015-02-09 19:53:24 +01:00
Sandro Santilli
62fd168379
Allow passing NULLs to pc_set_handlers to keep previous handlers
2015-02-09 19:46:00 +01:00
Sandro Santilli
e7b8fb8810
Fix typo in pc_patch_dimensional_compute_extent
...
Includes testcase.
Closes #23
2015-02-09 18:24:17 +01:00
Sandro Santilli
0c7bd2778d
Fix unused variables warnings
2015-02-09 18:07:40 +01:00
Sandro Santilli
9a764780e3
Fix some uninitialized and unused variables warnings
...
Closes #37
2015-02-04 12:28:17 +01:00
Sandro Santilli
a4df1e54cd
Do not assume pc_patch_ght_from_uncompressed cannot return NULL
...
Print an error if it does, and use pcerror from within the function
to reduce the likelihood of returning NULL w/out an actual error.
Fixes the crash reported in #31
2015-02-04 10:06:38 +01:00
Andrew Bell
5d6dac27cb
Cast char *'s to proper type.
2014-11-24 18:27:27 -06:00
Paul Ramsey
7821b47242
Add libm to libpc build
2014-11-17 16:05:13 -08:00
Paul Ramsey
d0e39ac27b
Support missing CUnit
2014-10-08 11:12:41 -07:00
Pete Gadomski
a61874cb52
Provide cmake option to disable testing
...
CUnit does not need to be a dependency for installation and usage, so
this patch adds a cmake option (WITH_TESTS) that can be used to disable
building of the test suite. WITH_TESTS is set to TRUE by default to keep
the default behavior consistent.
This patch also adds a one-liner to the README mentioning the option.
2014-05-13 12:16:59 -06:00
Paul Ramsey
8612f906a0
Set internal version to 1.0
2013-10-23 12:03:27 -07:00
Paul Ramsey
0658d31712
-fPIC
2013-10-23 11:30:35 -07:00
Paul Ramsey
71b93a757c
Add -fpic to build for debbie fix
2013-10-23 11:29:55 -07:00