Skip to content

Commit

Permalink
Merge pull request #157 from changliao1025/development
Browse files Browse the repository at this point in the history
polygon bug fix
  • Loading branch information
changliao1025 authored Jul 18, 2023
2 parents 1915479 + 4533fc8 commit 59d0cde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pyflowline/mesh/mpas/create_mpas_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,13 @@ def add_cell_into_list(aList, i, lCellID, dArea,dElevation_mean,dElevation_profi
aCoords[j,0] = x1
aCoords[j,1] = y1
pass

x1 = convert_360_to_180(aLonVertex[0])
y1 = aLatVertex[0]
ring.AddPoint(x1, y1) #double check
pPolygon = ogr.Geometry(ogr.wkbPolygon)
pPolygon.AddGeometry(ring)

if dLat < -60:
iFlag = True
else:
Expand Down

0 comments on commit 59d0cde

Please sign in to comment.