<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:3.0cm 2.0cm 3.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DA" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">I have a strange situation. I host two different WMS layers on an internal GeoServer 2.8.2 (type is ImagePyramid) and both layers look fine when previewing them in the GeoServer Layer Preview. I use QGIS Master x64 (latest
nightly build from OSGeo4w) to access the layers.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">One of them gets added to the map the other one doesn’t and give me the following message:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:9.0pt;margin-right:0cm;margin-bottom:9.0pt;margin-left:0cm">
<b><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New";mso-fareast-language:DA">WMS provider:</span></b><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New";mso-fareast-language:DA"> Cannot calculate extent<br>
(..\..\..\..\..\..\src\providers\wms\qgswmsprovider.cpp : 148 : QgsWmsProvider::QgsWmsProvider)<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New";mso-fareast-language:DA">Raster layer:</span></b><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New";mso-fareast-language:DA"> Provider is not valid
(provider: wms, URI: contextualWMSLegend=0&crs=EPSG:25832&dpiMode=7&featureCount=10&format=image/png&layers=myns:layer_not_working&styles=&url=http://myserver:8080/geoserver/wms<br>
(..\..\..\..\..\src\core\raster\qgsrasterlayer.cpp : 668 : QgsRasterLayer::setDataProvider)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:12.0pt;font-family:"Times New Roman","serif";mso-fareast-language:DA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">By sniffing the GetCapabilities request sent by QGIS using Fiddler, I get the following two layer definitions in return:
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">Working layer:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US"> </span><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Layer queryable="1" opaque="0"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Name>myns:layer_working</Name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Title>Layer working</Title><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Abstract/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <KeywordList><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Keyword>WCS</Keyword><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Keyword>ImagePyramid</Keyword><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Keyword>layer_a</Keyword><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </KeywordList><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <CRS>EPSG:25832</CRS><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <CRS>CRS:84</CRS><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <EX_GeographicBoundingBox><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <westBoundLongitude>11.220126802325543</westBoundLongitude><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <eastBoundLongitude>11.893382022184314</eastBoundLongitude><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <southBoundLatitude>55.552736929684166</southBoundLatitude><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <northBoundLatitude>56.104558130983634</northBoundLatitude><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </EX_GeographicBoundingBox><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <BoundingBox CRS="CRS:84"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> minx="11.220126802325543"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> miny="55.552736929684166"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> maxx="11.893382022184314"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> maxy="56.104558130983634"/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <BoundingBox CRS="EPSG:25832"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New"">
</span><span lang="PL" style="font-size:8.0pt;font-family:"Courier New"">minx="639998.4"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New""> miny="6159999.9999999665"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New""> maxx="680001.6"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New""> maxy="6219999.999999972"/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New""> <Style><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New"">
</span><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""><Name>raster</Name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Title>Default Raster</Title><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Abstract>A sample style that draws a raster, good for displaying imagery</Abstract><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <LegendURL width="20" height="20"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Format>image/png</Format><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://myserver:8080/geoserver/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=myns%layer_working"/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </LegendURL><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </Style><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </Layer><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US">Layer not working:<o:p></o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Layer queryable="1" opaque="0"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Name>myns:Layer_not_working</Name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Title>Layer not working</Title><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Abstract/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <KeywordList><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Keyword>WCS</Keyword><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Keyword>ImagePyramid</Keyword><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Keyword>layer_b</Keyword><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </KeywordList><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <CRS>EPSG:25832</CRS><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <CRS>CRS:84</CRS><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <EX_GeographicBoundingBox><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <westBoundLongitude>10.582520521148165</westBoundLongitude><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <eastBoundLongitude>12.236951289179972</eastBoundLongitude><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <southBoundLatitude>55.45523075908682</southBoundLatitude><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <northBoundLatitude>56.38403418056449</northBoundLatitude><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </EX_GeographicBoundingBox><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <BoundingBox CRS="CRS:84"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> minx="10.582520521148165"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> miny="55.45523075908682"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> maxx="12.236951289179972"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> maxy="56.38403418056449"/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <BoundingBox CRS="EPSG:25832"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New"">
</span><span lang="PL" style="font-size:8.0pt;font-family:"Courier New"">minx="600000.00000002"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New""> miny="6149999.999999966"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New""> maxx="700000.0000000303"
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New""> maxy="6249999.999999976"/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New""> <Style><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="PL" style="font-size:8.0pt;font-family:"Courier New"">
</span><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""><Name>raster</Name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Title>Default Raster</Title><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Abstract>A sample style that draws a raster, good for displaying imagery</Abstract><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <LegendURL width="20" height="20"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <Format>image/png</Format><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="http://myserver:8080/geoserver/ows?service=WMS&request=GetLegendGraphic&format=image%2Fpng&width=20&height=20&layer=myns%layer_not_working"/><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </LegendURL><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </Style><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""> </Layer><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have anonymized the messages above (since the error doesn’t point in the direction of naming) and I can of course provide more information if needed.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Regards, Casper</span><span lang="EN-US" style="font-size:8.0pt;font-family:"Courier New""><o:p></o:p></span></p>
</div>
</body>
</html>