Skip to content

Commit

Permalink
Keep legacy properties
Browse files Browse the repository at this point in the history
  • Loading branch information
IKCAP committed Oct 23, 2024
1 parent 8fa1fd5 commit 12ce1bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pylipd/utils/lipd_to_rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,12 @@ 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]
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) :
Expand Down

0 comments on commit 12ce1bf

Please sign in to comment.