Skip to content

Commit

Permalink
replace eval
Browse files Browse the repository at this point in the history
  • Loading branch information
baloola committed Sep 14, 2022
1 parent 1282dcb commit 64189cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion eoxserver/services/ows/wps/processes/get_height_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

import csv
from uuid import uuid4
import json

from math import radians, cos, sin, asin, sqrt

Expand Down Expand Up @@ -123,7 +124,7 @@ def execute(coverage, line, interval, method, profile, **kwarg):
"""

if isinstance(line, str):
line = eval(line)
line = json.loads('[%s]' % line)

line_distance = haversine(line[0], line[1], line[2], line[3])

Expand Down

0 comments on commit 64189cb

Please sign in to comment.