diff --git a/setup.cfg b/setup.cfg index 1149a1c9..1c258858 100644 --- a/setup.cfg +++ b/setup.cfg @@ -46,6 +46,7 @@ xdem = include = xdem xdem.coreg + xdem.epc [options.extras_require] opt = diff --git a/tests/test_epc/test_epc.py b/tests/test_epc/test_epc.py new file mode 100644 index 00000000..8a5b5180 --- /dev/null +++ b/tests/test_epc/test_epc.py @@ -0,0 +1,5 @@ +"""Test module for EPC class.""" + +class TestEPC: + + \ No newline at end of file diff --git a/xdem/epc/epc.py b/xdem/epc/epc.py new file mode 100644 index 00000000..d4cab704 --- /dev/null +++ b/xdem/epc/epc.py @@ -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. + """