Commits
Muqun Yang committed aef6c5d5a6a
HFRCFLIB-125, provide a workaround for a compiler issue at MacOS. when calling the HDF-EOS2 SWinqswath function call. But find a workaround to handle this. HDF-EOS function calls GDinqgrid and SWinqswath expect to receive the HDF-EOS2 file names that can be with a path. When the file name includes the absolute path before the file name like /Users/myang6/hdf-eosfile, SWinqswath will return the number of swath as 0 even the file includes swath objects. This will cause the added HDF4 objects not to be converted to the CF. The original code are const char *filename = file->get_file_name().c_str(); num_swaths = SWinqswath(const_cast<char*>(filename), NULL, (int32*)&len); Now change to std::string filename = file->get_file_name(); num_swaths = SWinqswath(const_cast<char*>(filename.c_str()), NULL, (int32*)&len);