22 Commits

Author SHA1 Message Date
Karl Pietrzak
4f738eb072 Add PC_MakePatch(pcid integer, values float8[])
Add PC_MakePatch to create a patch from a pcid and an array of float8 values.
2018-06-14 18:49:52 +02:00
Mathieu Brédif
0389d77bbc pc_point_get_* == PC_SUCCESS
Make the result of pc_point_get_* more explicit in pc_point_to_geometry_wkb
2017-04-01 10:03:27 +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
Mathieu Brédif
f62481bc9b 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-04-01 10:03:22 +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
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
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
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
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
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
Paul Ramsey
12123bdbb1 astyle pass 2013-06-12 17:13:19 -07:00
Paul Ramsey
fdc27ea55d Tests for filtering (need more!) 2013-06-03 16:20:03 -07:00
Paul Ramsey
4d2187af38 Convert to using public ght api 2013-05-03 15:24:56 -07:00
Paul Ramsey
309dddf4c8 Rough start of GHT compression support 2013-04-30 16:51:23 -07:00
Paul Ramsey
0b1e2eeb48 Make scale = 1 the default and handle in scaling routines 2013-04-15 15:29:05 -07:00
Paul Ramsey
6e7dc88520 Update copyright to reference NrCan 2013-03-08 13:53:06 -08:00
Paul Ramsey
73da920ff0 Remove trailing white space from .c files 2013-03-08 13:46:06 -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
efd85bc528 Rename libpc to lib for hobu 2013-02-04 15:36:13 -08:00