com.mizar.persistence.jpa.utils
Class GdalJpaUtils

java.lang.Object
  extended by com.mizar.persistence.jpa.utils.GdalJpaUtils

public class GdalJpaUtils
extends java.lang.Object


Constructor Summary
protected GdalJpaUtils()
           
 
Method Summary
static java.util.List<java.lang.String> aspectMap(java.io.File inDir, java.io.File outDir, java.lang.String inFile, java.lang.String outFile, double[] mbr, java.lang.Boolean trigonometric, java.lang.Boolean zeroForFlat, java.lang.Integer band, java.lang.String format, boolean world, java.lang.String[] nameValues, java.lang.Boolean q)
           
static java.util.List<java.lang.String> colorRelief(java.io.File outDir, java.io.File inDir, java.lang.String inFile, java.lang.String outFile, java.lang.String format, double[] mbr, boolean world, java.lang.String colorTextFile, boolean alpha, boolean exactColorEntry, boolean nearestColorEntry, java.lang.Integer band, java.lang.String[] nameValues, boolean q)
           
static java.util.List<java.lang.String> hillshade(java.lang.String georUri, double[] mbr, java.io.File outDir, java.lang.String[] outFiles, java.lang.Double zFactor, java.lang.Double scale, java.lang.Double azimuth, java.lang.Double altitude, java.lang.Integer band, java.lang.String[] formats, boolean world, java.lang.String[] nameValues)
           
static java.util.List<java.lang.String> hillshade(java.lang.String georUri, double[] mbr, java.io.File outDir, java.lang.String outFile, java.lang.Double zFactor, java.lang.Double scale, java.lang.Double azimuth, java.lang.Double altitude, java.lang.Integer band, java.lang.String format, boolean world, java.lang.String[] nameValues)
           
static void main(java.lang.String[] args)
           
static java.util.List<java.lang.String> slopeMap(java.io.File outDir, java.io.File inDir, java.lang.String inFile, java.lang.String[] outFiles, double[] mbr, boolean percent, int scale, int band, java.lang.String outputFormat, java.lang.String[] nameValues, boolean suppressProgress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GdalJpaUtils

protected GdalJpaUtils()
Method Detail

hillshade

public static java.util.List<java.lang.String> hillshade(java.lang.String georUri,
                                                         double[] mbr,
                                                         java.io.File outDir,
                                                         java.lang.String outFile,
                                                         java.lang.Double zFactor,
                                                         java.lang.Double scale,
                                                         java.lang.Double azimuth,
                                                         java.lang.Double altitude,
                                                         java.lang.Integer band,
                                                         java.lang.String format,
                                                         boolean world,
                                                         java.lang.String[] nameValues)
                                                  throws java.lang.Exception
Parameters:
georUri - geor:username/password@tnsname,rdtTableName,rasterid
mbr - the bounding box of the area to hillshade -- it must fall within the area of the RDT
outDir - optional, the directory that output files will be written to
outFile - the name of the destination file
zFactor - optional, vertical exageration, defaults to 1
scale - optional, x:y scale defaults to 1 (use 370400 for ft:lat/long and 111120 for m:lat/long)
azimuth - optional, defaults to 315
altitude - optional, altitude of the light in degrees, defaults to 45
band - optional, the input band to be processed, defaults to 1
format - optional, defaults to GeoTIFF (GTiff). Use the short format name.
nameValues - optional
q - defaults to true which suppresses narrative output
Returns:
the output from the gdaldem run
Throws:
java.lang.Exception

hillshade

public static java.util.List<java.lang.String> hillshade(java.lang.String georUri,
                                                         double[] mbr,
                                                         java.io.File outDir,
                                                         java.lang.String[] outFiles,
                                                         java.lang.Double zFactor,
                                                         java.lang.Double scale,
                                                         java.lang.Double azimuth,
                                                         java.lang.Double altitude,
                                                         java.lang.Integer band,
                                                         java.lang.String[] formats,
                                                         boolean world,
                                                         java.lang.String[] nameValues)
                                                  throws java.lang.Exception
Parameters:
georUri - geor:username/password@tnsname,rdtTableName,rasterid
mbr - the bounding box of the area to hillshade -- it must fall within the area of the RDT
outDir - optional, the directory that output files will be written to
outFiles - the names of the destination files
zFactor - optional, vertical exageration, defaults to 1
scale - optional, x:y scale defaults to 1 (use 370400 for ft:lat/long and 111120 for m:lat/long)
azimuth - optional, defaults to 315
altitude - optional, altitude of the light in degrees, defaults to 45
band - optional, the input band to be processed, defaults to 1
formats - optional, defaults to GeoTIFF (GTiff). Use the short format name.
nameValues - optional
q - defaults to true which suppresses narrative output
Returns:
the output from the gdaldem run
Throws:
java.lang.Exception

slopeMap

public static java.util.List<java.lang.String> slopeMap(java.io.File outDir,
                                                        java.io.File inDir,
                                                        java.lang.String inFile,
                                                        java.lang.String[] outFiles,
                                                        double[] mbr,
                                                        boolean percent,
                                                        int scale,
                                                        int band,
                                                        java.lang.String outputFormat,
                                                        java.lang.String[] nameValues,
                                                        boolean suppressProgress)
                                                 throws java.lang.Exception
Parameters:
georUri - geor:username/password@tnsname,rdtTableName,rasterid
mbr - the bounding box of the area to hillshade -- it must fall within the area of the RDT
outDir - optional, the directory that output files will be written to
outFiles - the names of the destination files
zFactor - optional, vertical exageration, defaults to 1
scale - optional, x:y scale defaults to 1 (use 370400 for ft:lat/long and 111120 for m:lat/long)
azimuth - optional, defaults to 315
altitude - optional, altitude of the light in degrees, defaults to 45
band - optional, the input band to be processed, defaults to 1
formats - optional, defaults to GeoTIFF (GTiff). Use the short format name.
nameValues - optional
q - defaults to true which suppresses narrative output
Returns:
the output from the gdaldem run
Throws:
java.lang.Exception

colorRelief

public static java.util.List<java.lang.String> colorRelief(java.io.File outDir,
                                                           java.io.File inDir,
                                                           java.lang.String inFile,
                                                           java.lang.String outFile,
                                                           java.lang.String format,
                                                           double[] mbr,
                                                           boolean world,
                                                           java.lang.String colorTextFile,
                                                           boolean alpha,
                                                           boolean exactColorEntry,
                                                           boolean nearestColorEntry,
                                                           java.lang.Integer band,
                                                           java.lang.String[] nameValues,
                                                           boolean q)
                                                    throws java.lang.Exception
Parameters:
georUri -
mbr -
outDir -
inDir -
inFile -
outFile -
format -
world -
colorTextFile -
alpha -
exactColorEntry -
nearestColorEntry -
band -
nameValues -
q -
Returns:
Throws:
java.lang.Exception

aspectMap

public static java.util.List<java.lang.String> aspectMap(java.io.File inDir,
                                                         java.io.File outDir,
                                                         java.lang.String inFile,
                                                         java.lang.String outFile,
                                                         double[] mbr,
                                                         java.lang.Boolean trigonometric,
                                                         java.lang.Boolean zeroForFlat,
                                                         java.lang.Integer band,
                                                         java.lang.String format,
                                                         boolean world,
                                                         java.lang.String[] nameValues,
                                                         java.lang.Boolean q)
                                                  throws java.lang.Exception
Parameters:
inDir -
outDir -
inFile -
outFile -
mbr -
trigonometric -
zeroForFlat -
band -
format -
nameValues -
q -
Returns:
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)