Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
situx committed Jan 13, 2025
1 parent 4c6945c commit f56af61
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/sparqlunicorn_ontdoc/export/api/wfsexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ def generateFeatureList(outpath,deploypath,featurecollectionspaths,version,fsres
currentcollection["crs"] = curcoll["crs"]
if "extent" in currentcollection:
currentcollection["extent"]["spatial"]["crs"] = curcoll["crs"]
apijson["paths"]["/collections/" + str(
coll.replace(outpath, "").replace("index.geojson", "").replace(".geojson", "")[1:]).rstrip("/")] = {
"get": {"tags": ["Collections"], "summary": "describes collection " + str(
str(coll.replace(outpath, "").replace("index.geojson", "").replace(".geojson", "")[1:])).rstrip(
"/"), "description": "Describes the collection with the id " + str(
str(coll.replace(outpath, "").replace("index.geojson", "").replace(".geojson", "")[1:])).rstrip(
"/"), "operationId": "collection-" + str(
coll.replace(outpath, "").replace("index.geojson", "").replace(".geojson", "")[1:]),
"parameters": [], "responses": {"default": {"description": "default response", "content": {
"application/json": {"schema": {"$ref": "#/components/schemas/Collections"},"example": None}}}}}}
#apijson["paths"]["/collections/" + str(
# coll.replace(outpath, "").replace("index.geojson", "").replace(".geojson", "")[1:]).rstrip("/")] = {
# "get": {"tags": ["Collections"], "summary": "describes collection " + str(
# str(coll.replace(outpath, "").replace("index.geojson", "").replace(".geojson", "")[1:])).rstrip(
# "/"), "description": "Describes the collection with the id " + str(
# str(coll.replace(outpath, "").replace("index.geojson", "").replace(".geojson", "")[1:])).rstrip(
# "/"), "operationId": "collection-" + str(
# coll.replace(outpath, "").replace("index.geojson", "").replace(".geojson", "")[1:]),
# "parameters": [], "responses": {"default": {"description": "default response", "content": {
# "application/json": {"schema": {"$ref": "#/components/schemas/Collections"},"example": None}}}}}}
#curcollrow = "<tr><td><a href=\"" + opweb.replace(".geojson", "") + "/items/"+collectionhtmlname+"\">" + str(
# featurecollectionspaths[coll]["name"]) + "</a></td><td>"+str(len(curcoll["features"]))+"</td><td><a href=\"" + opweb.replace(".geojson",
# "") + "/items/"+collectionhtmlname+"\">[Collection as HTML]</a>&nbsp;<a href=\"" + opweb.replace(
Expand Down

0 comments on commit f56af61

Please sign in to comment.