Skip to content

Commit 6ff8a73

Browse files
Merge pull request #156 from 3DBAG/install-cjio
New tools image: Install cjio
2 parents 0ce8b45 + 4939409 commit 6ff8a73

File tree

4 files changed

+30
-4
lines changed

4 files changed

+30
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ For the changes in the 3DBAG data set, see the [3DBAG release notes](https://doc
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [2025.02.14]
8+
Install cjval, val3dity & cjio in tools images
9+
710
## [2024.12.16]
811

912
Release that produced the 3DBAG data set version 2024.12.16.

docker/tools/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ RUN --mount=target=/var/lib/apt/lists,type=cache,sharing=locked \
2525
apt-get -y install libgeos-dev libgeos++-dev sqlite3 \
2626
libsqlite3-dev libtiff-dev libproj-dev libproj25 libpq5 libpq-dev libpqxx-dev \
2727
libgeotiff-dev nlohmann-json3-dev openssh-client openssl ca-certificates \
28-
libxml++2.6-dev parallel
28+
libxml++2.6-dev parallel libeigen3-dev libcgal-dev build-essential libboost-all-dev\
29+
pipx
2930

3031
COPY --from=ghcr.io/astral-sh/uv:0.5.27 /uv /bin/uv
3132
# Python 3.11 is currently required by the party_walls package
@@ -48,6 +49,7 @@ RUN bash $BAG3D_PIPELINE_LOCATION/tools-build.sh \
4849
--build-pdal \
4950
--build-val3dity \
5051
--build-cjval \
52+
--build-cjio \
5153
--jobs $JOBS \
5254
--clean
5355

tools-build.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ build_geotiff=false
2222
build_pdal=false
2323
build_val3dity=false
2424
build_cjval=false
25+
build_cjio=false
2526

2627
geos_version="3.12.1"
2728
geotiff_version="1.7.3"
@@ -57,6 +58,7 @@ usage() {
5758
echo " --build-pdal Build PDAL"
5859
echo " --build-val3dity Build Val3dity"
5960
echo " --build-cjval Build cjval"
61+
echo " --build-cjio Build cjio"
6062
}
6163

6264
has_argument() {
@@ -108,6 +110,7 @@ handle_options() {
108110
build_pdal=true
109111
build_val3dity=true
110112
build_cjval=true
113+
build_cjio=true
111114
;;
112115
--build-tyler)
113116
build_tyler=true
@@ -142,6 +145,9 @@ handle_options() {
142145
--build-cjval)
143146
build_cjval=true
144147
;;
148+
--build-cjio)
149+
build_cjio=true
150+
;;
145151
*)
146152
echo "Invalid option: $1" >&2
147153
usage
@@ -344,8 +350,6 @@ fi
344350
if [ "$build_val3dity" = true ] ; then
345351
printf "\n\nInstalling Val3dity...\n\n"
346352
cd $root_dir || exit
347-
apt update -y
348-
apt install libeigen3-dev libgeos++-dev libcgal-dev build-essential libboost-all-dev -y
349353
wget --no-verbose https://github.com/tudelft3d/val3dity/archive/refs/tags/${val3dity_version}.zip -O ${val3dity_version}.zip
350354
unzip -q ${val3dity_version}.zip
351355
mkdir val3dity-${val3dity_version}/build
@@ -368,6 +372,12 @@ if [ "$build_cjval" = true ] ; then
368372
--features build-binary
369373
fi
370374

375+
if [ "$build_cjio" = true ] ; then
376+
printf "\n\nInstalling cjio...\n\n"
377+
pipx install cjio
378+
pipx ensurepath
379+
fi
380+
371381
if [ "$clean_up" = true ] ; then
372382
cd $root_dir || exit
373383
printf "\n\nDeleting build artifacts...\n\n"

tools-test.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,16 @@ check_exe_lastools() {
7777
fi
7878
}
7979

80+
check_exe_cjio() {
81+
/root/.local/bin/$1 --version &> /dev/null
82+
if [ $? -eq 0 ] ; then
83+
printf "[${GREEN}OK${NC}].....$1\n"
84+
else
85+
printf "[${RED}FAIL${NC}]...$1\n"
86+
all_ok=1
87+
fi
88+
}
89+
8090
check_exe_help() {
8191
bin/$1 --help &> /dev/null
8292
if [ $? -eq 0 ] ; then
@@ -96,8 +106,9 @@ check_exe "ogrinfo"
96106
check_exe "pdal"
97107
check_exe "val3dity"
98108
check_exe "cjval"
109+
check_exe_cjio "cjio"
99110
check_exe_help "sozip"
100111
check_exe_lastools "las2las64"
101112
check_exe_lastools "lasindex64"
102113

103-
exit $all_ok
114+
exit #$all_ok

0 commit comments

Comments
 (0)