Éric Lemoine
07c3ddd9f6
Prefix WKB API functions with pc_
...
This is to avoid conflicts with other libraries, like PostGIS.
2017-06-12 08:42:45 +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
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
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
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
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
4f033847fe
Add a PC_BoundingDiagonalAsBinary(p PCPATCH) function
2017-04-03 11:29:13 +02:00
Mathieu Brédif
7da35f0699
PC_EnvelopeAsBinary -> bytea, PC_Envelope -> geometry
2017-04-01 09:38:02 +02:00
Blottiere Paul
e5fa4a3ca2
Add an integration test for pc_pointn with lazperf
2017-03-31 11:13:48 +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
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
b7cfcd049d
Remove references to github.com/pramsey/pointcloud
2017-03-18 16:24:04 +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
Éric Lemoine
abce712ec8
Support other dimensions for lazperf compression
2017-03-14 14:36:39 +01:00
Mathieu Brédif
ef5fc167d8
indentation normalization
2017-02-12 23:52:15 +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
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
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
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
Mathieu Brédif
5a0f7944fd
new PC_PointN function
2016-03-07 15:57:05 +01: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
Vincent Picavet
a94e4c045d
Fix PG 9.5 compatibility.
2015-07-30 17:26:54 +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
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
718c931c81
Fix PC_Compress call with single 'dimensional' argument
2015-04-21 16:44:18 +02:00
Sandro Santilli
f28676b482
Fix test for PC_Compress
2015-04-21 16:43:21 +02:00
Sandro Santilli
823744ee08
Do not test WARNINGs (travis doesn't show them..)
2015-04-21 14:05:11 +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
ad1c71705a
Fix typo in error message
2015-04-21 07:41:23 +02:00
Sandro Santilli
d8a40968e8
Attach major version to shared library
...
Implemented in both autoconf and cmake.
Closes #59 .
2015-04-20 12:47:18 +02:00
Sandro Santilli
1cb2aab70f
Do not show WARNINGs from regression
...
Should fix travis check:
https://travis-ci.org/pgpointcloud/pointcloud/builds/58411794#L520
2015-04-14 11:33:38 +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
9c1edfccdf
Add PC_Compress function
2015-04-13 13:39:42 +02:00
Sandro Santilli
00283ac53b
Cleanup formats at end of tests
2015-04-13 10:06:17 +02:00
Sandro Santilli
20c6f462d9
PC_Summary: do not assume schema compression matches actual patch compression
2015-04-09 16:40:31 +02:00
Sandro Santilli
d0922d28b8
Do not generate extension files in the source dir
2015-04-01 12:18:37 +02:00
Sandro Santilli
4834cb1c7f
Fix generation of pointcloud.control with cmake
2015-04-01 11:51:53 +02:00
Pete Gadomski
07af590f6b
Configure cmake files
...
Without this patch, cmake install fails.
2015-03-27 21:33:54 -05:00