[gdal-dev] ask for help about the reading of the hdf4 file of the
Chaitanya kumar CH
chaitanya.ch at gmail.com
Tue Mar 2 04:43:19 EST 2010
Try the GDALDataset::GetGeoTransform() and the
GDALDataset::GetProjectionRef() functions on the subdataset.
Here is some sample code:
2010/3/2 Kevin Lin <bjlin.sw at gmail.com>
> I have a problem when I use the gdal to open the modis Hdf4 file.
> when I get the latitude and the Longitude, I do not know how to read it.
> is it use GetMetadata( "SUBDATASETS" )?
> but the SUBDATASETS, don't include the geolocation information.
> in the hdf4 file, ther is a geolocation fields, data fields and swatch
> when I read the data in the data fields, I use GetMetadata( "SUBDATASETS"
> but I do not know how to read the data in the geolocation fields.
> can anyone help me?
> best regards.
> Kevin Lin
> Bjlin.sw at gmail.com
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
Chaitanya kumar CH.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev