public class TermProgressCallback extends ProgressCallback
This progress reporter prints simple progress report to the terminal window. The progress report generally looks something like this:
0...10...20...30...40...50...60...70...80...90...100 - done.Every 2.5% of progress another number or period is emitted. Note that GDALTermProgress() uses internal static data to keep track of the last percentage reported and will get confused if two terminal based progress reportings are active at the same time eithin in a single thread or across multiple threads.
Example :
driver.CreateCopy("dest.tif", src_ds, 0, null, new TermProgressCallback());
Constructor and Description |
---|
TermProgressCallback() |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
int |
run(double dfComplete,
String pszMessage)
Callback method called from long processing from GDAL methods.
|
public void delete()
delete
in class ProgressCallback
public int run(double dfComplete, String pszMessage)
ProgressCallback
This method is called back with the progression percentage. Its return value is used by the caller to determine whether the processing should go on or be interrupted.
This method should be subclassed by classes subclassing ProgressCallback.
run
in class ProgressCallback
dfComplete
- progression percentage between 0 and 1pszMessage
- processing message, may be null