<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=euc-kr">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi qgis-developer group!<br>
    <br>
    I have one question!!!<br>
    <br>
    I'm programmin raster from geoserver wms.<br>
    But QGIS cookbook sample wms uri string is error : <br>
    <br>
    <pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal;"><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(170, 0, 0);">ERROR 4: `IgnoreGetMapUrl=1&format=<wbr>image/png&layers=ADD_<wbr>SelfDrivingCar:cell35_07_1_<wbr>8b3b_AutoCrop&maxHeight=256&<wbr>maxWidth=256&srs=EPSG:4326&<wbr>styles=&url=<a href="http://192.168.0.21:8080/geoserver/wms" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F192.168.0.21%3A8080%2Fgeoserver%2Fwms\46sa\75D\46sntz\0751\46usg\75AFQjCNEF1lhovxKzMDf3J3Hyot6L2HPPwg';return true

;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F192.168.0.21%3A8080%2Fgeoserver%2Fwms\46sa\75D\46sntz\0751\46usg\75AFQjCNEF1lhovxKzMDf3J3Hyot6L2HPPwg';return true;" style="margin: 0px; padding: 0px; border: 0px; text-decoration: none; color: rgb(102, 17, 204); cursor: pointer;">http://192.168.0.<wbr>21:8080/geoserver/wms</a>' does not exist in the file system,</span></p>
<p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal;"><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(170, 0, 0);">and is not recognised as a supported dataset name.
</span></p><p style="margin: 1em 0px; padding: 0px; border: 0px; line-height: normal;"><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(170, 0, 0);"><font color="#000000">My source code below :

</font></span></p></pre>
<pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">QgsDataSourceURI uri;</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span 
style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">
</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  uri.setParam("url", "<a href="http://192.168.0.21:8080/geoserver/wms" target="_blank" rel="nofollow" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2F192.168.0.21%3A8080%2Fgeoserver%2Fwms\46sa\75D\46sntz\0751\46usg\75AFQjCNEF1lhovxKzMDf3J3Hyot6L2HPPwg';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2F192.168.0.21%3A8080%2Fgeoserver%2Fwms\46sa\75D\46sntz

\0751\46usg\75AFQjCNEF1lhovxKzMDf3J3Hyot6L2HPPwg';return true;" style="margin: 0px; padding: 0px; border: 0px; text-decoration: none; color: rgb(102, 17, 204); cursor: pointer;">http://192.168.0.21:8080/<wbr>geoserver/wms</a>");</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  uri.setParam("format", "image/png");</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font
-
variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  uri.setParam("crs", "EPSG:4326");</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" face="gulimche, monospace"><span style="margin:
 
0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"> </span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"> </span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">uri</span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">.</span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">setParam</span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">(</span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">"layers"</span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">,</span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);"> </span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">"ADD_SelfDrivingCar:cell35_07_<wbr>1_8b3b_AutoCrop"</span><span style="margin: 0px; padding: 0px; border: 0px; color: rgb(0, 0, 0);">);</span>
</font></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  uri.setParam( "maxWidth", "256" );</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color:

 rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  uri.setParam( "maxHeight",  "256");</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  uri.setParam( "styles", "" );</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; fo
n
t-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  uri.setParam( "IgnoreGetMapUrl", "1" );</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 25
5
, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">
</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  QgsRasterLayer * pRasterLayer = new QgsRasterLayer(QString(uri.<wbr>encodedUri()), "ADD_SelfDrivingCar:cell35_07_<wbr>1_8b3b_AutoCrop", "wms");</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; tex

t-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  if (pRasterLayer->isValid())</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  {</font></span></pre><pre style=
"
margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">    qDebug("Raster Layer is valid");</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><sp
a n="" style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  }</font></spa></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  else</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: norma
l; l
ine-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  {</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">    qDe
b
ug("Raster Layer is NOT valid");</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">    return;</font></span></pre><pre style="margin: 0px; padding: 0px; border: 0px; color: rgb(34, 34, 34); font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; bac
k
ground-color: rgb(255, 255, 255);"><span style="margin: 0px; padding: 0px; border: 0px; background-color: rgb(255, 255, 255);"><font style="margin: 0px; padding: 0px; border: 0px;" size="2" color="#000000" face="gulimche, monospace">  }


why this uri is error?
please tell me How to make uri string. Please!
Thanks.

</font></span></pre></body></html>