https://issues.qgis.org/https://issues.qgis.org/favicon.ico2017-03-03T22:12:25ZQGIS Issue TrackingQGIS Application - Bug report #16180: WMS browser panel loads wrong layerhttps://issues.qgis.org/issues/16180?journal_id=748072017-03-03T22:12:25ZRichard Duivenvoorde
<ul></ul><p>Hi,</p>
<p>I tried to reproduce your issue, but to be honest I'm even not able to see the image you get in your animated gif.</p>
<p>Can you please describe in words the layers/crs/imageformat etc you try to use (both layer and project?)</p>
<p>The WMS always first reads the capabilties of the WMS and with that get's information about layers etc etc.</p>
<p>So this looks ok, isn't it:</p>
<p><a class="external" href="http://www.wms.nrw.de/umwelt/laerm?request=GetCapabilities">http://www.wms.nrw.de/umwelt/laerm?request=GetCapabilities</a></p>
<p>and if you run QGIS in debug mode, you see that QGIS tries to retrieve an WMS image with this url:</p>
<p><a class="external" href="https://www.wms.nrw.de/umwelt/laerm?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=50.15059999999999718,5.724990000000000023,52.60199999999999676,9.531539999999999679&CRS=EPSG:4326&WIDTH=1002&HEIGHT=647&LAYERS=STR_DEN&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE">https://www.wms.nrw.de/umwelt/laerm?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=50.15059999999999718,5.724990000000000023,52.60199999999999676,9.531539999999999679&CRS=EPSG:4326&WIDTH=1002&HEIGHT=647&LAYERS=STR_DEN&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE</a></p>
<p>which is a transparent image. Whatever I try, I never get your map. Did you try other wms clients?</p>
<p>One thing which is not normal is that in the datasource of the properties of a layer of your wms is that I see something like:</p>
<p>contextualWMSLegend=0&crs=EPSG:4326&dpiMode=7&featureCount=10&format=image/png;%20mode%3D24bit&layers=STR_DEN&styles=default&url=http://www.wms.nrw.de/umwelt/laerm</p>
<p>while normally you see something like:</p>
<p>crs=EPSG:28992&layers=cbsgebiedsindelingen:cbs_provincie_2007_gegeneraliseerd&styles=cbsgebiedsindelingen:cbs_gebiedsindeling&format=image/png&url=http://geodata.nationaalgeoregister.nl/cbsgebiedsindelingen/ows?SERVICE%3DWMS%26</p>
<p>Maybe that rings a bell with someone?</p>
<p>So can you please describe what I can do to reproduce your issue?</p> QGIS Application - Bug report #16180: WMS browser panel loads wrong layerhttps://issues.qgis.org/issues/16180?journal_id=748082017-03-03T22:20:07ZRichard Duivenvoorde
<ul></ul><p>Ah... NOW I get an image:</p>
<p><a class="external" href="https://www.wms.nrw.de/umwelt/laerm?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=51.42312825621159789,7.201033122179148371,51.54250891635459908,7.444299601640792297&CRS=EPSG:4326&WIDTH=1506&HEIGHT=739&LAYERS=STR_DEN&STYLES=default&FORMAT=image/png;">https://www.wms.nrw.de/umwelt/laerm?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=51.42312825621159789,7.201033122179148371,51.54250891635459908,7.444299601640792297&CRS=EPSG:4326&WIDTH=1506&HEIGHT=739&LAYERS=STR_DEN&STYLES=default&FORMAT=image/png;</a></p>
<p>by guessing from the capibilities that the data is in Dortmund I zoomed in and THEN something appears...</p>
<p>So in my view this is not a QGIS issue, but a misconfigured WMS-server:<br />- your layers are scale dependent: you only see data when you zoom in enough<br />- your WMS defines a very LARGE bbox as default bbox</p>
<p>which makes QGIS zoom to this BBOX first at a zoom level you do not see anything.</p>
<p>So best is to define a better bbox in the capabilities of your WMS</p>
<p>Does this sound reasonable?</p> QGIS Application - Bug report #16180: WMS browser panel loads wrong layerhttps://issues.qgis.org/issues/16180?journal_id=748092017-03-03T22:51:36ZTobias Wendorfftobias.wendorff@tu-dortmund.de
<ul></ul><p>I thought an animated GIF would make it easier to understand for all languages, but okay - let's try it in English :)</p>
<p>1. The project CRS can either be set to EPSG:4326 or EPSG:25832 (native SRS) to reproduce the bug.<br />2. I've set up a bookmark with this BBOX (Düsseldorf in Germany): 6.83 51.21 6.85 51.23 (for the German testers: 6,83 51,21 6,85 51,23)<br />3. I'll test it with layer 10 (sublayer 11 with style=default), which is about noise coming from trains all over the day.<br />3. a) When loading the WMS using the "Browser Panel", I'm getting an empty map image, but the WMS legend gets loaded.<br />3. b) When loading the WMS using the "Add WMS layer" from the menu or "Manage Layers toolbar", it works for me as expected.</p> QGIS Application - Bug report #16180: WMS browser panel loads wrong layerhttps://issues.qgis.org/issues/16180?journal_id=748102017-03-04T08:24:25ZRichard Duivenvoorde
<ul></ul><p>A legend is always loaded as QGIS just loads the GetLegendGraphics request.<br />The layers are scale dependent, so QGIS requests a layer but the server returns a transparent image</p>
<p>I think this is not a bug, and this issue can be closed</p> QGIS Application - Bug report #16180: WMS browser panel loads wrong layerhttps://issues.qgis.org/issues/16180?journal_id=748112017-03-04T08:33:41ZTobias Wendorfftobias.wendorff@tu-dortmund.de
<ul></ul><p>Richard Duivenvoorde wrote:</p>
<blockquote>
<p>A legend is always loaded as QGIS just loads the GetLegendGraphics request.<br />The layers are scale dependent, so QGIS requests a layer but the server returns a transparent image</p>
</blockquote>
<p>The layers are scale dependent, but I'm testing both variants at exactly the same scale! Did you even watch the animation? You can clearly see that I'm zooming to the same bookmark.</p>
<p>EDIT: I've figured out the real problem by using a proxy server!</p>
<p>When using <strong>Add WMS layer</strong> or <strong>Manage Layers toolbar</strong>, this gets requested:<br /><pre>https://www.wms.nrw.de/umwelt/laerm?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=51.20864726308272452,6.818027744091569531,51.23134997181813333,6.861941099535693311&CRS=EPSG:4326&WIDTH=1290&HEIGHT=667&LAYERS=SCB_DEN&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE</pre></p>
<p>When using <strong>Browser Panel</strong> this gets requested from WMS:<br /><pre>https://www.wms.nrw.de/umwelt/laerm?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=2719705.686675078236,3785531.978490603156,2721794.643601302989,3788219.639582599513&CRS=EPSG:3034&WIDTH=826&HEIGHT=642&LAYERS=SCB_DEN&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE</pre></p>
<p>That's another CRS without any content. Seems like <em>Browser Panel</em> grabs the first CRS it can find, since EPSG:3034 is the first one listed in GetCapabilites.</p> QGIS Application - Bug report #16180: WMS browser panel loads wrong layerhttps://issues.qgis.org/issues/16180?journal_id=748662017-03-06T08:27:30ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>Tobias Wendorff wrote:</p>
<blockquote>
<p>Richard Duivenvoorde wrote:</p>
<blockquote>
<p>A legend is always loaded as QGIS just loads the GetLegendGraphics request.<br />The layers are scale dependent, so QGIS requests a layer but the server returns a transparent image</p>
</blockquote>
<p>The layers are scale dependent, but I'm testing both variants at exactly the same scale! Did you even watch the animation? You can clearly see that I'm zooming to the same bookmark.</p>
<p>EDIT: I've figured out the real problem by using a proxy server!</p>
<p>When using <strong>Add WMS layer</strong> or <strong>Manage Layers toolbar</strong>, this gets requested:<br />[...]</p>
<p>When using <strong>Browser Panel</strong> this gets requested from WMS:<br />[...]</p>
<p>That's another CRS without any content. Seems like <em>Browser Panel</em> grabs the first CRS it can find, since EPSG:3034 is the first one listed in GetCapabilites.</p>
</blockquote>
<p>I just tested on both Linux and Windows using 2.18.4 and the request created by adding the layer from the "add WMS..." dialog OR the browser is exactly the same, and in fact I see both layers as expected.</p>
<p>Could you try on 2.18.4 and/or o a clean environment (no 3rd party plugins, purged .qgis2 folder, purged network cache, etc.)</p>
<p>thanks.</p> QGIS Application - Bug report #16180: WMS browser panel loads wrong layerhttps://issues.qgis.org/issues/16180?journal_id=752202017-03-12T11:56:59ZTobias Wendorfftobias.wendorff@tu-dortmund.de
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Closed</i></li></ul><p>Sorry, took some time.</p>
<p>I tried it on a Windows computer, which has never seen QGIS before. I've installed 2.18.4 coming from standalone-installer.<br />When adding the WMS-layer via "Browser Panel", it's fixed to EPSG:3034 - the first one in the list. There's no way to change it. When adding the WMS-layer via "Add Layer(s) from a <abbr title="T">WM</abbr>S Server", I can select EPSG:4326 and I'm getting data.</p>
<p>So the problem is:<br />When using "Browser Panel", a CRS is selected, where the (misconfigured) server never seems to deliver any data. Since it's impossible to change the projection when using "Browser Panel" it doesn't seem to be a bug of QGIS, just a missing important feature.</p>
<p>Closed.</p>