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
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
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
9d1768e89c
Remove declaration of unused function
2017-04-21 08:55:49 +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
4f033847fe
Add a PC_BoundingDiagonalAsBinary(p PCPATCH) function
2017-04-03 11:29:13 +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
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
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
Mathieu Brédif
266113d1cb
pointlist memory fix, pc_pointlist_from_dimensional memory optimization
...
pointlist: opaque mem pointer rather than readonly attribute
pc_patch_uncompressed_readonly: transfers data ownership
pc_pointlist_from_dimensional: 1 pcalloc/patch rather than 1/point
2017-02-16 10:47:37 +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
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
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
3fe9d4599f
Implement PC_Summary(pcpatch)
...
Includes test and docs
2015-03-19 16:54:09 +01:00
Sandro Santilli
77985c0b5c
Centralize version into Version.config
...
Works with both autoconf and cmake
2015-02-12 13:39:26 +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
8612f906a0
Set internal version to 1.0
2013-10-23 12:03:27 -07:00
Paul Ramsey
b1c4aad8df
Tweak for cmake support
2013-10-23 11:09:03 -07:00
Paul Ramsey
b9c7bff40f
Move version numbers into config.h
2013-10-23 10:31:57 -07:00
Paul Ramsey
fed44911a8
Astyle pas
2013-06-12 17:10:57 -07:00
Paul Ramsey
668d2413b2
Tests in place for patchlevel filtering
...
much optimization left to do
2013-06-04 14:53:42 -07:00
Paul Ramsey
283b6807e2
Clean build version of filtering code
2013-06-03 14:15:13 -07:00
Paul Ramsey
69ec4d3ce0
More rejig
2013-05-31 16:17:15 -07:00
Paul Ramsey
8174fa4ca3
Finish implementation of patch-level stats
2013-05-31 15:36:23 -07:00
Paul Ramsey
89611f6101
Working draft of stats on serialization and patches, oof
2013-05-31 12:07:48 -07:00
Paul Ramsey
b76a3b8300
Continue with stats calculation reworking
2013-05-30 16:18:42 -07:00
Paul Ramsey
52d6e0243f
Rough draft of stats w/ serialize/deserialize
2013-05-28 19:20:53 -07:00
Paul Ramsey
e7a8d42d70
Basic stats calculator
2013-05-25 12:04:11 -07:00
Paul Ramsey
6aa7674531
Header changes for chipstats
2013-05-24 09:45:52 -05:00
Paul Ramsey
2c1a2302d7
Push version down to 0.1
2013-05-13 15:50:16 -07:00
Paul Ramsey
0afb39f7ac
Move WKB extent extract to db side,
...
so it can do higher performance datum
slicing instead of pulling the whole
object off disk
2013-05-08 13:52:45 -07:00
Paul Ramsey
0b30dc5d0b
Test for GHT patch
2013-05-06 13:49:36 -07:00
Paul Ramsey
c6df52281c
Roughing GHT support. WKB read, serialization, deserialization done. WKB write remains to do.
2013-05-06 05:56:17 -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
6e7dc88520
Update copyright to reference NrCan
2013-03-08 13:53:06 -08:00
Paul Ramsey
e4adb9f002
remove trailing white space from .h and make files
2013-03-08 13:46:51 -08:00
Paul Ramsey
d4a104bd77
Enable dimensional storage in the db
2013-03-06 22:06:23 -08:00
Paul Ramsey
32ec2c5d2e
Fix non-typmod prob with pointcloud_columns
2013-03-06 12:34:02 -08:00
Paul Ramsey
f6f9c4281c
PC_Uncompress and PC_NumPoints
2013-03-06 11:14:46 -08:00
Paul Ramsey
b457b2faee
Add in aggregate functions for pc_union(pcpatch)
2013-03-04 11:55:12 -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
716fdd2f50
ug
2013-02-27 14:46:49 -08:00
Paul Ramsey
24fd7bef7a
Add caching to XML schema support,
...
required for reasonable performance
in real world use cases.
2013-02-07 13:54:08 -08:00