456 Commits

Author SHA1 Message Date
Éric Lemoine
d894f3f28a Use schema->xdim and ydim in ght code 2017-05-11 06:38:33 +02:00
Éric Lemoine
8c03977509 Merge pull request #172 from robe2/master
fix compile error for mingw64 (both 64-bit and 32-bit variants). Issu…
2017-05-09 09:59:41 +02:00
robe2
c4474026ad fix compile error for mingw64 (both 64-bit and 32-bit variants). Issue #171 2017-05-08 17:01:27 -04:00
Éric Lemoine
4776e924be Merge pull request #170 from elemoine/envelope
Add PC_Envelope back to the pointcloud extension
2017-04-27 17:57:29 +02:00
Éric Lemoine
2273d93ab5 Fix pcpatch_envelope_as_bytea function declaration 2017-04-27 17:34:06 +02:00
Éric Lemoine
353450758f Add PC_Envelope back to the pointcloud extension
This commits adds `PC_Envelope` back to the pointcloud extension. This is to address the backward-compatibility issue raised in #168.
2017-04-26 18:06:07 +02:00
Éric Lemoine
0c249f8407 Merge pull request #164 from elemoine/geometry
Add the geometry(pcpach) function back
2017-04-26 17:51:17 +02:00
Éric Lemoine
03252e9150 Merge pull request #165 from elemoine/pc-transform
Add PC_Transform
2017-04-26 17:50:41 +02: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
Éric Lemoine
be35ee922a Merge pull request #169 from elemoine/remove-function
Remove declaration of unused function
2017-04-26 16:46:01 +02:00
Éric Lemoine
39cb636d08 Merge pull request #167 from elemoine/strcasecmp
Ignore case where comparing dimension names
2017-04-21 08:56:48 +02:00
Éric Lemoine
9d1768e89c Remove declaration of unused function 2017-04-21 08:55:49 +02:00
Éric Lemoine
1c439e20df Ignore case where comparing dimension names
The case of the characters should be ignored when comparing dimension names in pcpatch_schema_same_dimensions. This is to match the behavior of pc_schema_get_dimension_by_name which ignores the case.
2017-04-20 08:34:04 +02:00
Éric Lemoine
7b112653c0 Merge pull request #163 from elemoine/pc-setpcid
Add PC_SetPCId
2017-04-14 16:01:23 +02:00
Éric Lemoine
f6febdd12b Add the geometry(pcpach) function back
For backward-compatibility reasons this commit adds back the `geometry(pcpatch)` function that was removed with 7da35f0. This function is just an alias to `PC_Envelope(pcpatch)`.
2017-04-14 14:14:09 +02:00
Éric Lemoine
9491f09dc6 Add PC_SetPCId
This commit adds a `PC_SetPCId` function that can be used to change the schema of a patch.
2017-04-12 09:15:48 +02:00
Éric Lemoine
35114e80d3 Merge pull request #162 from elemoine/pointcloud-abs
Make pointcloud_abs_out|in immutable and strict
2017-04-09 20:24:30 +02:00
Éric Lemoine
2c49df040f Merge pull request #158 from elemoine/pc-boundingdiagonal
Add PC_BoundingDiagonal(p PCPATCH)
2017-04-05 10:26:44 +02:00
Éric Lemoine
3871772f06 Merge pull request #161 from elemoine/werror
Compile with -Werror on Travis
2017-04-04 11:15:31 +02:00
Éric Lemoine
2f6e38a5e3 Make pointcloud_abs_out|in immutable and strict
Type I/O functions should not be volatile. PostgreSQL 9.5 and above include a test for this, yielding this warning when a volatile function is detected:

    WARNING:  type input function pointcloud_abs_in should not be volatile

This commit makes pointcloud_abs_out and pointcloud_abs_in, which are currently empty shells, non-volatile.
2017-04-03 17:47:47 +02:00
Éric Lemoine
eb0c186758 Update the NEWS file 2017-04-03 16:01:38 +02:00
Éric Lemoine
7dd0bccfee Add a PC_BoundingDiagonal(p pcpatch) function 2017-04-03 16:01:38 +02:00
Éric Lemoine
4f033847fe Add a PC_BoundingDiagonalAsBinary(p PCPATCH) function 2017-04-03 11:29:13 +02:00
Éric Lemoine
5abc2f3434 Compile with -Werror on Travis 2017-04-02 11:34:27 +02:00
Éric Lemoine
8bc481a043 Merge pull request #149 from mbredif/PC_Envelope
PC_EnvelopeAsBinary -> bytea, PC_Envelope -> geometry
2017-04-01 16:49:21 +02:00
Éric Lemoine
8a590cd206 Merge pull request #160 from mbredif/point_xyzm_test
Point xyzm test
2017-04-01 16:49:01 +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
a6ceb504c3 test_point_geometry (pcpoint to geometry wkb tests)
xy, xyz, xym and xyzm test cases
2017-04-01 10:03:23 +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
Mathieu Brédif
7da35f0699 PC_EnvelopeAsBinary -> bytea, PC_Envelope -> geometry 2017-04-01 09:38:02 +02:00
Éric Lemoine
6ebaa15130 Merge pull request #114 from pblottiere/fix_pointn
PC_PointN : add laz support and update NEWS file
2017-03-31 11:19:53 +02:00
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