Installation
PDAL Python provides Python bindings for the PDAL library. You’ll need both the PDAL base library and the Python package installed to get started.Prerequisites
Before installing PDAL Python, ensure you have:- PDAL base library 2.7 or higher: The core PDAL library must be installed on your system
- Python 3.9 or higher: PDAL Python supports Python 3.9, 3.10, 3.11, and 3.12
- NumPy 1.22 or higher: Required for array operations
Install from PyPI
The simplest way to install PDAL Python is using pip:Install PDAL Python
Run the following command to install PDAL Python and its dependencies:This will automatically install NumPy if it’s not already present.
Developer installation
If you’re developing PDAL Python or need a custom build, you can install from source with full control over the build configuration.Build and install
Install in editable mode with custom build settings using scikit-build-core:This command:
- Sets the build directory to
build - Installs in editable mode (
-e) - Configures a Debug build (change to “Release” for production)
- Enables verbose output (
-vv) - Skips dependency resolution and build isolation for development
Developers can control many build settings including debug builds and library installation paths using scikit-build-core configuration settings.
Optional dependencies
PDAL Python integrates with additional libraries for extended functionality:Mesh support
For mesh creation and export capabilities:Pipeline.get_meshio() method for working with triangulated meshes.
DataFrame support
For pandas and GeoPandas integration:Pipeline.get_dataframe() and Pipeline.get_geodataframe() methods.
Platform-specific notes
Installing PDAL base library
The installation method for the PDAL base library varies by platform: Ubuntu/Debian:Next steps
Quick start
Create your first PDAL pipeline and start processing point cloud data