From 4ca72909c4980fb96b724d0edc4ce995dd8a08c5 Mon Sep 17 00:00:00 2001 From: Taylor Denouden Date: Mon, 5 Dec 2022 17:25:47 -0800 Subject: [PATCH] Add support for ITRF2020 --- las_trx/config.py | 2 ++ las_trx/resources/mainwindow.ui | 10 ++++++++++ las_trx/utils.py | 1 + pyproject.toml | 2 +- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/las_trx/config.py b/las_trx/config.py index ad24c15..7dcab57 100644 --- a/las_trx/config.py +++ b/las_trx/config.py @@ -35,6 +35,8 @@ class TransformConfig(BaseModel): def t_crs(self) -> CRS: if self.t_ref_frame == enums.Reference.NAD83CSRS: geodetic_crs = GeographicCRS.from_epsg(4617) + elif self.t_ref_frame == enums.Reference.ITRF20: + geodetic_crs = GeographicCRS.from_epsg(9989) elif self.t_ref_frame == enums.Reference.ITRF14: geodetic_crs = GeographicCRS.from_epsg(9000) elif self.t_ref_frame == enums.Reference.ITRF08: diff --git a/las_trx/resources/mainwindow.ui b/las_trx/resources/mainwindow.ui index 61824fd..4ae2428 100644 --- a/las_trx/resources/mainwindow.ui +++ b/las_trx/resources/mainwindow.ui @@ -203,6 +203,11 @@ WGS84 + + + ITRF2020 + + ITRF2014 @@ -477,6 +482,11 @@ WGS84 + + + ITRF2020 + + ITRF2014 diff --git a/las_trx/utils.py b/las_trx/utils.py index 685026b..58217a1 100644 --- a/las_trx/utils.py +++ b/las_trx/utils.py @@ -36,6 +36,7 @@ def date_to_decimal_year(d: T) -> T: REFERENCE_LOOKUP = { "NAD83(CSRS)": Reference.NAD83CSRS, "WGS84": Reference.WGS84, + "ITRF2020": Reference.ITRF20, "ITRF2014": Reference.ITRF14, "ITRF2008": Reference.ITRF08, "ITRF2005": Reference.ITRF05, diff --git a/pyproject.toml b/pyproject.toml index 9f5da32..8825119 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ laspy = "^2.3.0" laszip = "^0.1.0" pydantic = "^1.10.2" pyproj = "^3.4.0" -csrspy = "^0.3.1" +csrspy = "^0.4.0" pyqt6 = "^6.4.0" [tool.poetry.dev-dependencies]