i got it!
i was using the wms sample xml and im behind proxy that's why i could never
get a response from the server.
works now with my local server ;)


On Tue, Dec 21, 2010 at 8:27 PM, Cher Quisido <[email protected]> wrote:

> Hi, I finally managed to get the GetColorInterpretation() to return the
> correct values with gdal1.8.0dev
> but RasterIO() still gives me CE_Failure. [?]
>
> here's a snippet of the code:
>
> poBand = poDataset->GetRasterBand( bandNum );
>
>  int nXSize = poBand->GetXSize();
> int nYSize = poBand->GetYSize();
>
> GDALColorInterp colorInterp = poBand->GetColorInterpretation();
>
> GDALColorTable *poColorTable = NULL;
>
> if (colorInterp == GCI_PaletteIndex)
> {
> poColorTable = poBand->GetColorTable();
>  }
>
> Scanline = new BYTE [nXSize*nYSize];
> << NULL Scanline checking here >>
>
> CPLErr result = poBand->RasterIO( GF_Read, 0, 0, nXSize, nYSize,
> Scanline, nXSize, nYSize, GDT_Byte,
>  0, 0 );
>
>
> Thanks in advance :)
>
> On Tue, Dec 21, 2010 at 6:49 PM, Even Rouault <
> [email protected]> wrote:
>
>> Selon Cher Quisido <[email protected]>:
>>
>> This has been fixed in GDAL 1.8.0dev. See
>> http://trac.osgeo.org/gdal/ticket/3420
>>
>> > Hi,
>> >
>> > I am trying to add WMS support to our current GIS application. And I
>> have
>> > some problems when reading the raster data.
>> >
>> > I get 3 bands on the call to GetRasterCount() but in the call to
>> > GetColorInterpretation() I get GCI_Undefined. I also get CE_Failure on
>> my
>> > call to RasterIO().
>> >
>> > I am using the current implementation of our Raster Import which works
>> well
>> > with the gdal_translate output image of my WMS the same xml input.
>> >
>> > I have GDAL 1.7.3 (WMS-enabled).
>> >
>> > Nothing on the web has helped up to now. :(
>> > Any help will be greatly appreciated.
>> >
>>
>>
>>
>

<<35F.gif>>

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to