Re: [gdal-dev] HDF4 file in byte array results in "not recognised" error

2011-01-24 Thread Sam Ritchie
Even, thanks for this. I'll proceed by copying the byte array to a temp file. Best, Sam On Mon, Jan 24, 2011 at 3:54 PM, Even Rouault wrote: > Sam, > > not all drivers support the vsi virtual file systems, such as /vsimem. And > HDF4 > is one of those drivers (the HDF4 libs need a "real" filenam

Re: [gdal-dev] HDF4 file in byte array results in "not recognised" error

2011-01-24 Thread Even Rouault
Sam, not all drivers support the vsi virtual file systems, such as /vsimem. And HDF4 is one of those drivers (the HDF4 libs need a "real" filename). You can generally check if a file system supports vsi virtual file systems by issuing "gdalinfo --format name_of_driver" For a compatible driver

[gdal-dev] HDF4 file in byte array results in "not recognised" error

2011-01-24 Thread Sam Ritchie
Hey all, I'm working on an app that needs to pass HDF4 files (MODIS tiles) around as byte arrays, and then open them up using gdal#Open, from java. Open works great when I pass in the filepath, so I know that my gdal setup is solid. The problem is, when I turn the HDF4 file into a byte array and