Skip to content

Commit

Permalink
Merge pull request #753 from asfadmin/test
Browse files Browse the repository at this point in the history
Geojson Hotfix
  • Loading branch information
SpicyGarlicAlbacoreRoll authored Apr 25, 2024
2 parents 50998b4 + 88be871 commit 26d24e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SearchAPI/CMR/Output/geojson.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def getItem(self, p):
coordinates = []

if p.get('shape') is not None:
coordinates = [[float(c['lon']), float(c['lat'])] for c in p.get('shape')]
coordinates = [
[[float(c['lon']), float(c['lat'])] for c in p.get('shape')]
]

result = {
'type': 'Feature',
Expand Down

0 comments on commit 26d24e3

Please sign in to comment.