<div>i got it!</div><div>i was using the wms sample xml and im behind proxy that's why i could never get a response from the server.</div><div>works now with my local server ;)</div><br><br><div class="gmail_quote">On Tue, Dec 21, 2010 at 8:27 PM, Cher Quisido <span dir="ltr"><<a href="mailto:cherquisido@gmail.com">cherquisido@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi, I finally managed to get the GetColorInterpretation() to return the correct values with gdal1.8.0dev<div>but RasterIO() still gives me CE_Failure. <img src="cid:35F@goomoji.gmail" style="margin-top:0px;margin-right:0.2ex;margin-bottom:0px;margin-left:0.2ex;vertical-align:middle" goomoji="35F"></div>
<div><br></div><div>here's a snippet of the code:</div><div><br></div><div><div><span style="white-space:pre-wrap">                        </span>poBand = poDataset->GetRasterBand( bandNum );</div><div><br></div><div>
<span style="white-space:pre-wrap">                        </span>int nXSize = poBand->GetXSize();</div><div><span style="white-space:pre-wrap">                        </span>int<span style="white-space:pre-wrap">        </span>nYSize = poBand->GetYSize();</div>
<div><br></div><div><span style="white-space:pre-wrap">                        </span>GDALColorInterp colorInterp = poBand->GetColorInterpretation();</div><div><br></div><div><span style="white-space:pre-wrap">                        </span>GDALColorTable *poColorTable = NULL;</div>
<div><br></div><div><span style="white-space:pre-wrap">                        </span>if (colorInterp == GCI_PaletteIndex)</div><div><span style="white-space:pre-wrap">                        </span>{</div><div><span style="white-space:pre-wrap">                                </span>poColorTable = poBand->GetColorTable();</div>
<div><span style="white-space:pre-wrap">                        </span>}</div><div><br></div><div><span style="white-space:pre-wrap">                        </span>Scanline = new BYTE [nXSize*nYSize];</div><div><span style="white-space:pre-wrap">                        </span><< NULL Scanline checking here >></div>
<div><br></div><div><span style="white-space:pre-wrap">                        </span>CPLErr result = poBand->RasterIO( GF_Read, 0, 0, nXSize, nYSize, </div><div><span style="white-space:pre-wrap">                                </span>Scanline, nXSize, nYSize, GDT_Byte, </div>
<div><span style="white-space:pre-wrap">                                </span>0, 0 );</div></div><div><br></div><div><div><br></div><div>Thanks in advance :)<br><br><div class="gmail_quote"><div class="im">On Tue, Dec 21, 2010 at 6:49 PM, Even Rouault <span dir="ltr"><<a href="mailto:even.rouault@mines-paris.org" target="_blank">even.rouault@mines-paris.org</a>></span> wrote:<br>
</div><div><div></div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Selon Cher Quisido <<a href="mailto:cherquisido@gmail.com" target="_blank">cherquisido@gmail.com</a>>:<br>
<br>
This has been fixed in GDAL 1.8.0dev. See <a href="http://trac.osgeo.org/gdal/ticket/3420" target="_blank">http://trac.osgeo.org/gdal/ticket/3420</a><br>
<div><div></div><div><br>
> Hi,<br>
><br>
> I am trying to add WMS support to our current GIS application. And I have<br>
> some problems when reading the raster data.<br>
><br>
> I get 3 bands on the call to GetRasterCount() but in the call to<br>
> GetColorInterpretation() I get GCI_Undefined. I also get CE_Failure on my<br>
> call to RasterIO().<br>
><br>
> I am using the current implementation of our Raster Import which works well<br>
> with the gdal_translate output image of my WMS the same xml input.<br>
><br>
> I have GDAL 1.7.3 (WMS-enabled).<br>
><br>
> Nothing on the web has helped up to now. :(<br>
> Any help will be greatly appreciated.<br>
><br>
<br>
<br>
</div></div></blockquote></div></div></div><br></div></div>
</blockquote></div><br>