ABOUT gdaal ISSUE
xuyan1972 opened this issue · comments
Now I want save file into hdfs ,then read them by gdal interface(RastIO) ,then write result to other HDFS file by gdal interface (etc :create ,,rastIO) .Can anyone tell me the code outline of this process?
Dataset* input = data.getInputDataset("imageIn");
std::set keys = input->getAllFileKeys();
Dataset* outputHist = data.getOutputDataset("out");
for ( std::set::iterator i = keys.begin(); i != keys.end(); i++ ) {
DataKey myKey = i;
DataFile skyFile = input->getDataFile(myKey);
std::string inputFileName = myKey.toName("__")+"_input";
GDALMemoryFile inputMemFile(inputFileName, *skyFile);
GDALDataset * poDataset = inputMemFile.getGDALDataset();
//then how to create new hdfs file by gdal and add to outputHist
.....
Please post questions like this to our google group: https://groups.google.com/forum/#!forum/mr4c