monoGIS Class Reference

Driver. Method 

Create a copy of a dataset.

public Dataset (
   String filename,
   Dataset srcDataset,
   Boolean strict,
   String[] options
);

Parameters

String
Name of output file
Dataset
Boolean
Insist that the copy is a "strict" copy
String[]
File construction options. See the GDAL documentation on individual drivers for details. Note that this argument is currently ignored...

Remarks

This method will attempt to create a copy of a raster dataset with the indicated filename, and in this drivers format. Band number, size, type, projection, geotransform and so forth are all to be copied from the provided template dataset.

Note that many sequential write once formats (such as JPEG and PNG) don't implement the Create() method but do implement this CreateCopy() method. If the driver doesn't implement CreateCopy(), but does implement Create() then the default CreateCopy() mechanism built on calling Create() will be used.

It is intended that CreateCopy() would often be used with a source dataset which is a virtual dataset allowing configuration of band types, and other information without actually duplicating raster data. This virtual dataset format hasn't yet been implemented at the time of this documentation being written.

See Also

Driver Class | Gdal Namespace