public interface JiffleDirectRuntime extends JiffleRuntime
evaluate(double, double)
method. It also
provides an evaluateAll(JiffleProgressListener)
method.Modifier and Type | Method and Description |
---|---|
void |
evaluate(double x,
double y)
Evaluates the script for the given world position.
|
void |
evaluateAll(JiffleProgressListener pl)
Evaluates the script for all pixel locations within the world bounds.
|
void |
setDefaultBounds()
Sets default bounds for the processing area.
|
void |
setDestinationImage(String varName,
WritableRenderedImage image)
Associates a variable name with a destination image.
|
void |
setDestinationImage(String varName,
WritableRenderedImage image,
CoordinateTransform tr)
Associates a variable name with a destination image and coordinate transform.
|
void |
writeToImage(String destImageName,
double x,
double y,
int band,
double value)
Writes a value to a destination image for a given world position and
image band.
|
get_images, getDestinationVarNames, getHeight, getMaxX, getMaxY, getMinX, getMinY, getNumPixels, getSourceVarNames, getVar, getVarNames, getWidth, getXRes, getYRes, isWorldSet, readFromImage, setDefaultTransform, setImageParams, setSourceImage, setSourceImage, setSourceImageBandTransform, setSourceImageCoordinateTransform, setVar, setWorldByNumPixels, setWorldByResolution
void setDestinationImage(String varName, WritableRenderedImage image, CoordinateTransform tr) throws JiffleException
tr
is null
the default
identify transform will be used.
Note that Jiffle uses rounding to reduce the transformed coordinates to integers.
varName
- script variable representing the destination imageimage
- writable imagetr
- transform for processing area to image coordinatesJiffleException
- if the world bounds and resolution have not
been set previouslyvoid setDestinationImage(String varName, WritableRenderedImage image)
setDestinationImage(varName, image, null)
This convenience method is defined in the interface because it will be
commonly when working directly with image coordinates.varName
- script variable representing the destination imageimage
- writable imagevoid setDefaultBounds()
void evaluate(double x, double y)
x
- world position X ordinatey
- world position Y ordinatevoid evaluateAll(JiffleProgressListener pl)
pl
- an optional progress listener (may be null
void writeToImage(String destImageName, double x, double y, int band, double value)
destImageName
- x
- destination X ordinate in world unitsy
- destination Y ordinate in world unitsband
- destination bandvalue
- the value to writeCopyright © 2006–2018 GeoSolutions. All rights reserved.