Skip to content

Commit

Permalink
fix lat/long
Browse files Browse the repository at this point in the history
  • Loading branch information
IKCAP committed Oct 23, 2024
1 parent a9789d7 commit 8fa1fd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pylipd/utils/lipd_to_rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,10 @@ def _parse_location(self, geo, parent = None) :
coords = geo["geometry"]["coordinates"]
if (coords and len(coords) > 0) :
ngeo["coordinates"] = str(str(coords[1]) + ",") + str(coords[0])
ngeo["wgs84:lat"] = coords[1]
ngeo["wgs84:long"] = coords[0]
ngeo["latitude"] = coords[1]
ngeo["longitude"] = coords[0]
if (len(coords) > 2) :
ngeo["wgs84:alt"] = coords[2]
ngeo["elevation"] = coords[2]

if "properties" in geo and isinstance(geo["properties"], dict) :
for key,value in geo["properties"].items() :
Expand Down

0 comments on commit 8fa1fd5

Please sign in to comment.