Skip to content
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

Add ElevationPointCloud class #664

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ xdem =
include =
xdem
xdem.coreg
xdem.epc

[options.extras_require]
opt =
Expand Down
5 changes: 5 additions & 0 deletions tests/test_epc/test_epc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"""Test module for EPC class."""

class TestEPC:


26 changes: 26 additions & 0 deletions xdem/epc/epc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""Module for the ElevationPointCloud class."""
from __future__ import annotations

from geoutils import PointCloud

class EPC(PointCloud):
"""
The georeferenced elevation point cloud.

An elevation point cloud is a vector of 3D point geometries, or a vector of 2D point geometries associated to
an elevation value from a main data column, optionally with auxiliary data columns.

Main attributes:
ds: :class:`geopandas.GeoDataFrame`
Geodataframe of the point cloud.
data_column: str
Name of point cloud data column.
crs: :class:`pyproj.crs.CRS`
Coordinate reference system of the point cloud.
bounds: :class:`rio.coords.BoundingBox`
Coordinate bounds of the point cloud.


All other attributes are derivatives of those attributes, or read from the file on disk.
See the API for more details.
"""
Loading