@@ -127,7 +127,7 @@ def generateOGCAPIFeaturesPages(outpath,deploypath, featurecollectionspaths, pre
127
127
"title" : "this document as HTML" }]}
128
128
collectionshtml = "<html><head><meta name=\" viewport\" content=\" width=device-width, initial-scale=1\" /><link rel=\" stylesheet\" href=\" https://cdn.datatables.net/2.2.1/css/dataTables.dataTables.css\" /><script src=\" https://code.jquery.com/jquery-3.7.1.js\" ></script><script src=\" https://cdn.datatables.net/2.2.1/js/dataTables.js\" ></script></head><body><header><h1>Collections of " + str (
129
129
deploypath ) + "</h1></head>{{collectiontable}}<footer><a href=\" index.json\" >This page as JSON</a></footer><script>$(document).ready( function () {$('#collectiontable').DataTable();} );</script></body></html>"
130
- collectiontable = "<table id=\" collectiontable\" ><thead><th>Collection</th><th>Links</th></thead><tbody>"
130
+ collectiontable = "<table id=\" collectiontable\" ><thead><th>Collection</th><th>#Features</th><th> Links</th></thead><tbody>"
131
131
apijson ["paths" ]["/collections" ] = {"get" : {"tags" : ["Collections" ], "summary" : "describes collections" ,
132
132
"description" : "Describes all collections provided by this service" ,
133
133
"operationId" : "collections" , "parameters" : [], "responses" : {
@@ -203,7 +203,7 @@ def generateOGCAPIFeaturesPages(outpath,deploypath, featurecollectionspaths, pre
203
203
"parameters" : [], "responses" : {"default" : {"description" : "default response" , "content" : {
204
204
"application/json" : {"schema" : {"$ref" : "#/components/schemas/Collections" },"example" : None }}}}}}
205
205
curcollrow = "<tr><td><a href=\" " + opweb .replace (".geojson" , "" ) + "/items/indexc.html\" >" + str (
206
- featurecollectionspaths [coll ]["name" ]) + "</a></td><td><a href=\" " + opweb .replace (".geojson" ,
206
+ featurecollectionspaths [coll ]["name" ]) + "</a></td><td>" + str ( len ( curcoll [ "features" ])) + "</td><td> <a href=\" " + opweb .replace (".geojson" ,
207
207
"" ) + "/items/indexc.html\" >[Collection as HTML]</a> <a href=\" " + opweb .replace (
208
208
".geojson" , "" ) + "/items/\" >[Collection as JSON]</a> <a href=\" " + opweb .replace (".geojson" ,
209
209
"" ) + "/items/index.ttl\" >[Collection as TTL]</a></td></tr>"
0 commit comments