Select to view content in your preferred language

Conditional Local RasterFunction via Rest API (Javascript)

2049
0
09-21-2015 01:55 PM
GeorgeRaber
New Contributor II

I am trying to create a raster function chain through the rest API (Image Service).  I can't seem to get the syntax right for a conditional operation.  This is what I have but it is causing me errors:

rft = new RasterFunction();
rft.functionName = "Local";
rft.functionArguments = {
  "Operation" : 76,
  "Rasters" : [rfc, rf1h, rf1l]
};
rft.variableName = "riskOutput";
rft.outputPixelType = "U16";

How do I paramaterize the conditional, true, false values correctly.  I can't find examples anywhere.

Thanks

0 Kudos
0 Replies