That file description doesn't look like HDFEOS. But gdalinfo should
give enough info to figure it out.

-Emilio Mayorga


On Thu, May 7, 2009 at 6:14 AM, Lucena, Ivan <[email protected]> wrote:
> Hi JoSn,
>
> If you can't get it from GetColorTable() I believe that the problem is that 
> the HDF driver doesn't recognize the internal schema of the files you have. If
> it was one of the well know formats it should work, like if you download 
> MODIS Vegetation product for example. So I can foresee three options for
> you:
>
> - If that is a well know HDF product, file a ticket as a request for 
> improvement, if not:
>
> - If you need to process several files of that product the color tables 
> should be the same: use some kind of HDF tool to dump the colors on a text 
> file
> and edit a GDAL VRT file. Maybe you can find the text code in plain text on 
> the product description.
>
> - Try to access the HDFEOS libraries from your C# code - that is the hard one 
> - and find the color table yourself.
>
> I hope that it helps,
>
> Ivan
>
>>  -------Original Message-------
>>  From: jor sion <[email protected]>
>>  Subject: [gdal-dev] how to access Image palette in HDF files
>>  Sent: May 07 '09 03:45
>>
>>  Hi,
>>  �
>>  I am using GDAL in CSharp to read the information from HDF files.
>>  �
>>  [LINK: mailto:[email protected]] I do not know how to access the
>>  information Image palette in HDF files. The picture below shows the file
>>  structure of the HDF file I used.
>>
>>  and I want to got the information of Image palette.�
>>
>>
>>  Any suggestions?
>>  �
>>
>>
>>  Best wishes,
>>
>>  --
>>  JoSn
>>
>>  --------------------
>>  _______________________________________________
>>  gdal-dev mailing list
>>  [LINK: [email protected]] [email protected]
>>  [LINK: http://lists.osgeo.org/mailman/listinfo/gdal-dev]
>>  http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> _______________________________________________
> gdal-dev mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to