Skip to content

Commit

Permalink
fixese
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 14, 2025
1 parent 0e2dc2c commit 7cc4dbc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/sparqlunicorn_ontdoc/export/api/wfsexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ def generateFeatureDescriptions(outpath,deploypath,featurecollectionspaths,versi
for prop in firstfeat["properties"]:
result+=f"""<element name="{prop}" minOccurs="0"/>"""
result+="</sequence></extension></complexContent></complexType>"
f = open(op + "/index.json", "w", encoding="utf-8")
f.write(json.dumps(currentcollection))
result+="</schema>"
f = open(op + "/index.xml", "w", encoding="utf-8")
f.write(json.dumps(result))
f.close()
f = open(op + "/index.html", "w", encoding="utf-8")
f = open(op + "/indexc.html", "w", encoding="utf-8")
f.write("<html><head><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" /></head><body><h1>" + featurecollectionspaths[coll][
"name"] + "</h1><table><thead><tr><th>Collection</th><th>Links</th></tr></thead><tbody>" #+ str(curcollrow)
+ "</tbody></table></html>")
Expand Down

0 comments on commit 7cc4dbc

Please sign in to comment.