https://github.com/hideba/ahn_cli
Python CLI tool which helps you to download AHN point cloud data easily
https://github.com/hideba/ahn_cli
ahn delft-university-of-technology geo geospatial-data lasfile laspy point-cloud python
Last synced: about 1 month ago
JSON representation
Python CLI tool which helps you to download AHN point cloud data easily
- Host: GitHub
- URL: https://github.com/hideba/ahn_cli
- Owner: HideBa
- License: mit
- Created: 2023-12-13T21:59:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-04T14:16:04.000Z (12 months ago)
- Last Synced: 2024-05-05T08:36:50.705Z (12 months ago)
- Topics: ahn, delft-university-of-technology, geo, geospatial-data, lasfile, laspy, point-cloud, python
- Language: Python
- Homepage:
- Size: 40.2 MB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# AHN CLI
[](https://opensource.org/licenses/MIT)
[](https://github.com/HideBa/ahn-cli/releases/tag/v0.2.1)
[](https://github.com/HideBa/ahn-cli/actions)## Description
AHN CLI is a command-line interface tool designed for the effortless downloading of AHN (Actueel Hoogtebestand Nederland) point cloud data for specific cities and classification classes.
## Installation
Install AHN CLI using pip:
```
pip install ahn_cli
```## Usage
To utilize the AHN CLI, execute the following command with the appropriate options:
```shell
Options:
-c, --city Download point cloud data for the specified city.
-o, --output Designate the output file for the downloaded data.
-i, --include-class Include specific point cloud classes in the download,
specified in a comma-separated list. Available classes:
0:Created, never classified; 1:Unclassified; 2:Ground;
6:Building; 9:Water; 14:High tension; 26:Civil structure.
-e, --exclude-class Exclude specific point cloud classes from the download,
specified in a comma-separated list. Available classes as above.
-d, --decimate Decimate the point cloud data by the specified step.
-ncc, --no-clip-city Avoid clipping the point cloud data to the city boundary.
-cf, --clip-file Provide a file path for a clipping boundary file to clip
the point cloud data to a specified area.
-e, --epsg Set the EPSG code for user's clip file.
-b, --bbox Specify a bounding box to clip the point cloud data. It should be comma-separated list with minx,miny,maxx,maxy
centered on the city polygon.
-p, --preview Preview the point cloud data in a 3D viewer.
-h, --help [category] Show help information. Optionally specify a category for
detailed help on a specific command.
-v, --version Display the version number of the AHN CLI and exit.
```### Usage Examples
**Download Point Cloud Data for Delft with All Classification Classes:**
```
ahn_cli -c delft -o ./delft.laz
```**To Include or Exclude Specific Classes:**
```
ahn_cli -c delft -o ./delft.laz -i 1,2
```**For Non-Clipped, Rectangular-Shaped Data:**
```
ahn_cli -c delft -o ./delft.laz -i 1,2 -ncc
```**To Decimate City-Scale Point Cloud Data:**
```
ahn_cli -c delft -o ./delft.laz -i 1,2 -d 2
```**Specify a Bounding box for clipping:**
If you specify a `b`, it will clip the point cloud data with specified bounding box.
```
ahn_cli -o ./delft.laz -i 1,2 -b 194198.0,443461.0,194594.0,443694.0
```## Reporting Issues
Encountering issues or bugs? We greatly appreciate your feedback. Please report any problems by opening an issue on our GitHub repository. Be as detailed as possible in your report, including steps to reproduce the issue, the expected outcome, and the actual result. This information will help us address and resolve the issue more efficiently.
## Contributing
Your contributions are welcome! If you're looking to contribute to the AHN CLI project, please first review our Contribution Guidelines. Whether it's fixing bugs, adding new features, or improving documentation, we value your help.
To get started:
- Fork the repository on GitHub.
- Clone your forked repository to your local machine.
- Create a new branch for your contribution.
- Make your changes and commit them with clear, descriptive messages.
Push your changes to your fork.
- Submit a pull request to our repository, providing details about your changes and the value they add to the project.
- We look forward to reviewing your contributions and potentially merging them into the project!