Skip to content

Commit

Permalink
Add EPC class
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet committed Dec 5, 2024
1 parent e0afc9d commit d2fbd1a
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
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.
"""

0 comments on commit d2fbd1a

Please sign in to comment.