Class GDALSample

  extended by com.mizar.metadata.gdal.GDALSample

public class GDALSample
extends java.lang.Object

The class GDALSample is used to illustrate how to import or export images by GDAL Java APIs.

Constructor Summary
Method Summary
static void main(java.lang.String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public GDALSample()
Method Detail


public static void main(java.lang.String[] args)
args - args is an array of String. The first element is the driver name, the second one is the source image, the third one is the target image and the following(if necessary) elements are the creation options. For example, when load a GeoTiff file into Oracle Spatial database, the parameters of args are like these: "georaster" "source.tif" "geor:georaster/georaster@orcl,georaster_table,georaster" "INSERT=VALUES(102, 'source.tif', SDO_GEOR.INIT('rdt_01',2))" "BLOCKXSIZE=512" "BLOCKYSIZE=512" When export an image from Oracle Spatial database to a GeoTiff file, the parameters of args are like these: "gtiff" "geor:georaster/georaster@orcl,rdt_01,1" "target.tif" "TILED=YES" "BLOCKXSIZE=512" "BLOCKYSIZE=512"