424 Commits

Author SHA1 Message Date
Blottiere Paul
e5fa4a3ca2 Add an integration test for pc_pointn with lazperf 2017-03-31 11:13:48 +02:00
Blottiere Paul
ccc6e2714e Add lazperf support to PC_PointN 2017-03-31 11:12:39 +02:00
Éric Lemoine
67d5b88176 Merge pull request #152 from elemoine/pc-range
Add PC_Range(p PCPATCH, first int4, count int4)
2017-03-30 11:48:26 +02:00
Éric Lemoine
b460f0b14a Merge pull request #157 from elemoine/sql-tests
Add an SQL Tests section to README.md
2017-03-30 11:37:56 +02:00
Éric Lemoine
b606a53a03 Merge pull request #159 from pgpointcloud/revert-143-point_xyzm_test
Revert "testing : pcpoint_get/set and pc_point_to_geometry_wkb"
2017-03-30 10:26:41 +02:00
Éric Lemoine
4ba2fe6d8f Revert "testing : pcpoint_get/set and pc_point_to_geometry_wkb" 2017-03-30 10:15:50 +02:00
Éric Lemoine
48bff7ba0d Merge pull request #143 from mbredif/point_xyzm_test
testing : pcpoint_get/set and pc_point_to_geometry_wkb
2017-03-30 10:09:19 +02:00
Éric Lemoine
6eae998708 Add an SQL Tests section to README.md 2017-03-30 09:06:19 +02:00
Blottiere Paul
fb5f1dcca4 Add PC_Range(p PCPATCH, first int4, count int4)
This commit adds a PC_Range function. This function returns a patch of "count" points. These points are selected from the start-th point in the input patch.
2017-03-30 09:03:04 +02:00
Éric Lemoine
102f366c5e Merge pull request #155 from tushar-dadlani/patch-1
Update README.md
2017-03-28 05:56:34 +02:00
Tushar Dadlani
36ff799e7a Update README.md
Remove extra closing parenthesis.
2017-03-27 13:03:40 -07:00
Éric Lemoine
da831e50b6 Merge pull request #153 from elemoine/eclint
Use eclint 1.1.5
2017-03-23 18:07:55 +01:00
Éric Lemoine
852efc33d8 Use eclint 1.1.5
eclint 2 was recently released. Unfortunately this version is not compatible with the version of NodeJS available on Travis. So let's stick to eclint 1.1.5 for now.
2017-03-23 17:28:43 +01:00
Éric Lemoine
b13a325d94 Merge pull request #151 from elemoine/meta
Remove references to github.com/pramsey/pointcloud
2017-03-21 14:59:46 +01:00
Éric Lemoine
a1524ae0c8 Merge pull request #150 from elemoine/readme
Fixes and improvements to the README file
2017-03-21 14:54:28 +01:00
Mathieu Brédif
47f0e50c16 pc_point_get_* == PC_SUCCESS
Make the result of pc_point_get_* more explicit in pc_point_to_geometry_wkb
2017-03-21 13:58:25 +01: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
d5e42ba274 test_point_geometry (pcpoint to geometry wkb tests)
xy, xyz, xym and xyzm test cases
2017-03-21 13:57:19 +01:00
Mathieu Brédif
30a680f94a pcpoint_set/get API normalisation and testing
- definition of CU_ASSERT_FAILURE and CU_ASSERT_SUCCESS for easy checking of return values in tests.
- pcpoint_set functions were returning the PC_SUCCESS/PC_FAILURE as a double (!)
- add simple xy, xyz, xym and xyzm xml schemas for unit tests (test_point_xyzm)
2017-03-21 13:57:19 +01:00
Éric Lemoine
eb4fe1e923 Merge pull request #147 from mbredif/pc_schema_from_xml
PCSCHEMA *pc_schema_from_xml(const char *)
2017-03-20 20:32:53 +01:00
Éric Lemoine
b7cfcd049d Remove references to github.com/pramsey/pointcloud 2017-03-18 16:24:04 +01:00
Éric Lemoine
e48a51a40e Use SVG for Build Status icon/link in README 2017-03-18 16:11:07 +01:00
Éric Lemoine
00c366f387 Use JSON for the PDAL pipeline in README 2017-03-18 16:07:18 +01:00
Éric Lemoine
8b76998ed9 Format URL using md rather than rst in README 2017-03-18 15:49:03 +01:00
Éric Lemoine
0f98a1bc0b Do not cover the building of PDAL in README
and rely on PDAL's documentation for that.
2017-03-18 15:48:41 +01:00
Éric Lemoine
e78cc422ff Use better PDAL URL in README 2017-03-18 15:46:26 +01:00
Éric Lemoine
67c55676f6 Remove extra space in README 2017-03-18 15:45:51 +01:00
Éric Lemoine
e9cf3b9a00 Merge pull request #148 from elemoine/space
Change non-breaking space to regular space
2017-03-17 14:37:21 +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
Éric Lemoine
e5fa61ca42 Change non-breaking space to regular space 2017-03-15 17:22:50 +01:00
Éric Lemoine
1fa9603418 Merge pull request #113 from pblottiere/fix_laz
fix laz support (memory issue and lack in lazperf type)
2017-03-15 15:42:23 +01:00
Éric Lemoine
abce712ec8 Support other dimensions for lazperf compression 2017-03-14 14:36:39 +01:00
Éric Lemoine
692a568101 Merge pull request #141 from elemoine/tabs
Remove tabs within if statements
2017-03-14 09:24:01 +01:00
Éric Lemoine
224fd6d2ea Merge pull request #146 from elemoine/filter-lazperf
Fix bug in pc_patch_filter for lazperf
2017-03-14 08:40:05 +01:00
Blottiere Paul
96de4159f7 Add unit test for pc_patch_filter with lazperf 2017-03-14 08:33:45 +01:00
Blottiere Paul
1254177326 Fix memory leak in pc_patch_filter for lazperf 2017-03-13 18:10:59 +01:00
Éric Lemoine
7be5f7fd67 Fix bug in pc_patch_filter for lazperf
In pc_patch_filter, when nset is 0, the empty patch returned was created with
an invalid maxpoints value in the case of lazperf.
2017-03-10 13:01:56 +01:00
Sandro Santilli
60e10e31ef Merge pull request #142 from mbredif/patch-1
pc_point_to_geometry_wkb : get_m fix
2017-02-19 11:41:43 +01:00
Mathieu Brédif
ceefce2ca1 pc_point_to_geometry_wkb : get_m fix
A typo was introduced while rebasing this PR: `z` values were assigned to both `z` and `m` output points
2017-02-18 16:10:09 +01:00
Éric Lemoine
ac11a17a6f Remove tabs within if statements 2017-02-17 18:12:06 +01:00
Sandro Santilli
df3821f7ba Merge pull request #136 from mbredif/pointlist_mem
pointlist memory fix, pc_pointlist_from_dimensional memory optimization
2017-02-16 19:01:59 +01:00
Mathieu Brédif
266113d1cb pointlist memory fix, pc_pointlist_from_dimensional memory optimization
pointlist: opaque mem pointer rather than readonly attribute
pc_patch_uncompressed_readonly: transfers data ownership
pc_pointlist_from_dimensional: 1 pcalloc/patch rather than 1/point
2017-02-16 10:47:37 +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
Éric Lemoine
9f19f32536 Remove compile warning (#140)
When using `./configure CFLAGS="-Wall -O2 -g"` we get an "unused-function"
warning at compile time. This was raised by @strk in #130. This commit fixes
the issue.
2017-02-13 19:19:51 +01:00
Sandro Santilli
04993240d9 Merge pull request #138 from mbredif/editorconfig
Editorconfig
2017-02-13 09:08:35 +01:00
Mathieu Brédif
e040ff2025 editorconfig setup, eclint check in travis 2017-02-13 00:12:00 +01:00
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