When I called "ArcGISRuntimeEnvironment.setLicense()" to remove watermark, RasterElevationSource class can not load local .tiff file. It hint "unlicensed feature" why?
Solved! Go to Solution.
You cannot load a local .tiff file with a Lite license.
However, you could use ArcGIS Pro to create a tile package (.TPK to .TPKX file) of elevation from the TIFF. Since TPK and TPKX are proprietary Esri formats, they can be used with the Lite Runtime license. That can then be used as an elevation source using AGSArcGISTiledElevationSource.
Using local raster files requires a Standard level license. You are most likely using the free Lite license.
So How to load local .tiff file in using the free Lite license or which format to convert tiff to use to display elevation?
You cannot load a local .tiff file with a Lite license.
However, you could use ArcGIS Pro to create a tile package (.TPK to .TPKX file) of elevation from the TIFF. Since TPK and TPKX are proprietary Esri formats, they can be used with the Lite Runtime license. That can then be used as an elevation source using AGSArcGISTiledElevationSource.