29 Commits

Author SHA1 Message Date
Blottiere Paul
4fc5df14be Consider that pointcloud, postgis and pointcloud_postgis are in the same schema 2022-02-28 20:55:59 +01:00
Éric Lemoine
5202333208 Mark functions as PARALLEL SAFE 2018-08-21 17:16:10 +02: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
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
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
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
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
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
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
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
Sandro Santilli
82429d4461 Add a pc_upgrade([<version>]) function 2015-05-15 16:00:58 +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
9c1edfccdf Add PC_Compress function 2015-04-13 13:39:42 +02:00
Sandro Santilli
3fe9d4599f Implement PC_Summary(pcpatch)
Includes test and docs
2015-03-19 16:54:09 +01:00
Sandro Santilli
007c7f86fd Fix availability info for PC_Get(pcpatch) 2015-03-18 17:13:20 +01:00
Sandro Santilli
9f3d96cea6 Add PC_PCId(pcpoint) and PC_PCId(pcpatch) functions
Closes #50
Includes (online) testcase
2015-03-18 17:13:01 +01:00
Sandro Santilli
3fa32dd33f Note last updated version for pointcloud_columns view 2015-02-12 17:20:09 +01:00
Sandro Santilli
196a623ad7 Only create pointcloud_formats table if it doesn't exist 2015-02-12 13:25:58 +01:00
Sandro Santilli
0a668a703e Automate creation of extension scripts, including upgrades
Closes #39
2015-02-12 13:15:03 +01:00