An operation that can be performed on one or more rasters or a mosaic dataset by applying on-the-fly processing. More...
Public Functions Static Public Members Esri::ArcGISRuntime::RasterFunction * fromJson(const QString &json, QObject *parent = nullptr) Detailed DescriptionExamples of RasterFunctions include Hillshade, Stretch, Colormap, Mask, and ShadedRelief, among others.
RasterFunctions in ArcGIS Maps SDK work very similarly to the ArcGIS REST API. The following workflow is a common way to render a raster using a raster function:
{ "raster_function":{"type":"Pansharpen_function"}, "raster_function_arguments": { "weights":{"double_array":[0.10000000000000001,0.5,0.40000000000000002,0.29999999999999999],"type":"Raster_function_variable"}, "pansharpen_type":{"pansharpen_type":"gram_schmidt","type":"Raster_function_variable"}, "pan_raster":{"name":"pan_raster","is_raster":true,"type":"Raster_function_variable"}, "raster":{"name":"raster","is_raster":true,"type":"Raster_function_variable"}, "type":"Raster_function_arguments" }, "type":"Raster_function_template" }
For documentation on this API's JSON format and syntax for the different raster functions, please see the Guide topic Add raster data.
For further details on raster functions, please see the ArcGIS Desktop documentation.
Use an ImageServiceRaster as an argument for a raster function:
RasterFunction* rasterFunction = new RasterFunction(m_dataPath + "/hillshade_simplified.json", this); RasterFunctionArguments* arguments = rasterFunction->arguments(); arguments->setRaster("raster", m_imageServiceRaster); // create a new raster with the raster function and add to the operational layer Raster* raster = new Raster(rasterFunction, this); RasterLayer* rasterLayer = new RasterLayer(raster, this);
Relevant samples:
[explicit]
RasterFunction::RasterFunction(const QString &path, QObject *parent = nullptr)
Constructor that takes a path to a local JSON file and an optional parent.
[override virtual noexcept]
RasterFunction::~RasterFunction()
Destructor.
Esri::ArcGISRuntime::RasterFunctionArguments *RasterFunction::arguments() constReturns the arguments of this raster function.
[static]
Esri::ArcGISRuntime::RasterFunction *RasterFunction::fromJson(const QString &json, QObject *parent = nullptr)
Creates a new RasterFunction from its JSON representation.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4