[gdal-dev] how to access Image palette in HDF files
Emilio Mayorga
emiliomayorga at gmail.com
Thu May 7 12:49:23 EDT 2009
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 <ivan.lucena at pmldnet.com> 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 <jorsion at gmail.com>
>> 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:gdal-dev at lists.osgeo.org] 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: compose.php?to=gdal-dev at lists.osgeo.org] gdal-dev at lists.osgeo.org
>> [LINK: http://lists.osgeo.org/mailman/listinfo/gdal-dev]
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
More information about the gdal-dev
mailing list