Skip to content

Commit

Permalink
Merge pull request #752 from asfadmin/hotfix-geojson-spec
Browse files Browse the repository at this point in the history
Geojson Fix
  • Loading branch information
SpicyGarlicAlbacoreRoll authored Apr 25, 2024
2 parents e2cdac4 + 53abc41 commit 88be871
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 88be871

Please sign in to comment.