Skip to content

Commit 2346cc2

Browse files
authored
Merge pull request #374 from pblottiere/lazperf_doc
Add instructions to enable laz-perf support
2 parents 9a5c5ff + c4663a7 commit 2346cc2

File tree

2 files changed

+56
-3
lines changed

2 files changed

+56
-3
lines changed

doc/development.rst

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,12 @@ Requirements
1818
``libxml2-devel``
1919
- CUnit packages must be installed
2020
- [Optional] ``laz-perf`` library may be installed for LAZ compression support
21-
(built from source_)
21+
(see :ref:`build_sources` instructions)
22+
23+
.. _build_sources:
2224

2325
------------------------------------------------------------------------------
24-
Build/Install
26+
Build from sources
2527
------------------------------------------------------------------------------
2628

2729
After generating the configure script with ``autogen.sh``, you can use
@@ -54,6 +56,50 @@ After generating the configure script with ``autogen.sh``, you can use
5456
5557
$ ./configure CFLAGS="-DNESTED_QSORT=1"
5658
59+
60+
**LAZ support**
61+
62+
If you want to enable LAZ compression, you first need to build the ``1.5.0``
63+
laz-perf library from sources:
64+
65+
.. code-block:: bash
66+
67+
$ git clone https://github.com/hobuinc/laz-perf
68+
$ cd laz-perf
69+
$ git checkout 1.5.0
70+
$ cmake .
71+
$ make
72+
$ make install
73+
74+
75+
And then enable LAZ compression with ``--with-lazperf`` option on PgPointcloud side:
76+
77+
.. code-block::
78+
79+
$ ./configure --with-lazperf=/usr/local
80+
81+
PointCloud is now configured for
82+
83+
-------------- Compiler Info -------------
84+
C compiler: gcc -g -O2
85+
CXX compiler: g++ -g -O2
86+
SQL preprocessor: /usr/bin/cpp -traditional-cpp -w -P
87+
88+
-------------- Dependencies --------------
89+
PostgreSQL config: /usr/bin/pg_config
90+
PostgreSQL version: PostgreSQL 17.5 (170)
91+
Libxml2 config: /usr/bin/xml2-config
92+
Libxml2 version: 2.14.3
93+
LazPerf status: /usr/local/include/laz-perf
94+
CUnit status: enabled
95+
96+
97+
.. warning::
98+
99+
Laz-perf ``1.5.0`` is outdated and some work is necessary to upgrade to
100+
``3.X`` version.
101+
102+
57103
------------------------------------------------------------------------------
58104
Tests
59105
------------------------------------------------------------------------------

doc/install.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Install
1010
:backlinks: none
1111

1212

13+
------------------------------------------------------------------------------
1314
Docker image
1415
-----------------------------------------------------------------------------
1516

@@ -23,6 +24,7 @@ development version:
2324
.. _`Docker Hub`: https://hub.docker.com/r/pgpointcloud/pointcloud
2425

2526

27+
------------------------------------------------------------------------------
2628
GNU/Linux
2729
------------------------------------------------------------------------------
2830

@@ -45,6 +47,7 @@ pgPointcloud is available on Arch Linux through the `user repository`_.
4547
.. _`user repository`: https://aur.archlinux.org/packages/pgpointcloud
4648

4749

50+
------------------------------------------------------------------------------
4851
Windows
4952
------------------------------------------------------------------------------
5053

@@ -53,6 +56,7 @@ pgPointcloud is directly included in the `PostGIS`_ bundle.
5356
.. _`PostGIS`: https://postgis.net/windows_downloads/
5457

5558

59+
------------------------------------------------------------------------------
5660
MacOS
5761
------------------------------------------------------------------------------
5862

@@ -61,6 +65,7 @@ pgpointcloud is available on macOS via `MacPorts`_.
6165
.. _`MacPorts`: https://ports.macports.org/port/pgpointcloud/
6266

6367

68+
------------------------------------------------------------------------------
6469
Releases tarballs
6570
------------------------------------------------------------------------------
6671

@@ -97,11 +102,13 @@ Releases tarballs
97102

98103
.. _source:
99104

105+
------------------------------------------------------------------------------
100106
Sources
101107
------------------------------------------------------------------------------
102108

103109
The source code repository for pgPointcloud is on `GitHub`_. You can retrieve
104-
the development version with ``git``:
110+
the development version with ``git``. See :ref:`build_sources` for
111+
instructions.
105112

106113
.. code-block:: console
107114

0 commit comments

Comments
 (0)