public class RasterProcessorJob extends RasterJob
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ASC
Ouput ordering algorithm is performed ascending
|
static java.lang.String |
DESC
Ouput ordering algorithm is performed descending
|
static java.lang.String |
DIFFERENT |
static java.lang.String |
EQUALS |
static java.lang.String |
FS
Ouput filesystem is NFS
|
static java.lang.String |
GREATER |
static java.lang.String |
GREATER_OR_EQUAL |
static java.lang.String |
HDFS
Output filesystem is HDFS
|
static java.lang.String |
LESS |
static java.lang.String |
LESS_OR_EQUAL |
static java.lang.String |
MULTIPLE_INVERSE_MASK
Inverse Mask operation for multiple rasters, set in input configuration xml
|
static java.lang.String |
MULTIPLE_MASK
Mask operation for multiple rasters, set in input configuration xml
|
gdalPathSet, job, log
Constructor and Description |
---|
RasterProcessorJob(org.apache.hadoop.conf.Configuration config)
Constructor for raster procesor job
|
Modifier and Type | Method and Description |
---|---|
void |
addLocalAbs()
Adds local ABS operation to this job, calculates absolute value for each pixel
|
void |
addLocalAcos()
Adds local ACOS operation to this job, calculates inverse cosine for each pixel.
|
void |
addLocalAdd(java.lang.String operand)
Adds local ADD operation to this job, adds the specified operand to every pixel
|
void |
addLocalAsin()
Adds local ASIN operation to this job, calculates inverse sine for each pixel.
|
void |
addLocalAtan()
Adds local ATAN operation to this job, calculates inverse tangent for each pixel.
|
void |
addLocalCeil()
Adds local CEIL operation to this job, calculates ceil value for each pixel
|
void |
addLocalCos()
Adds local COS operation to this job, calculates cosine for each pixel.
|
void |
addLocalCosh()
Adds local COSH operation to this job, calculates hyperbolic cosine for each pixel.
|
void |
addLocalDefined()
Adds local DEFINED operation to this job, where 1 is set to the pixel if it has a value and 0 otherwise
|
void |
addLocalDivide(java.lang.String operand)
Adds local DIVIDE operation to this job, divied every pixel between the specified operand
|
void |
addLocalFloor()
Adds local FLOOR operation to this job, calculates floor value for each pixel
|
void |
addLocalIf(java.lang.String operator, java.lang.String operand, java.lang.String newValue)
Adds local IF operation to this job
|
void |
addLocalLog()
Adds local LOG operation to this job, calculates log value for each pixel
|
void |
addLocalLog10()
Adds local LOG10 operation to this job, calculates log 10 value for each pixel
|
void |
addLocalMultiply(java.lang.String operand)
Adds local MULTIPLY operation to this job, multiplies every pixel for the specified oeprand
|
void |
addLocalNegate()
Adds local NEGATE operation to this job, multiplys by -1 the value of each pixel
|
void |
addLocalNot()
Adds local NOT operation to this job
|
void |
addLocalPow(java.lang.String operand)
Adds local POW operation to this job, elevates every pixel to the specified pow
|
void |
addLocalRound()
Adds local ROUND operation to this job, rounds the value of each pixel
|
void |
addLocalSin()
Adds local SIN operation to this job, calculates sine for each pixel.
|
void |
addLocalSinh()
Adds local SINH operation to this job, calculates hyperbolic sine for each pixel.
|
void |
addLocalSqrt()
Adds local SQRT operation to this job, calculates sqrt for each pixel
|
void |
addLocalSubstract(java.lang.String operand)
Adds local SUBSTRACT operation to this job, substracts the specified operand to every pixel
|
void |
addLocalTan()
Adds local TAN operation to this job, calculates tangent for each pixel.
|
void |
addLocalTanh()
Adds local TANH operation to this job, calculates hyperbolic tangent for each pixel.
|
void |
addLocalUndefined()
Adds local UNDEFINED operation to this job, where 0 is set to the pixel if it has a value and 1 otherwise
|
void |
addMultipleRasterAdd()
Adds multiple raster ADD operation, where all the pixels are added
|
void |
addMultipleRasterAnd()
Adds the multiple raster AND operation, processes the logical and operator for every pixel
|
void |
addMultipleRasterCombine()
Adds multiple raster COMBINE operation, where every unique combination of pixels is set a unique final value for output raster
|
void |
addMultipleRasterDivide()
Adds the multiple raster DIVIDE operation, where all the pixels are divided from left to right
|
void |
addMultipleRasterEquals()
Adds the multiple raster EQUALS operation, sets 1 if all the pixel values for an output cell are the same, 0 otherwise
|
void |
addMultipleRasterGreater()
Adds the multiple raster GREATER operation, sets 1 if all the pixel values for an output cell are smaller than the leftmost pixel, 0 otherwise
|
void |
addMultipleRasterGreaterOrEqual()
Adds the multiple raster GREATEROREQUAL operation, sets 1 if all the pixel values for an output cell are smaller or equal than the leftmost pixel, 0 otherwise
|
void |
addMultipleRasterInverseMask(java.lang.String mask)
Adds the multiple raster INVERSE_MASK operation, sets the left most value if the rest of the pixels have values that do not belong to the mask list.
|
void |
addMultipleRasterLess()
Adds the multiple raster LESS operation, sets 1 if all the pixel values for an output cell are greater than the leftmost pixel, 0 otherwise
|
void |
addMultipleRasterLessOrEqual()
Adds the multiple raster LESSOREQUAL operation, sets 1 if all the pixel values for an output cell are greater or equal than the leftmost pixel, 0 otherwise
|
void |
addMultipleRasterMajority()
Adds multiple raster MAJORITY operation, where the pixel value that repeats the most is set for output raster, if multiple values have the same max number of appearances the the most left value is set.
|
void |
addMultipleRasterMask(java.lang.String mask)
Adds the multiple raster MASK operation, sets the left most value if the rest of the pixels have values that belong to the mask list.
|
void |
addMultipleRasterMax()
Adds the multiple raster MAXIMUM operation, where the pixel with the maximum value is selected for raster output
|
void |
addMultipleRasterMean()
Adds the multiple raster MEAN operation, calculates the arithmetical mean of the values in every output pixel
|
void |
addMultipleRasterMin()
Adds the multiple raster MINIMUM operation, where the pixel with the minimum value is selected for raster output
|
void |
addMultipleRasterMinority()
Adds multiple raster MINORITY operation, where the pixel value that repeats the less is set for output raster, if multiple values have the same min number of appearances the the most left value is set.
|
void |
addMultipleRasterMultiply()
Adds multiple raster MULTIPLY operation, where all the pixels are multiplied
|
void |
addMultipleRasterOr()
Adds the multiple raster OR operation, processes the logical or operator for every pixel
|
void |
addMultipleRasterSubstract()
Adds the multiple raster SUBSTRACT operation, where all the pixels are substracted from left to right
|
void |
addMultipleRasterUnequal()
Adds the multiple raster UNEQUALS operation, sets 1 if all the pixel values for an output cell are not the same, 0 otherwise
|
void |
addMultipleRasterVariety()
Adds multiple raster VARIETY operation, where the number of different values for each pixel in the output raster is set.
|
void |
addMultipleRasterXor()
Adds the multiple raster XOR operation, processes the logical xor operator for every pixel
|
boolean |
execute()
Executes the configured raster processing job.
|
void |
setCatalogContent(java.lang.String catalogContent)
Sets the catalog xml that contains all the rasters to be processed in this job, catalog is wrapped in a String
|
void |
setCatalogLocation(java.lang.String catalogLocation)
Sets the catalog path that contains all the rasters to be processed in this job
|
void |
setCatalogObject(java.lang.String catalogObject)
Sets the catalog object that contains all the rasters to be processed in this job, the object content is wrapped by a String
|
void |
setCustomParameters(java.lang.String parameters)
Set the optional parameters for user processing classes, this is a semicolon separated list which elements are key=value form.
|
void |
setFileToProcess(java.lang.String file)
Sets the path of the single raster to process
|
void |
setGdalPath(java.lang.String gdalLibPath)
Sets GDAL library path to this job
|
void |
setMosaicConfiguration(java.lang.String mosaicConfig)
Sets the mosaic configuration xml path into this job configuration
|
void |
setMosaicConfigurationObject(java.lang.String mosaicObject)
Sets the mosaic configuration String in this job configuration
|
void |
setThumbnailFlag()
Activates the creation of a thumbnail in the loading process, whenever the HDFS output is configured for this process job
|
void |
setUserNativeLibraries(java.lang.String nativeLibraries)
Sets the location to the native libraries that are used in the user processing classes to be executed in this job.
|
void |
setUserProcessingJar(java.lang.String userJarFile)
Sets the location to the jar files that contain the user processing classes to be executed in this job.
|
execute, getHadoopJob
public static final java.lang.String FS
public static final java.lang.String HDFS
public static final java.lang.String ASC
public static final java.lang.String DESC
public static final java.lang.String GREATER
public static final java.lang.String LESS
public static final java.lang.String GREATER_OR_EQUAL
public static final java.lang.String LESS_OR_EQUAL
public static final java.lang.String EQUALS
public static final java.lang.String DIFFERENT
public static final java.lang.String MULTIPLE_MASK
public static final java.lang.String MULTIPLE_INVERSE_MASK
public RasterProcessorJob(org.apache.hadoop.conf.Configuration config)
config
- job configuration with previously loaded properties.public void setMosaicConfiguration(java.lang.String mosaicConfig)
mosaicConfig
- path to mosaic configuration xml to be used in this processing job executionpublic void setMosaicConfigurationObject(java.lang.String mosaicObject)
mosaicObject
- the configuration to create the mosaic in this processing job in a String object. This String might be obtained by creating and setting MosaicConfiguration
object and finally using the getCompactMosaic() method to get the String.public void setCatalogLocation(java.lang.String catalogLocation)
catalogLocation
- path to the catalog xml listing the rasters to be processed in this job XML has a raster element for each raster to be processed.public void setCatalogContent(java.lang.String catalogContent)
catalogContent
- String that wraps the catalog xml listing the rasters to be processed in this jobpublic void setCatalogObject(java.lang.String catalogObject)
catalogObject
- the String containing the list of rasters to be processed in this job. This String might be obtained by creating and setting RasterCatalog
object and finally using the getCompactCatalog() method to get the String.public void setFileToProcess(java.lang.String file)
file
- path to the single raster to processpublic void setCustomParameters(java.lang.String parameters)
parameters
- list of paramters to set for procesing classespublic void setThumbnailFlag()
public void setUserProcessingJar(java.lang.String userJarFile) throws java.io.IOException
userJarFile
- path to the jar files containing the user processing classes to be executed in this jobjava.io.IOException
- if there is a proble during the set of this jar into the classpathpublic void setUserNativeLibraries(java.lang.String nativeLibraries) throws java.lang.Exception
nativeLibraries
- path to the native libraries to loadjava.lang.Exception
- if there is a proble during the load of the librariespublic void setGdalPath(java.lang.String gdalLibPath) throws java.lang.Exception
gdalLibPath
- path to gdal native libraries pathjava.lang.Exception
- whenever there is a problem during GDAL libraries load into job classpath.public boolean execute() throws java.lang.Exception
java.lang.Exception
- whenever there is a problem during raster load job executionpublic void addLocalNot()
public void addLocalIf(java.lang.String operator, java.lang.String operand, java.lang.String newValue)
operator
- operator to value in the if operation: equals, less than, more than, greater equals, less equals, different, stored as constants in this classoperand
- the operand to use in the If validationnewValue
- the value to set if the condition is truepublic void addLocalAdd(java.lang.String operand)
operand
- value to add to every pixelpublic void addLocalSubstract(java.lang.String operand)
operand
- value to substract to every pixelpublic void addLocalMultiply(java.lang.String operand)
operand
- value to multiply to every pixelpublic void addLocalDivide(java.lang.String operand)
operand
- value to divide to every pixelpublic void addLocalPow(java.lang.String operand)
operand
- value representing the pow that each pixel will be expontiated topublic void addLocalSqrt()
public void addLocalRound()
public void addLocalLog()
public void addLocalLog10()
public void addLocalFloor()
public void addLocalCeil()
public void addLocalNegate()
public void addLocalAbs()
public void addLocalSin()
public void addLocalCos()
public void addLocalTan()
public void addLocalSinh()
public void addLocalCosh()
public void addLocalTanh()
public void addLocalAsin()
public void addLocalAcos()
public void addLocalAtan()
public void addLocalDefined()
public void addLocalUndefined()
public void addMultipleRasterCombine()
public void addMultipleRasterMajority()
public void addMultipleRasterMinority()
public void addMultipleRasterVariety()
public void addMultipleRasterAdd()
public void addMultipleRasterSubstract()
public void addMultipleRasterDivide()
public void addMultipleRasterMultiply()
public void addMultipleRasterMin()
public void addMultipleRasterMax()
public void addMultipleRasterMean()
public void addMultipleRasterAnd()
public void addMultipleRasterOr()
public void addMultipleRasterXor()
public void addMultipleRasterEquals()
public void addMultipleRasterUnequal()
public void addMultipleRasterGreater()
public void addMultipleRasterGreaterOrEqual()
public void addMultipleRasterLess()
public void addMultipleRasterLessOrEqual()
public void addMultipleRasterMask(java.lang.String mask)
mask
- is the comma separated list for mask valuespublic void addMultipleRasterInverseMask(java.lang.String mask)
mask
- is the comma separated list for mask valuesCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.