Skip to content
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

Merged
merged 1 commit into from
Jun 2, 2017
Merged

use django as proxy for every OGC requests #237

merged 1 commit into from
Jun 2, 2017

Conversation

Gustry
Copy link
Collaborator

@Gustry Gustry commented Jun 2, 2017

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 ?

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)
Copy link
Collaborator Author

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.

@Gustry
Copy link
Collaborator Author

Gustry commented Jun 2, 2017

@gubuntu this PR brings the OGC proxy for QGIS-Server

@codecov
Copy link

codecov bot commented Jun 2, 2017

Codecov Report

Merging #237 into master-qgis_server will increase coverage by 0.18%.
The diff coverage is 0%.

Impacted file tree graph

@@                  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
Impacted Files Coverage Δ
geonode/qgis_server/urls.py 100% <ø> (ø) ⬆️
geonode/qgis_server/views.py 12.77% <0%> (+1.45%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4961453...2bd7a92. Read the comment docs.

Copy link

@ismailsunni ismailsunni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Gustry
Copy link
Collaborator Author

Gustry commented Jun 2, 2017

I think I can merge even if codecov/patch is not fully happy.

@Gustry Gustry merged commit b2c8171 into kartoza:master-qgis_server Jun 2, 2017
@Gustry Gustry removed the in progress label Jun 2, 2017
@Gustry Gustry deleted the ogc_webservice branch June 2, 2017 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants