-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use django as proxy for every OGC requests #237
Conversation
geonode/qgis_server/views.py
Outdated
if not params.get('LAYERS'): | ||
raise Http404('LAYERS is not found for a GetLegendGraphic') | ||
layer = get_object_or_404(Layer, typename=params.get('LAYER')) | ||
return legend(request, layername=layer.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucernae As we removing the legend, how can I get the legend path?
If not easy, I can forward the request to QGIS Server.
@gubuntu this PR brings the OGC proxy for QGIS-Server |
Codecov Report
@@ Coverage Diff @@
## master-qgis_server #237 +/- ##
======================================================
+ Coverage 44.1% 44.28% +0.18%
======================================================
Files 254 254
Lines 18383 18292 -91
Branches 2417 2409 -8
======================================================
- Hits 8107 8100 -7
+ Misses 9803 9719 -84
Partials 473 473
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I think I can merge even if codecov/patch is not fully happy. |
use django as proxy for every OGC requests
@ismailsunni Is-it ok to remove all these specifics views in the app and just one view to forward the request to QGIS
I would like of course to add some unittest, but I need first some qgis layers in the test DB. @lucernae did you work on that before ?