I am writing a Python plugin for QGIS. In my plugin, I can fetch data by a WMS GetMap request but I can't draw the map in QGIS from the response I got from my GetMap call.

Suppose I have a variable like below:

    data = requests.get(http://mysite.com/wms?request=GetMap.....)

Now I want to draw this data in QGIS. How can I do this?

closed as off-topic by underdark May 15 '17 at 18:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions seeking help to debug/write/improve code must include the desired behavior, a specific problem or error and the shortest code necessary to reproduce it in the question itself. Providing a clear problem statement and evidence of a code attempt will help others to help you. See: How to create a Minimal, Complete, and Verifiable example." – underdark
If this question can be reworded to fit the rules in the help center, please edit the question.

Browse other questions tagged or ask your own question.