176 Commits

Author SHA1 Message Date
Blottiere Paul
efeef700a8 Remove laz compression test when lazperf is disabled 2018-06-19 12:54:50 +01:00
Blottiere Paul
655bb706cb Fix expected sql when lazperf is disabled 2018-06-19 12:49:27 +01:00
Éric Lemoine
4aab079994
Merge pull request #223 from elemoine/version
Change the version number to 1.1.1
2018-06-18 09:41:59 +02:00
Éric Lemoine
f6016909aa Change version number to 1.1.1 in pointcloud.out 2018-06-18 09:24:23 +02:00
Blottiere Paul
8d8770bd4a Fix installcheck when lazperf is disabled 2018-06-18 06:16:24 +01:00
Blottiere Paul
a1f94c1117 Update sql for tests (lazperf compression code is 2 now) 2018-06-14 18:34:05 +01:00
Blottiere Paul
063a5b1651 Remove GHT support 2018-06-14 18:34:05 +01:00
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
Éric Lemoine
2cbd6f0b7d Add a PC_Uncompress LAZ SQL test 2018-06-12 08:45:01 +02:00
Éric Lemoine
7d17b5ebff Add id column to laz test table 2018-06-12 08:42:48 +02:00
Éric Lemoine
59eb4671ef Fix typo in a pcerror message 2018-06-11 21:51:52 +02:00
Éric Lemoine
d775ea0a14 Fix typos in function declarations 2018-04-30 10:04:33 +02:00
Éric Lemoine
540195e63d
Merge pull request #202 from elemoine/rip-cmake
Drop CMake support for building
2018-04-27 11:36:22 +02:00
Éric Lemoine
8f7e0079ca Include Git short commit hash in POINTCLOUD_VERSION 2018-04-27 08:38:50 +02:00
Éric Lemoine
0670d95d4b Add a PC_Full_Version function
This commit adds a PC_Full_Version function whose output is as follows:

	# select pc_full_version();
										 pc_full_version
	------------------------------------------------------------------------------------------
	 POINTCLOUD="1.1.0" PGSQL="96" LIBXML2="2.9.4" LIBGHT enabled=false LAZPERF enabled=false
	(1 row)
2018-04-27 08:38:50 +02:00
Éric Lemoine
19075af104 Drop CMake support for building 2018-04-27 07:31:11 +02:00
Éric Lemoine
9e00ac2260 Remove the generic cache 2018-02-26 11:30:32 +01:00
Éric Lemoine
087e5d6ab7 Remove "stat text default" argument
This removes the "stat text default" argument from the PC_PatchMin, PC_PatchMax and PC_PatchAvg functions. This argument is not used, and it causes performance issues as reported in https://github.com/pgpointcloud/pointcloud/issues/187.

With this, after upgrading, the PC_PatchMin, PC_PatchMax and PC_PatchAvg functions with the previous signature (with three arguments) will be preserved. DROP FUNCTION PC_PatchXXX(pcpatch, text, text) should be used to drop them.
2017-07-24 09:06:03 +02:00
É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