Skip to content

Commit

Permalink
Update srsbuild.py
Browse files Browse the repository at this point in the history
  • Loading branch information
situx authored Feb 12, 2025
1 parent f17edaa commit 35ffd16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/srsbuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

exont={}

ldcontext={"@context":{"geosrs":"https://w3id.org/geosrs#"}}
ldcontext={"@context":{"geosrs":"https://w3id.org/geosrs#"},"type":{"@id":"rdf:type","@type":"@vocab"},"unit":{"@id":"om:hasUnit","@type":"@vocab"}}

prefixtoclasses={"geosrs":[]}
prefixtoproperties={"geosrs":[],"CS":[],"CO":[],"DATUM":[],"projection":[]}
Expand Down Expand Up @@ -192,7 +192,7 @@ def getNSForClass(cls,prefixmap):
g.serialize(destination="alignments.ttl")

for pref in prefixtoclasses:
ldcontext["@context"][pref]=geocrsNS[:-1]+"/"+pref+"#"
ldcontext["@context"][pref]=geocrsNS[:-1]+"/"+pref.replace("geosrs_","")+"#"
for cls in prefixtoclasses[pref]:
ldcontext["@context"][cls[cls.rfind('#')+1:]]=pref+":"+cls[cls.rfind('#')+1:]
if pref in prefixtoproperties:
Expand Down

0 comments on commit 35ffd16

Please sign in to comment.