36 Commits

Author SHA1 Message Date
Blottiere Paul
7b431437f2 Allman brackets 2022-02-08 09:14:32 +01:00
Blottiere Paul
1cef6c78a5 Custom llvm style 2022-02-08 09:10:45 +01:00
Blottiere Paul
61f229c304 clang-format 5 2022-02-07 17:14:19 +01:00
Blottiere Paul
063a5b1651 Remove GHT support 2018-06-14 18:34:05 +01: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
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
Éric Lemoine
4ba2fe6d8f Revert "testing : pcpoint_get/set and pc_point_to_geometry_wkb" 2017-03-30 10:15:50 +02: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
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
8f4e7e5ecc Consistent error handling in pc_schema_from_xml (2)
slight rework of #108 from @achidlow
2017-03-17 12:13:08 +01:00
Éric Lemoine
ac11a17a6f Remove tabs within if statements 2017-02-17 18:12:06 +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
Blottiere Paul
b3764bd5dc Add lazperf pcpatch 2016-06-14 10:22:16 +02:00
Blottiere Paul
1508f405bb fix crash when a child node is empty in pc schema
add unit test in case of an empty child node in schema
2016-03-06 15:48:08 +01:00
Mathieu Brédif
40b2e49d89 Adding missing xmlCleanupParser calls
Fixes memory leaks
2016-03-03 00:05:05 +01:00
Sandro Santilli
7061bbb549 Add "type" field in pc_summary dimension output 2015-04-24 16:41:21 +02:00
Sandro Santilli
e5605e9292 Fix crash in schema parser
Closes #71.
Includes testcase.
2015-04-14 11:26:28 +02:00
Sandro Santilli
3011d8dace Fix crash on cloning schema with missing dimension name/description
Closes #66
Includes testcase
2015-04-09 16:00:27 +02:00
Sandro Santilli
3fe9d4599f Implement PC_Summary(pcpatch)
Includes test and docs
2015-03-19 16:54:09 +01:00
Sandro Santilli
7d92ab50da Move INTERPRETATION_STRINGS and INTERPRETATION_SIZES to .c file
Closes #41
2015-02-12 17:36:46 +01:00
Sandro Santilli
2025de2625 Do not assume schema XML has a name for each dimension
Closes #28
2015-02-09 19:53:24 +01:00
Sandro Santilli
9a764780e3 Fix some uninitialized and unused variables warnings
Closes #37
2015-02-04 12:28:17 +01:00
Paul Ramsey
a2678313d1 Clean build on OSX Mountain Lion 2013-10-21 14:43:03 -07:00
Paul Ramsey
12123bdbb1 astyle pass 2013-06-12 17:13:19 -07:00
Paul Ramsey
8174fa4ca3 Finish implementation of patch-level stats 2013-05-31 15:36:23 -07:00
Paul Ramsey
309dddf4c8 Rough start of GHT compression support 2013-04-30 16:51:23 -07:00
Paul Ramsey
0b1e2eeb48 Make scale = 1 the default and handle in scaling routines 2013-04-15 15:29:05 -07:00
Paul Ramsey
6e7dc88520 Update copyright to reference NrCan 2013-03-08 13:53:06 -08:00
Paul Ramsey
73da920ff0 Remove trailing white space from .c files 2013-03-08 13:46:06 -08:00
Paul Ramsey
d4a104bd77 Enable dimensional storage in the db 2013-03-06 22:06:23 -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
9b20f737ba Finish up change to PCBYTE holder 2013-02-26 10:31:36 -08:00
Paul Ramsey
8b99ca3750 Handle <offset> in the schema 2013-02-07 14:54:06 -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
Paul Ramsey
efd85bc528 Rename libpc to lib for hobu 2013-02-04 15:36:13 -08:00