ArcGIS ImageServer Analytical LERC
ArcGIS ImageServer can return analysis-ready LERC rasters instead of display images:
import {createDataSource} from '@loaders.gl/core';
import {ArcGISImageServerLoader} from '@loaders.gl/arcgis/image-service';
const source = await createDataSource(url, [ArcGISImageServerLoader], {
core: {type: 'arcgis-image-server'}
});
const raster = await source.exportRaster({
bbox: [-122.5, 37.7, -122.3, 37.85],
bboxSR: 4326,
imageSR: 4326,
width: 512,
height: 512,
format: 'lerc',
pixelType: 'F32'
});
console.log(raster.width, raster.height, raster.pixels[0]);
The returned typed arrays and mask are suitable for classification, statistics, and raster processing without converting through an image format.