Re: [gdal-dev] To to create HDF4 files for GDAL

2012-01-05 Thread Andreas H.
Hi again, I played around a bit and now it's working. I needed to add four global attributes to the HDF4 file: - TransformationMatrix - AREA_OR_POINT - Projection - Signature What I don't understand is why Signature is needed. I mean, even without Signature, the file contains all necessary infor

Re: [gdal-dev] To to create HDF4 files for GDAL

2012-01-05 Thread Andreas H.
Etienne, thanks for your input. > Why don't you simply use the netcdf api to create a GMT file (which > uses the netcdf file format)̣? The software which creates these HDF files is not developed by me, and its developer is unwilling to implement writing of netcdf files. However, if I'd tell him

Re: [gdal-dev] To to create HDF4 files for GDAL

2012-01-05 Thread Etienne Tourigny
Andreas, Why don't you simply use the netcdf api to create a GMT file (which uses the netcdf file format)̣? Have a look at the gdal hdf4 driver documentation : http://www.gdal.org/frmt_hdf4.html , section Georeference . It seems that you custom way of representing georeferencing is not one of the

[gdal-dev] To to create HDF4 files for GDAL

2012-01-05 Thread Andreas H.
Hi there, when creating HDF4 files outside of GDAL, which metadata do I have to write to the file such that GDAL can subsequently correctly read the data? In the docs I read that only HDF4 files created with GDAL or certain other HDF4 types are recognized. However, the files are created "by hand"