com.mizar.metadata.gdal
Class GDALSample

java.lang.Object
  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
GDALSample()
           
 
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

GDALSample

public GDALSample()
Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
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"