Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

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

Code Block
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.