Skip to content

Commit

Permalink
fixes missing bracket in geojson output
Browse files Browse the repository at this point in the history
  • Loading branch information
kim committed Apr 25, 2024
1 parent e2cdac4 commit 53abc41
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 53abc41

Please sign in to comment.