Skip to content

Commit

Permalink
Undo incorrect commit
Browse files Browse the repository at this point in the history
  • Loading branch information
SorooshMani-NOAA committed Oct 10, 2023
1 parent 87aa00f commit b0d9b0c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ocsmesh/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1385,13 +1385,13 @@ def msh_t_to_grd(msh: jigsaw_msh_t) -> Dict:
desc = "EPSG:4326"
if src_crs is not None:
# TODO: Support non EPSG:4326 CRS
desc = src_crs.to_string()
# epsg_4326 = CRS.from_epsg(4326)
# if not src_crs.equals(epsg_4326):
# transformer = Transformer.from_crs(
# src_crs, epsg_4326, always_xy=True)
# coords = np.vstack(
# transformer.transform(coords[:, 0], coords[:, 1])).T
# desc = src_crs.to_string()
epsg_4326 = CRS.from_epsg(4326)
if not src_crs.equals(epsg_4326):
transformer = Transformer.from_crs(
src_crs, epsg_4326, always_xy=True)
coords = np.vstack(
transformer.transform(coords[:, 0], coords[:, 1])).T

nodes = {
i + 1: [tuple(p.tolist()), v] for i, (p, v) in
Expand Down

0 comments on commit b0d9b0c

Please sign in to comment.