Hi
We are trying to load .ntf file on ArcGIS as raster image but we are not able to control the property of the image. Image is getting loaded as like raw image.
the source code is:
if (dataPath.contains("file:/"))
dataPath = QString(QUrl(dataPath).toLocalFile());
//! [RasterLayerFile cpp new raster layer]
Raster* raster = new Raster(dataPath, this);
RasterLayer* rasterLayer = new RasterLayer(raster, this);
//! [RasterLayerFile cpp new raster layer]
connect(rasterLayer, &RasterLayer::doneLoading, this, [this, rasterLayer](Error loadError)
{
if (!loadError.isEmpty())
{
qDebug()<<"!loadError.isEmpty()";
return;
}
m_mapView->setViewpointCenter(rasterLayer->fullExtent().center(), 80000);
});
rasterLayer->setGamma(100.0);
m_map->operationalLayers()->clear();
m_map->operationalLayers()->append(rasterLayer);
The gamma also functionality is not making any diff , please see the attached image.
