From b4c7c8060c5cf50613388c10f10b11ea63115082 Mon Sep 17 00:00:00 2001 From: Timo Date: Tue, 14 Jan 2025 03:16:11 +0100 Subject: [PATCH] fixes --- src/sparqlunicorn_ontdoc/export/api/wfsexporter.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/sparqlunicorn_ontdoc/export/api/wfsexporter.py b/src/sparqlunicorn_ontdoc/export/api/wfsexporter.py index f4a4aa8..b7ff14f 100644 --- a/src/sparqlunicorn_ontdoc/export/api/wfsexporter.py +++ b/src/sparqlunicorn_ontdoc/export/api/wfsexporter.py @@ -12,7 +12,7 @@ def generateFeatureDescriptions(outpath,deploypath,featurecollectionspaths,versi if os.path.exists(coll): with open(coll, 'r', encoding="utf-8") as infile: curcoll = json.load(infile) - op = outpath + "wfs/DescribeFeatureType/?SERVICE=WFS&REQUEST=DescribeFeatureType&VERSION="+version+"&typeName=" + coll.replace(outpath, "").replace("index.geojson", "") + op = outpath + "wfs/DescribeFeatureType/%3FSERVICE=WFS&REQUEST=DescribeFeatureType&VERSION="+version+"&typeName=" + coll.replace(outpath, "").replace("index.geojson", "") os.mkdir(op) op = op.replace(".geojson", "") op = op.replace("//", "/") @@ -63,7 +63,7 @@ def generateFeatureList(outpath,deploypath,featurecollectionspaths,version,fsres if os.path.exists(coll): with open(coll, 'r', encoding="utf-8") as infile: curcoll = json.load(infile) - op = outpath + "wfs/GetFeature/request=GetFeature&version="+version+"&typeName=" + coll.replace(outpath, "").replace("index.geojson", "") + op = outpath + "wfs/GetFeature/SERVICE=WFS&REQUEST=GetFeature&VERSION="+version+"&TYPENAME=" + coll.replace(outpath, "").replace("index.geojson", "") os.mkdir(op) op = op.replace(".geojson", "") op = op.replace("//", "/") @@ -176,14 +176,14 @@ def generateWFSPages11(outpath,deploypath,featurecollectionspaths,license,wfsver getcapabilities="" getcapabilities+=f""" - Static WFS 1.1.0 + Static WFS {wfsversion} This Static WFS exposes geodata included in the knowledge grap for the inclusion into GIS applications. {deploypath} String WFS - 1.1.0 + {wfsversion} None {license} @@ -248,7 +248,7 @@ def generateWFSPages20(outpath,deploypath,featurecollectionspaths,license,wfsver getcapabilities="" getcapabilities+=f""" - Static WFS 2.0 + Static WFS {wfsversion} This Static WFS exposes geodata included in the knowledge grap for the inclusion into GIS applications. {deploypath}