Modern GIS toolkit for Python - Simplifying geospatial workflows with built-in data sources, intelligent caching, and fluent APIs
This example aims to demonstrate basic loading and inspection of point cloud data from LAS/LAZ files using pymapgis
, which would typically rely on the PDAL (Point Data Abstraction Library) in the backend.
IMPORTANT NOTE: As of the current environment setup, the core PDAL C++ library (a prerequisite for its Python bindings) is not available in the standard system repositories. This prevents the successful installation of pdal
Python package and thus hinders the execution of the example script (point_cloud_example.py
) as intended. The script is provided to illustrate how one might interact with point cloud data via PDAL’s Python API (which pymapgis
would likely wrap or expose).
The point_cloud_example.py
script is designed to:
sample.las
) using PDAL’s pipeline mechanism.sample.las
The sample.las
file included in this directory is a small, simple LAS file from the PDAL repository, intended for basic testing and demonstration. It contains 1065 points.
To run this example successfully, a full PDAL installation is required:
apt-get install libpdal-dev pdal
on some Ubuntu versions, or building from source).
pdal
Python package. This can typically be installed via pip, but requires the C++ library to be present.
pip install pdal numpy
pymapgis
: The core library (assumed to be in your environment, and would ideally handle PDAL integration).numpy
: For array manipulations.cd path/to/your/pymapgis/docs/examples/point_cloud_basic/
python point_cloud_example.py
If PDAL were correctly installed and operational, the script would output:
Due to the current inability to install PDAL, running the script will likely result in import errors or PDAL runtime errors.