-
-
Notifications
You must be signed in to change notification settings - Fork 335
Fix issue #201 : add PDAL reader #2014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 10 commits
f1e02cb
6bc28c1
5e0f7ec
73ce036
9fcd61c
7048e05
878d5ac
d8330f1
23d52c3
a90c481
70ccd01
1b67c16
71b1cac
ac3b28f
77b1eb6
e3191a5
d517c7d
5b39c7c
3878a99
f626723
1ab0ccd
ad06471
ccfb48b
982d1a5
caf5e62
41a7901
8a22ad8
2f783ac
168ca03
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: 'Install GDAL Dependency' | ||
description: 'Install GDAL Dependency using cache when possible' | ||
inputs: | ||
cpu: | ||
description: 'CPU architecture to build for' | ||
required: false | ||
default: 'x86_64' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Cache GDAL | ||
id: cache-gdal | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: dependencies/gdal_install | ||
key: gdal-v3.8.0-${{runner.os}}-${{inputs.cpu}}-0 | ||
|
||
# Dependents: pdal, proj | ||
- name: Checkout GDAL | ||
if: steps.cache-gdal.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: OSGeo/gdal | ||
path: './dependencies/gdal' | ||
ref: v3.8.0 | ||
|
||
- name: Setup GDAL | ||
if: steps.cache-gdal.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies | ||
shell: bash | ||
run: | | ||
mkdir gdal_build | ||
mkdir gdal_install | ||
|
||
- name: Configure GDAL | ||
if: steps.cache-gdal.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies/gdal_build | ||
shell: bash | ||
run: > | ||
cmake ../gdal | ||
-DBUILD_SHARED_LIBS=ON | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DCMAKE_INSTALL_PREFIX=../gdal_install | ||
-DGDAL_USE_EXTERNAL_LIBS=ON | ||
-DGDAL_ENABLE_DRIVER_GPKG=ON | ||
-DGDAL_ENABLE_DRIVER_TIFF=ON | ||
-DGDAL_ENABLE_DRIVER_NETCDF=OFF | ||
-DGDAL_ENABLE_DRIVER_POSTGIS=OFF | ||
-DGDAL_ENABLE_DRIVER_SHP=ON | ||
-DGDAL_ENABLE_DRIVER_VRT=ON | ||
-DGDAL_ENABLE_DRIVER_PDF=OFF | ||
-DGDAL_ENABLE_DRIVER_OPENJPEG=OFF | ||
-DGDAL_ENABLE_DRIVER_JPEG=ON | ||
-DGDAL_ENABLE_DRIVER_PNG=ON | ||
-DGDAL_USE_ZLIB=ON | ||
-DGDAL_USE_LZMA=ON | ||
-DGDAL_USE_ZSTD=ON | ||
-DCMAKE_PREFIX_PATH:PATH=$(pwd)/../install/ | ||
${{ runner.os == 'macOS' && '-DCMAKE_OSX_DEPLOYMENT_TARGET=12.0' || null }} | ||
${{ runner.os == 'Windows' && '-Ax64 -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL' || null }} | ||
|
||
- name: Build GDAL | ||
if: steps.cache-gdal.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies/gdal_build | ||
shell: bash | ||
run: cmake --build . --parallel 2 --target install --config Release | ||
|
||
- name: Copy to install | ||
working-directory: ${{github.workspace}}/dependencies/gdal_install | ||
shell: bash | ||
run: cp -r ./* ../install/ | ||
|
||
- name: Save cache | ||
if: steps.cache-gdal.outputs.cache-hit != 'true' | ||
uses: actions/cache/save@v4 | ||
with: | ||
key: ${{ steps.cache-gdal.outputs.cache-primary-key }} | ||
path: dependencies/gdal_install |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: 'Install PDAL Dependency' | ||
description: 'Install PDAL Dependency using cache when possible' | ||
inputs: | ||
cpu: | ||
description: 'CPU architecture to build for' | ||
required: false | ||
default: 'x86_64' | ||
version: | ||
description: 'Version of PDAL to build' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
- name: Check required inputs | ||
shell: bash | ||
run: | | ||
[[ "${{ inputs.version }}" ]] || { echo "version input is empty" ; exit 1; } | ||
|
||
- name: Cache PDAL | ||
id: cache-pdal | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: dependencies/pdal_install | ||
key: pdal-${{inputs.version}}-${{runner.os}}-${{inputs.cpu}}-0 | ||
|
||
# Dependents (not version): vtk | ||
- name: Checkout PDAL | ||
if: steps.cache-pdal.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: PDAL/PDAL | ||
path: './dependencies/pdal' | ||
ref: ${{inputs.version}} | ||
|
||
- name: Setup PDAL | ||
if: steps.cache-pdal.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies | ||
shell: bash | ||
run: | | ||
mkdir pdal_build | ||
mkdir pdal_install | ||
|
||
- name: Configure PDAL | ||
if: steps.cache-pdal.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies/pdal_build | ||
shell: bash | ||
run: > | ||
cmake ../pdal | ||
-DBUILD_SHARED_LIBS=ON | ||
-DCMAKE_BUILD_TYPE=Release | ||
-DCMAKE_CXX_STANDARD=17 | ||
-DCMAKE_CXX_STANDARD_REQUIRED=ON | ||
-DCMAKE_CXX_EXTENSIONS=OFF | ||
-DCMAKE_INSTALL_LIBDIR:PATH=lib | ||
-DCMAKE_INSTALL_PREFIX=../pdal_install | ||
-DCMAKE_POSITION_INDEPENDENT_CODE=ON | ||
-DCMAKE_PREFIX_PATH:PATH=$(pwd)/../install/ | ||
-DWITH_TESTS=OFF | ||
-DWITH_COMPLETION=OFF | ||
-DWITH_LASZIP=ON | ||
-DWITH_ZSTD=ON | ||
-DWITH_LZMA=ON | ||
-DWITH_GDAL=ON | ||
${{ runner.os == 'macOS' && '-DCMAKE_OSX_DEPLOYMENT_TARGET=12.0' || null }} | ||
${{ runner.os == 'Windows' && '-Ax64 -DCMAKE_POLICY_DEFAULT_CMP0091=NEW -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreadedDLL' || null }} | ||
|
||
- name: Build PDAL | ||
if: steps.cache-pdal.outputs.cache-hit != 'true' | ||
working-directory: ${{github.workspace}}/dependencies/pdal_build | ||
shell: bash | ||
run: cmake --build . --parallel 2 --target install --config Release | ||
|
||
- name: Copy to install | ||
working-directory: ${{github.workspace}}/dependencies/pdal_install | ||
shell: bash | ||
run: cp -r ./* ../install/ | ||
|
||
- name: Save cache | ||
if: steps.cache-pdal.outputs.cache-hit != 'true' | ||
uses: actions/cache/save@v4 | ||
with: | ||
key: ${{ steps.cache-pdal.outputs.cache-primary-key }} | ||
path: dependencies/pdal_install |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ runs: | |
path: dependencies/zlib_install | ||
key: zlib-v1.3.1-${{runner.os}}-${{inputs.cpu}}-4 | ||
|
||
# Dependents: blosc openvdb vtk | ||
# Dependents: blosc openvdb pdal vtk | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. pdal depends on zlib ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, PDAL depends on zlib. You can see this in PDAL’s CMakeLists.txt, where it uses find_package(ZLIB REQUIRED) to locate and link against it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ok :) |
||
- name: Checkout zlib | ||
if: steps.cache-zlib.outputs.cache-hit != 'true' | ||
uses: actions/checkout@v4 | ||
|
Uh oh!
There was an error while loading. Please reload this page.