public interface JiffleIndirectRuntime extends JiffleRuntime
evaluate(double, double)
method passes values back to the caller
rather than writing them to the destination image directly.Modifier and Type | Method and Description |
---|---|
double |
evaluate(double x,
double y)
Evaluates the script for the given world position.
|
void |
setDestinationImage(String varName)
Specifies the name of the script variable which represents the destination
image.
|
void |
setDestinationImage(String varName,
CoordinateTransform tr)
Specifies the name of the script variable which represents the destination
image and defines the coordinate transform.
|
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, 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 imagetr
- transform for processing area to image coordinatesJiffleException
- if the world bounds and resolution have not
been set previouslyvoid setDestinationImage(String varName)
setDestinationImage(varName, 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 imagedouble evaluate(double x, double y)
x
- world position X ordinatey
- world position Y ordinateCopyright © 2006–2018 GeoSolutions. All rights reserved.