Skip to content

Commit

Permalink
Merge pull request #138 from IGNF/dev
Browse files Browse the repository at this point in the history
fix: change name fonction to fix understanding
  • Loading branch information
ACornuIGN authored Jun 12, 2024
2 parents 96bef50 + e8bf2d2 commit f357ae5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions borea/geodesy/transform_geodesy.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def tf_geoid(self, geoid: list) -> None:
"""
try:
# Transform geographic coordinates to geoide coordinates
self.geog_to_geoid = pyproj.Transformer.from_pipeline(f"+proj=vgridshift "
self.geoid_to_geog = pyproj.Transformer.from_pipeline(f"+proj=vgridshift "
f"+grids={','.join(geoid)} "
"+multiplier=1").transform
# Transform geoide coordinates to geographic coordinates
self.geoid_to_geog = pyproj.Transformer.from_pipeline(f"+proj=vgridshift "
self.geog_to_geoid = pyproj.Transformer.from_pipeline(f"+proj=vgridshift "
f"+grids={','.join(geoid)} "
"+multiplier=-1").transform
except pyproj.exceptions.ProjError as e:
Expand All @@ -73,7 +73,7 @@ def tranform_height(self, coor: np.ndarray) -> float:
"""
coor_geog = self.carto_to_geog(coor[0], coor[1], coor[2])
try:
coor_geog = self.geog_to_geoid(coor_geog[0],
coor_geog = self.geoid_to_geog(coor_geog[0],
coor_geog[1],
coor_geog[2])
new_z = self.geog_to_carto(coor_geog[0],
Expand All @@ -99,7 +99,7 @@ def tranform_altitude(self, coor: np.ndarray) -> float:
"""
coor_geog = self.carto_to_geog(coor[0], coor[1], coor[2])
try:
coor_geog = self.geoid_to_geog(coor_geog[0],
coor_geog = self.geog_to_geoid(coor_geog[0],
coor_geog[1],
coor_geog[2])
new_z = self.geog_to_carto(coor_geog[0],
Expand Down

0 comments on commit f357ae5

Please sign in to comment.