You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Export (for a grid) can be done as follows:

GdalFileExporter.ExportTo(string path,IFunction source)
{
   //get store for given path. The store should be ready to get values from the target
   IFunctionStore targetStore = GetStoreForPath(path);
   //clone to should take care of set values in the file.
   source.CloneTo(targetStore);

}

In IFunction we should add a CloneTo method that creates a clone using the given store. The Clone() method uses the memory store. The CloneTo method is the hard part since there we should time the SetValues call after the store is set.

  • No labels