Skip to content

Commit

Permalink
Expose OGC API - Feature (WFS3) service (#788)
Browse files Browse the repository at this point in the history
* Add <ows>/wfs3 url.

* Add WFS3 service available for project.

* ✨ Client
  g3w-suite/g3w-client@35985a2

---------

Co-authored-by: wlorenzetti <[email protected]>
Co-authored-by: volterra79 <[email protected]>
  • Loading branch information
3 people authored Apr 8, 2024
1 parent 4440b0d commit dbd9128
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions g3w-admin/OWS/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@
name='ows'
),

re_path(
r'^ows/(?P<group_slug>[-_\w\d]+)/(?P<project_type>[-_\w\d]+)/(?P<project_id>[-_\w\d]+)/wfs3&?',
OWSView.as_view(),
name='ows-wfs3'
),

]
2 changes: 1 addition & 1 deletion g3w-admin/client/static/client/js/app.min.js

Large diffs are not rendered by default.

10 changes: 9 additions & 1 deletion g3w-admin/qdjango/api/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,17 @@ def get(self, request, **kwargs):

if wfs:
res.update({
'WFS': res['WMS']
'WFS': res['WMS'],

# Add OGC API - Features (WFS3)
'OGC API - Feature (WFS3)': {
'url': f"{res['WMS']['url']}wfs3/",
'access': res['WMS']['access']
}

})


if len(tms_layers) > 0:
res.update({
'TMS': tms_layers
Expand Down

0 comments on commit dbd9128

Please sign in to comment.